Forum Discussion
Aree
Resolver I
8 years agoCumulative with a slicer
I working on doing a cumulative line which is basic using the standard appraoch. Forecast Cumulative =
CALCULATE(
SUM('Financial'[Forecast]),
FILTER(
ALL('Calenda...
- 8 years ago
Found my solution after some research and testing.
Forecast Cumulative = CALCULATE( SUM('Financial'[Forecast]), FILTER( ALLSELECTED('Calendar'), 'Calendar'[Date] <= MAX('Calendar'[Date]) ) )ALL was causing a filter context outside of my slicer but ALLSELECTED worked like a charm.
Ashish_Mathur
Super User
8 years agoAree
Resolver I
8 years agolol thanks for the effort mate. I found a solution this morning after some testing and researching.
Special Mention to Ashish_Mathur
Who offered alternate solution which is pretty sweet.
IF(ISBLANK([Forecasts]),BLANK(),CALCULATE([Forecasts],DATESYTD('Calendar'[Date],"30/6")))- Ashish_Mathur8 years ago
Super User
You are welcome.