Forum Discussion
HanishR
6 years agoFrequent Visitor
Removing Totals on filtered data
Hi all, I am trying to remove a total which is showing misleading information, When the data is filtered, or when it is not, the total columns marked below show the last Month / Quarter Total, ...
Icey
Community Support
6 years agoHi HanishR ,
It is best not to use quick measure. Create your measure like so:
MTD = TOTALMTD(SUM(Sales[Sales]),'Date'[Date])
Or just change your quick measure like so:
Sales MTD =
IF(
ISFILTERED('Date'[Date]),
ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
TOTALMTD(SUM('Sales'[Sales]), 'Date'[Date]) ---------.[Date] is deleted.
)
Then, the total will show the value of max month if no specific month is selected.
BTW, .pbix file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- HanishR6 years agoFrequent Visitor
Icey Thank you for that, and I can see how it helps, but it doesn't remove the total of the Budget Sales MTD when both the sales MTDand budget sales MTD measures are set with the format you mentioned.
Is there a way to only show the budget sales MTD if there is a Value in the Sales MTD?