Forum Discussion
Running Total - DAX
I need help. I am looking for same solution http://community.powerbi.com/t5/Desktop/DAX-Running-total-by-another-column/m-p/10512#M2189 but somehow its not working for me.
RunningTotal =
CALCULATE (
SUM ( TabelForecast[Forcast] );
FILTER ( ALL ( TabelForecast ); TabelForecast[MonthYear] <= MAX ( TabelForecast[MonthYear] ) );
VALUES ( TabelForecast[M#] )
)
I have tried many formulas in power BI but its not giving me running total but total for all the rows
Any suggestions?
FawadRehman This should work... Let me know.
Running Total COLUMN = CALCULATE ( SUM ( TabelForecast[Forecast] ), ALLEXCEPT ( TabelForecast, TabelForecast[M#] ), TabelForecast[MonthYear] <= EARLIER ( TabelForecast[MonthYear] ) )
14 Replies
- SeanCommunity Champion
FawadRehman This formula is for a MEASURE not a Calculated Column
see post you are referencing => it is used in a PIVOT TABLE
EDIT:
- kcantorCommunity Champion
FawadRehman I believe you have to create a table to make that work. Beyond my meger skill set but Sean can help you with this.
- FawadRehmanHelper I
Sean Thank you, this is great. But at the same time, i have this in table,then i make a outer left join this table to another table to insert my running my Running total column values. I am very new in Power BI so please excuse my stupid logic or questions. Thanks
- SeanCommunity Champion
Can you provide a sample of the desired final result? Are you doing a summary table?