Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
aletho
Helper I
Helper I

Churn rate - count if same number DAX

Hey all

 

I am trying to make a visualization in Power bi showing the churn rate. 

What I have is some data that look likes the date in the table below. I want to see if the customer has made it to subscription 1, 2 or 3 over a period of time. If a could do that I can create a column chart as below. 

 

Is it possible to create a DAX measure that counts the number of unique "user id", as I have tried to illustrate in the table.

 

Thanks! 

churn rate.PNG

DateUser idCOUNT
26/08/201811
27/08/201821
28/08/201831
29/08/201841
30/08/201851
31/08/201861
01/09/201823
02/09/201881
03/09/201891
04/09/2018101
05/09/2018112
06/09/2018121
07/09/201882
08/09/201823
09/09/2018131
10/09/2018112
11/09/201882
1 ACCEPTED SOLUTION

Not sure why you couldn't get that to work but attached is PBIX of solution. You want Page 7.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
Greg_Deckler
Community Champion
Community Champion

I believe:

 

Measure = DISTINCTCOUNT('Table'[User id])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you for the reply. The distinctcount shows me the user id that appears more than once, which is good to show me the number of subscribers who stay more than one subscriptions period. I would like to be able to see the once that stay for 1, 2 or 3 periods. That's that make sense? 🙂 

 

This is what I can create when using distinctcount - thanks again and any other suggestions are more than welcome 🙂 

Capture.PNG

Use Count in your Axis?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I don't have the row "count", that's the one I would like to create 🙂 

If you do not have a column called COUNT, although you show it in your table, use this:

 

COUNT = COUNTROWS(FILTER(ALL('Table'),[User id]=EARLIER([User id])))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sorry I made it to illustrate what I was after.

 

I tried your measure but cannot get it to work properly. 

 

I have made a link to my date on google drive:

https://drive.google.com/open?id=1r6nZbSvJZsv49efRqsYzvW9OQ-RuDLoK

 

packageId is like "user id" and what I would like to create the "count column" from. 

 

Understand if it is to much asking you to look at it again. 

 

Still thanks for your time 🙂 

 

 

Not sure why you couldn't get that to work but attached is PBIX of solution. You want Page 7.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors