March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have one column named "Result", 1 means success, 0 means fail. How should I calculate the total success count from frist line to current line? The final result should be like following:
Result Total
1 1
0 1
1 2
1 3
0 3
Solved! Go to Solution.
Running Total COLUMN = CALCULATE ( SUM ( 'Sheet1'[Values] ), ALL ( 'Sheet1' ), 'Sheet1'[ID] <= EARLIER ( 'Sheet1'[ID] ) )
Lets say ID is the name of your first column and values is the second column
@KerwenZhang Please add an Index column in "Power Query Editor" and then use the below logic in Data pane as New Column
Total = CALCULATE(SUM(Test158CummSum[Result]),FILTER(Test158CummSum,Test158CummSum[Index]<=EARLIER(Test158CummSum[Index])))
Proud to be a PBI Community Champion
@KerwenZhang Please add an Index column in "Power Query Editor" and then use the below logic in Data pane as New Column
Total = CALCULATE(SUM(Test158CummSum[Result]),FILTER(Test158CummSum,Test158CummSum[Index]<=EARLIER(Test158CummSum[Index])))
Proud to be a PBI Community Champion
Running Total COLUMN = CALCULATE ( SUM ( 'Sheet1'[Values] ), ALL ( 'Sheet1' ), 'Sheet1'[ID] <= EARLIER ( 'Sheet1'[ID] ) )
Lets say ID is the name of your first column and values is the second column
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |