Forum Discussion
Need help in formula
- 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
Sorry, formula doesn't correct. Try this formula:
Running Totals =
CALCULATE (
SUM ( 'Table1'[Size(MWP)] ),
FILTER ( ALL ( 'Table1' ), 'Table1'[COD] <= MAX ( 'Table1'[COD] ) )
)
Another way could be to use INONORAFTER
Measure =
VAR mymax =
MAX ( Table1[COD] )
RETURN
CALCULATE (
SUM ( Table1[Size(MWP)] ),
ISONORAFTER ( Table1[COD], mymax, DESC )
)- Kolumam8 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 ?
- Anonymous8 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