Forum Discussion

aavilap's avatar
aavilap
Icon for Helper I rankHelper I
8 years ago
Solved

Cummulative Total of Measure

Hello!  Hope someone can help me with this I have been trying to create a measure that adds the monthly result of another calculated measure which uses COUNTROWS but I'm not being able to get the de...
  • parry2k's avatar
    parry2k
    8 years ago

    Create two measures:

     

    Distinct Customers = DISTINCTCOUNT('Sample'[Customer])
    
    Cummulative Customers = 
    SUMX(
    FILTER(ALL('Sample'[Date]), 'Sample'[Date] <= MAX('Sample'[Date])),
    [Distinct Customers]
    )

    Drop date, and these two measures in a table and you have it.