Forum Discussion
Anonymous
4 years agoNot applicable
Conditional sum based on next row
Hi, I have a requirement to calculate the total for the current row based on the next rows using DAX : Data Set : Type Value Rule Expected Result A 10 B + C +D +E 250 B 20 C + ...
- 4 years ago
Anonymous , change like
new column = if( table[index] < max(table[Index]), sumx(filter(Table, [index] > earlier([index]) ) , [Value]) ,table[Index])
Sorry, I did not notice that
amitchandak
4 years agoSuper User
Anonymous , change like
new column = if( table[index] < max(table[Index]), sumx(filter(Table, [index] > earlier([index]) ) , [Value]) ,table[Index])
Sorry, I did not notice that
Anonymous
4 years agoNot applicable
yep its wokring fine , thanks alot .