Forum Discussion

Renna's avatar
Renna
Frequent Visitor
2 years ago
Solved

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's avatar
    AUDISU
    2 years ago

    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