Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hi please assist. I have been struggling with the below, any help will be apreciated. I want to calculate a cumulative sum of the metres based on site and discipline. The running total and creating an index column does not work as it does not stop and start afresh when a new discpline is encountered or a new site and discipline start.
Data
Desired output
Solved! Go to Solution.
@Kanyi , Create a calculated column using below DAX
CumulativeSum =
CALCULATE(
SUM(Table[Metres]),
FILTER(
ALLEXCEPT(Table, Table[Site], Table[Discipline]),
Table[Date] <= EARLIER(Table[Date])
)
)
Proud to be a Super User! |
|
@Kanyi , Create a calculated column using below DAX
CumulativeSum =
CALCULATE(
SUM(Table[Metres]),
FILTER(
ALLEXCEPT(Table, Table[Site], Table[Discipline]),
Table[Date] <= EARLIER(Table[Date])
)
)
Proud to be a Super User! |
|
User | Count |
---|---|
90 | |
88 | |
86 | |
79 | |
49 |
User | Count |
---|---|
153 | |
145 | |
106 | |
74 | |
55 |