Forum Discussion

GunnerJ's avatar
GunnerJ
Icon for Post Patron rankPost Patron
4 years ago
Solved

Cumulative totals getting split by year

  I'm trying to find the number of active customers by year. The values shown in the picture show how many customers are active that started service in that year. What I need is for the previous ye...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, GunnerJ ;

    You could modify it:

    TEST2 = 
    CALCULATE (
        COUNT ( 'Attrition Rate'[ACCT] ),
        FILTER (
            ALL ( 'Attrition Rate' ),
         YEAR('Attrition Rate'[STARTDT])<=YEAR( MAX('Attrition Date'[Date]))&&
                'Attrition Rate'[MINDISCDT] = DATEVALUE ( "1/1/1800" )
                && 'Attrition Rate'[STARTDT] <> BLANK ()))

    And in last year ('2021') count is =8976

    The final output is shown below:


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.