Forum Discussion
Anonymous
3 years agoNot applicable
DAX function
Hey all, Im trying to create a Running Total (RT) function for Actuals, Budget and Forecast data. I have included the following function: Actual RT = calculate(sum(Actuals[Actual]), Filter(ALLSELE...
- Anonymous3 years ago
MFelix this worked for me:
Actual RT = Calculate(SUM(Actuals[Actual]),FILTER(ALLSELECTED('Calendar'[Date]), ISONORAFTER('Calendar'[Date],MAX(Actuals[Date]), DESC)))
MFelix
Super User
3 years agoHi Anonymous ,
Believe you have the syntax of the ISONORAFTER incorrect try the folllwing:
Actual RT =
CALCULATE (
SUM ( Actuals[Actual] ),
FILTER (
ALLSELECTED ( 'calendar'[Date] ),
ISONORAFTER ( MAX ( 'calendar'[Date] ), desc )
)
)
Anonymous
3 years agoNot applicable
MFelix this worked for me:
Actual RT = Calculate(SUM(Actuals[Actual]),FILTER(ALLSELECTED('Calendar'[Date]), ISONORAFTER('Calendar'[Date],MAX(Actuals[Date]), DESC)))