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 moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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! |
|
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
83 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
129 | |
108 | |
63 | |
55 |