Forum Discussion
Samarth-Borade
3 years agoFrequent Visitor
Revverse cumulative error
RevCum_Revenue123 = VAR RunningTotal= CALCULATE([sss], FILTER(ALL(grp[Rev]),grp[Rev]>=MIN(grp[Rev]))) RETURN IF(ISBLANK([sss]),BLANK(),RunningTotal) here [sss] = SUM(grp[Rev]) when i ...
- 3 years ago
Samarth-Borade
Please refer to attached sample file with the proposed solutionRevCum_Revenue = VAR CurrentRevenue = SUM ( 'Table'[Revenu] ) VAR T1 = SELECTCOLUMNS ( ALLSELECTED ( 'Table'[Customer Cod] ), "@Revenue", CALCULATE ( SUM ( 'Table'[Revenu] ) ) ) VAR T2 = FILTER ( T1, [@Revenue] >= CurrentRevenue ) RETURN SUMX ( T2, [@Revenue] )
tamerj1
Community Champion
3 years agoHi Samarth-Borade
What is the result that you're looking for?
- Samarth-Borade3 years agoFrequent Visitor
- tamerj13 years ago
Community Champion
Samarth-Borade
Please refer to attached sample file with the proposed solutionRevCum_Revenue = VAR CurrentRevenue = SUM ( 'Table'[Revenu] ) VAR T1 = SELECTCOLUMNS ( ALLSELECTED ( 'Table'[Customer Cod] ), "@Revenue", CALCULATE ( SUM ( 'Table'[Revenu] ) ) ) VAR T2 = FILTER ( T1, [@Revenue] >= CurrentRevenue ) RETURN SUMX ( T2, [@Revenue] )
- Samarth-Borade3 years agoFrequent Visitor
Any leads?