Forum Discussion

vijaykumarj19's avatar
vijaykumarj19
Microsoft Employee
5 years ago

Cumulative total for no data

attributevalue
x112
x222
x331
x40

x5

0

 

cummulate total 

 

CALCULATE(

    SUM(Table[value]),
        FILTER(
        ALLSELECTED(table[attribute]]),
        ISONORAFTER('table[attribute] , MAX(table[attribute]) , DESC)
))
 
its showing cumulative for o values also , need to exclude cumulate where there is no value

2 Replies

  • vijaykumarj19 , Try if this can work

    CALCULATE(
    SUM(Table[value]),
    FILTER(
    ALLSELECTED(table[attribute]]),
    ISONORAFTER(table[attribute] , MAX(table[attribute]) , DESC) && Table[value] >0
    ))