Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I would appreciate the help of the community very much.
I am searching for a solution to summarize the values of column Count, but the result in SUM should summarize only the values from the current row backwards. For illustration, please note the line with index number 6.
Thank you very much for taking time and a good day.
Solved! Go to Solution.
Thank you for your quick feedback and your help.
I could implement your solution, but I have got this result.
I have added the code like this:
Did I something wrong?
Thank you for your patience.
@Anonymous strange..
Can you share your file?
Now it works. I have checked the Variable _curr_index and it was always empty. For this reason I have removed the function SELECTEDVALUE.
This are the results:
Here is the code:
Thank you a lot for your help.
@Anonymous
SUM RT =
VAR _curr_index =
SELECTEDVALUE ( Table[Index] )
RETURN
CALCULATE(
SUM(Table[Count],
REMOVEFILTERS(Table),
Table[Index] < = _curr_index
)
Thank you for your quick feedback and your help.
I could implement your solution, but I have got this result.
I have added the code like this:
Did I something wrong?
Thank you for your patience.
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |