Forum Discussion
btalahmbong
9 years agoAdvocate II
Cumulative Total using waterfall chart
Hi, I have measure which calculates the total cases created by date and it works pretty well. Here is the code; Total Number Of Cases = CALCULATE(COUNTROWS('Case') + 0, FILTER(ALLSELECTED('C...
- 9 years ago
Here is a similar case for your reference.
- 9 years ago
Drag 'Calendar'[Date] to Category and use measure below.
Measure = VAR minDate = CALCULATE ( MIN ( 'Calendar'[Date] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Is last 30 Days] = TRUE () ) ) VAR maxDate = CALCULATE ( MAX ( 'Calendar'[Date] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Is last 30 Days] = TRUE () ) ) VAR d = MAX ( 'Calendar'[Date] ) RETURN SWITCH ( TRUE (), d = minDate, COUNTROWS ( FILTER ( 'Case', 'Case'[created on local date] <= d ) ), d > minDate && d <= maxDate, COUNTROWS ( FILTER ( 'Case', 'Case'[created on local date] = d ) ) )
v-chuncz-msft
9 years agoCommunity Support
Here is a similar case for your reference.
btalahmbong
9 years agoAdvocate II
v-chuncz-msft This will work with slicers.
I'm looking for a solution that wouldn't need a slicer preferably. I already have a 'Is last 30 Days' field in my calendar date table that will slice the day for the last 30 days.
Thanks