Forum Discussion
Kolumam
8 years agoPost Prodigy
Need help in formula
Hi All, I need a cumulative sum of size for each month from the start July 2016 to August 2018. How do I achieve this using DAX ?
- Anonymous8 years ago
Kolumam,
Create a calendar table in Power BI Desktop following the guide in this blog, create relationship between the date field of Date table and COD field of Project table. Then change your DAX to the following, drag date field of Date table and the measure to your chart.Running Totals = CALCULATE ( SUM ( Project[Operating Size] ), FILTER ( ALL ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ) )
Regards,
Lydia
Kolumam
8 years agoPost Prodigy
Hi All,
The issue with the below bar graph is that for the months with no COD it is not taking the same number and instead it is blank.
How do I fix this ?
Anonymous
8 years agoNot applicable
Kolumam,
Create a calendar table in Power BI Desktop following the guide in this blog, create relationship between the date field of Date table and COD field of Project table. Then change your DAX to the following, drag date field of Date table and the measure to your chart.
Running Totals =
CALCULATE (
SUM ( Project[Operating Size] ),
FILTER ( ALL ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
)
Regards,
Lydia