Forum Discussion
Anonymous
5 years agoNot applicable
Cumulative Budget Starting at Zero
I am trying to put together a visual for cumulative spend over time on a project. So far I have been able to get a chart based on actuals, but would like to have spend start at zero rather than the f...
amitchandak
Super User
5 years agoAnonymous , try a mesure like , assumed you have project or project id
Cumulative Total Spend =
VAR MaxDate = MAX('Fusion Project Actuals'[Accounting Date]
RETURN
CALCULATE(
SUM('Fusion Project Actuals'[Amount]),
filter( ALL ('Fusion Project Actuals'[Accounting Date]) ,'Fusion Project Actuals'[Accounting Date] <= MaxDate
&& 'Fusion Project Actuals'[project] = max( 'Fusion Project Actuals'[project] )
))
Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.
Anonymous
5 years agoNot applicable
For some reason PBI won't recognize my first reference to Project Number. For reference, this variable is stored in text format because the id's are formatted as "S12345"