Forum Discussion
Grand Total not adding correctly
- Anonymous2 years ago
Hi bswank31 ,
Try to modify your formula like below, it can get correct total result:
result1 = CALCULATE ( MAXX ( KEEPFILTERS ( VALUES ( 'Calendar'[Date] ) ), CALCULATE ( SUM ( 'Drill'[Rigs] ) ) ) )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for looking at my issue. That formula was just what I ended with that gave me almost what I wanted. I want to be able to filter by a Year and it will then give me the max number of rigs for each site for that year selected. Then have the correct sub totals for the programs and the grand total. I do have another measure for Rig count that gives me almost what I need but it doesn't calculate the Sub totals or Grand total correctly.
- lbendlin2 years agoSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523