Bug 507422 - Investment Report is Blank or Incomplete When Dividend Categories are Excluded.
Summary: Investment Report is Blank or Incomplete When Dividend Categories are Excluded.
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.2.0
Platform: Ubuntu Linux
: NOR grave
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-24 06:44 UTC by origamy.39
Modified: 2025-07-24 06:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
image_2023 (195.53 KB, image/png)
2025-07-24 06:44 UTC, origamy.39
Details

Note You need to log in before you can comment on or make changes to this bug.
Description origamy.39 2025-07-24 06:44:08 UTC
Created attachment 183475 [details]
image_2023

Description:

I aim to generate two types of investment performance reports: one with dividends included, and another without, for comparison purposes and to analyze capital evolution separately.

KMyMoney Version: 5.2-4526
Operating System: Ubuntu 25.04

Steps to Reproduce (the bug):

    Open KMyMoney and a data file containing investment transactions (purchases, dividends).

    Navigate to the 'Reports' menu -> 'Investment Reports'.

    Select a report type such as "Performance des placements par type PEA avec dividendes" (or its English equivalent).

    Define a report period (for example, from 01/01/2023 to 07/23/2025), ensuring that this start date is prior to the acquisition date of the first securities (e.g., my first securities were purchased in May 2023).

    Go into the report configuration (the "Configure report" button) and uncheck the account categories related to dividends (to exclude them from the report).

    Generate the report.

Observed Behavior:

When dividend categories are excluded, the generated report is either blank or incomplete. Columns such as "Starting Market Value," "Purchase Value," "Sale Value," "Ending Market Value," and all return columns (including "Annualized Return" and "Extended Internal Rate of Return") display values of 0.00€. The report becomes unusable for analyzing capital evolution without dividends.

    If the report's start date is set after all securities have been purchased (e.g., 01/01/2024), the report does display non-zero values, but these return values are suspect and likely affected by the previously reported bug (Bug_507421) concerning the "Annualized Return" calculation.

Expected Behavior:

The investment report should correctly display market values (starting, ending), purchase value, sale value, and associated returns (excluding dividends) even when dividend categories are excluded from the calculation. It should allow for a reliable analysis of security performance based on capital appreciation alone, regardless of the chosen report period.

Attachments:
Please refer to the attached screenshots which illustrate the problem (especially "Capture d’écran du 2025-07-24 08-34-50.png" showing a blank report).

Reminder for the form fields:

    Product: kmymoney

    Component: general (or reports if that's an available option)

    Version First Reported In: git (master)

    Severity: major

    Platform: Other

    OS: Linux