Forum Discussion
Newcolator
2 years agoHelper II
Cumulating by two different variables
Hi! I am creating a cumulative total of value by day. Using this data. I create a quick measure Cumulative total by Day = CALCULATE( SUM('Sheet1'[value]), FILTER( ...
- 2 years ago
Newcolator
You can follow this pattern:Cumilative = CALCULATE(SUM('Table'[value]), FILTER(ALLSELECTED('Table'[day], 'Table'[3 day group]), 'Table'[day] <= MAX('Table'[day]) && 'Table'[3 day group] <= MAX('Table'[3 day group])) )Need Power BI consultation, hire me on UpWork .
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
tharunkumarRTK
2 years agoSuper User
Newcolator
You can follow this pattern:
Cumilative = CALCULATE(SUM('Table'[value]), FILTER(ALLSELECTED('Table'[day], 'Table'[3 day group]), 'Table'[day] <= MAX('Table'[day]) && 'Table'[3 day group] <= MAX('Table'[3 day group])) )
Need Power BI consultation, hire me on UpWork .
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
Newcolator
2 years agoHelper II
Wonderful, it works. And presumably I can add more variables to the measure using the same pattern?