Forum Discussion
tanct
8 years agoRegular Visitor
Running total
Hello All, Would need your help in the DAX running total for the below scenario (running total for the MTD - month to date and PM - previous month):- My Dax: RunningTotal = VAR ...
- 8 years ago
Hello friend
This shall do it
Cumulative = SUMX ( FILTER ( ALLEXCEPT ( 'Data Source', 'Data Source'[Reformat], 'Data Source'[SH - Country docum.] ), 'Data Source'[Weekday] <= SELECTEDVALUE ( 'Data Source'[Weekday] ) ), CALCULATE ( SUM ( 'Data Source'[Standard Quantity KG 3rd Party] ) ) )
Zubair_Muhammad
8 years agoCommunity Champion
Hello friend
This shall do it
Cumulative =
SUMX (
FILTER (
ALLEXCEPT (
'Data Source',
'Data Source'[Reformat],
'Data Source'[SH - Country docum.]
),
'Data Source'[Weekday] <= SELECTEDVALUE ( 'Data Source'[Weekday] )
),
CALCULATE ( SUM ( 'Data Source'[Standard Quantity KG 3rd Party] ) )
)tanct
8 years agoRegular Visitor
Zubair, thanks so much for your prompt support, it was resolved less than few hours after I posted my issue here.
Strongly recommend !