Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Status Changed for year

Greetings, I have the following table in Power BI and I need to calculate how many changes of status there were per year 

 

UserYEARSTATUS
12013A
12014B
12015B
12016B
22013A
22014B
22015B
22016A
32013A
32014A
32015B
32016B

 

For Example for  year 2014 there were 2 changes of state. how can i represent that in a dax formula

  • Hello Anonymous 

    Something like this should work for you

     

    Status Changes = DISTINCTCOUNT ( YourTable[STATUS] )

     

    Then pull Year from the table and this measure into a visual. 

1 Reply

  • Hello Anonymous 

    Something like this should work for you

     

    Status Changes = DISTINCTCOUNT ( YourTable[STATUS] )

     

    Then pull Year from the table and this measure into a visual.