Forum Discussion
VJ_Lsf
1 year agoFrequent Visitor
Cumulative sum
Hi, I need help with creating a measure for calculating cumulative sum by technician. I also have a date column in addition to 2 columns below. Cumulative total by Technician column is what I need. ...
- 1 year ago
Hi VJ_Lsf
Hello,
I made a small test:
As mentionned, with your query I get the third line
The sum is done by month (9 then 18 and 33)
To get the sum by Date AND Techncian, you have to add the technician in the column
you just have to add:
'Table'[Technician] = MAX('Table'[Technician]) in your dax query, so your new measure becomesCumulative Total by Date & Technician =CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Date] <= MAX('Table'[Date]) &&'Table'[Technician] = MAX('Table'[Technician])))
Cookistador
Super User
1 year agoHi VJ_Lsf
Hello,
I made a small test:
As mentionned, with your query I get the third line
The sum is done by month (9 then 18 and 33)
To get the sum by Date AND Techncian, you have to add the technician in the column
you just have to add:
'Table'[Technician] = MAX('Table'[Technician]) in your dax query, so your new measure becomes
Cumulative Total by Date & Technician =
CALCULATE(
SUM('Table'[Value]),
FILTER(
ALLSELECTED('Table'),
'Table'[Date] <= MAX('Table'[Date]) &&
'Table'[Technician] = MAX('Table'[Technician])
)
)