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
Hi
Cumulative is showing wrong values. Please check below.
Can you post sample data? (copy directly from excel to here). I can test it on my system.
- popov8 years agoResolver III
Kolumam
Try this formula:Running Totals =
CALCULATE (
SUM ( 'Table1'[Size(MWP)] ),
FILTER (
ALLEXCEPT ( 'Table1', 'Table'[COD] ),
'Table1'[COD] <= MAX ( 'Table1'[COD] )
)
)- popov8 years agoResolver III
Sorry, formula doesn't correct. Try this formula:
Running Totals =
CALCULATE (
SUM ( 'Table1'[Size(MWP)] ),
FILTER ( ALL ( 'Table1' ), 'Table1'[COD] <= MAX ( 'Table1'[COD] ) )
)- Zubair_Muhammad8 years agoCommunity Champion
Another way could be to use INONORAFTER
Measure = VAR mymax = MAX ( Table1[COD] ) RETURN CALCULATE ( SUM ( Table1[Size(MWP)] ), ISONORAFTER ( Table1[COD], mymax, DESC ) )