Forum Discussion
Renna
2 years agoFrequent Visitor
Use the Column Subtotals in Matrix as YTD column
Hi, I'm aiming to maintain the Column Subtotal in a Matrix as YTD, while other columns represent individual months. It works perfectly without any month filters applied (the total is sum of all m...
AUDISU
Resolver III
2 years agoHi Renna ,
Can you share your sample pbix file.
As I think you have added wrong field to ALL function.
Thanks
- AUDISU2 years ago
Resolver III
Hi Renna ,
Change your YTD Revenue dax as follow.YTD Revenue = IF(ISINSCOPE('Sample Table'[Period]),CALCULATE(SUM('Sample Table'[Revenue])),CALCULATE(SUM('Sample Table'[Revenue]), ALL('DimDates'[Date].[Month])))
I only changed here.
ALL('DimDates'[Date].[Month])
Thanks- Renna2 years agoFrequent Visitor
It works! Thank you so much!