Forum Discussion
Cumulative graph
- 7 years ago
Hi rfernandez,
You can achieve this by creating the following measures:
Real-Plan = CALCULATE ( SUM ( Plan[Amount] ); Plan[PoR] = "Real" ) - CALCULATE ( SUM ( Plan[Amount] ); Plan[PoR] = "Plan" ) Cumulative = CALCULATE ( SUMX ( Plan; [Real-Plan] ); FILTER ( ALLSELECTED ( Plan[Month] ); Plan[Month] <= MAX ( Plan[Month] ) ) )Then just use your cumulative measure on your charts.
Although the ansewer by AnkitBI is good, a good practice is to create a measure instead of calculated columns since they add size to your model and complexity.
This option works both for PBI and for Excel PowerPivot see attach both files with the solutions.
Regards,
MFelix
Hi rfernandez,
You can achieve this by creating the following measures:
Real-Plan =
CALCULATE ( SUM ( Plan[Amount] ); Plan[PoR] = "Real" )
- CALCULATE ( SUM ( Plan[Amount] ); Plan[PoR] = "Plan" )
Cumulative =
CALCULATE (
SUMX ( Plan; [Real-Plan] );
FILTER ( ALLSELECTED ( Plan[Month] ); Plan[Month] <= MAX ( Plan[Month] ) )
)
Then just use your cumulative measure on your charts.
Although the ansewer by AnkitBI is good, a good practice is to create a measure instead of calculated columns since they add size to your model and complexity.
This option works both for PBI and for Excel PowerPivot see attach both files with the solutions.
Regards,
MFelix