Forum Discussion
Anonymous
6 years agoNot applicable
Summarizing rows
Hi, I spent a lot of time on this and now I'm looking for help. I need to summarize lines of an ID. It sounds easy, but the result that I need is a little bit different, and I'm showing it be...
- 6 years ago
Hi Anonymous ,
If you want to calculate the column ACUM which you highlight in your image, you could try the steps below.
1. Create the index column in query editor.
2. Create the group index calculated column with dax.
group index = RANKX ( FILTER ( 'Table', EARLIER ( 'Table'[ID] ) = 'Table'[ID] ), 'Table'[Index], , ASC )3. Create the measure with the formula below.
Measure = CALCULATE ( SUM ( 'Table'[STATUS_] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[ID] ), 'Table'[group index] <= MAX ( 'Table'[group index] ) ) )Here is the output.
If you still need help, free to ask.
Best Regards,
Cherry
Anonymous
6 years agoNot applicable
Hello Anonymous
Try this function:
MaxAcum = CALCULATE(MAX(Table[Total]);ALLEXCEPT(Table;Table[ID]))
- Anonymous6 years agoNot applicable
Hi Anonymous ,
Thanks a lot for so fast answer.
It didn't work.
The TOTAL column has the same value to all rows.
Regards.
- Anonymous6 years agoNot applicable
sorry brother, i had understood that u need the last value accumulated, but i need a function to sum each value through status =/
- Anonymous6 years agoNot applicable
Relax and thanks for the attempt.