Forum Discussion

Agreenwood's avatar
Agreenwood
Helper I
8 years ago
Solved

DAX - Using Filter to Sum All Months by Working Day

Hi,   Fairly new to DAX and been frustrated all day trying to figure this one out. There is probably a simple answer.   I have a 'Dates' table which has 2 columns: 1) 'Date' (2) 'Working Day' whi...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    8 years ago

    Hi Agreenwood,

     

    According to your formulas, it seems the monthly revenue will be accumulated. Maybe you can try these formula below. You can check it out in this file

    Measure 2 =
    TOTALYTD (
        SUM ( Revenues[Revenue] ),
        Dates[Date],
        FILTER ( ALL ( 'Dates' ), 'Dates'[WorkingDay] <= MAX ( Dates[WorkingDay] ) )
    )
    Measure =
    TOTALMTD ( SUM ( Revenues[Revenue] ), 'Dates'[Date] )

    DAX_Using_Filter_to_Sum_All_Months_by_Working_Day

     

    Best Regards,

    Dale