Bug 413667

Summary: The annualized return calculation seems to be incorrect.
Product: [Applications] kmymoney Reporter: avizit
Component: reportsAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: iann_bugzilla
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=416274
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot showing the issue with calculation
image showing my annualized percentage where the percentages are off by one

Description avizit 2019-10-31 12:49:26 UTC
Created attachment 123618 [details]
screenshot showing  the issue with calculation

SUMMARY
The report for "investment performance by account" probably has incorrect calculation of annualized return for aggregate. If i have two investment accounts  say account1 and account2 . For me it seems the annualized return for one holding of account1 is always same as total annualized return of account2.
I have put a screenshot showing the same.

STEPS TO REPRODUCE
1. have multiple investment account and multiple holdings
2. generate report for investment performence.
3. 

OBSERVED RESULT
two annualized return values which are not expected to be same always are always same

EXPECTED RESULT
the two values should be different at least once in a while.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 avizit 2020-01-15 08:36:18 UTC
I have similar problem . In my case it seems the annualized percentages per account is off by one. as in total annualized return for account 1 is shown in account n , for account 2 in n -1 .. and so on .. it seems like a off by one error. see my second attachment
Comment 2 avizit 2020-01-15 08:37:26 UTC
Created attachment 125137 [details]
image showing my annualized percentage where the percentages are off by one

as is clear from the image and the red arrows , the percentages seems to be correct but in the wrong rows.
Comment 3 Thomas Baumgart 2020-01-17 18:08:37 UTC

*** This bug has been marked as a duplicate of bug 416274 ***