Bug 507425

Summary: Report by tag not working
Product: [Applications] kmymoney Reporter: andywhallon
Component: reportsAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description andywhallon 2025-07-24 07:08:18 UTC
If I create an income and expense report and deselect a single tag in the filter, all report values go to zero.

STEPS TO REPRODUCE
1. Select Reports
2. Under "1. Income and Expenses," select either "Income and Expenses This Year" or "Income and Expenses This Year (Customized)."
3.  Select "Configure report."
4.  Select "Filters" tab.
5.  Select "Tag" sub-tab.
6.  Select "Select all" button, and view report
7. Unselect a single tag (I have 25), and view report with all values at zero.

OBSERVED RESULT
All values in the report are zero.

EXPECTED RESULT
Income and expenses for all the selected tags should be reported.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Jack 2025-08-01 21:56:05 UTC
I confirm on Linux using Version 5.2.70-bfbeff83a.  Transactions by tag with all tags selected gives a long report.  If I deselect a single tag from the filter, the report only contains three transactions with no tags.  I'm pretty sure I have lots of transactions with no tags, but these may be in accounts which do have transactions with tags.