Forum Discussion
Kolumam
Post Prodigy
6 years agoCumulative total based on the selected month
I have a date table and a Meter table. There exists a one to many relationship between them with a cross filter on both sides. I am trying to calculate a cumulative total of a column in the meter tab...
- 6 years ago
Hi Kolumam ,
First of all, we can create a spreated calculated table as the slicer,
SlicerTable = DISTINCT('Table'[Month])Then we can use a measure in visual filter to meet your requirement:
Cumulative Size = CALCULATE(SUM('Table'[Size]), FILTER(ALLSELECTED('Table'),[Month]<=SELECTEDVALUE('Table'[Month])))
Best regards,
v-lid-msft
Community Support
6 years agoHi Kolumam ,
First of all, we can create a spreated calculated table as the slicer,
SlicerTable = DISTINCT('Table'[Month])
Then we can use a measure in visual filter to meet your requirement:
Cumulative Size = CALCULATE(SUM('Table'[Size]), FILTER(ALLSELECTED('Table'),[Month]<=SELECTEDVALUE('Table'[Month])))
Best regards,
Anthony_G1
2 years agoFrequent Visitor
Hello,
I need to do something similar to the original poster, except display the Cumulative Size in a Card visual. Downloading your pbix, if I drag the Cumulative Size measure into a Card visual, it displays as (Blank). Is there a way to do this? Thank you!