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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mrdwanm
Frequent Visitor

How To Summarize Churn

Hello, 

i have calculate of churn for each customer.

and then i want to show the churn by customer type, but the total is 0.

 

How to show it? 
my dax query for churn 

Churn =
IF(AND([GMV] = 0 , [Sales LM] > 0),0 - [Sales LM],0)
 
*Sales LM = Sales Last Month
mrdwanm_0-1629287630138.png

 

Thank you!

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @mrdwanm,

 

Try measure as:

SUMX(
   filter(
         table,
         table[Year Month Type]=maxtable[Year Month Type]),
  [Churn]
)

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

5 REPLIES 5
v-xulin-mstf
Community Support
Community Support

Hi @mrdwanm,

 

Try measure as:

SUMX(
   filter(
         table,
         table[Year Month Type]=maxtable[Year Month Type]),
  [Churn]
)

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

m3tr01d
Continued Contributor
Continued Contributor

Can you add the Sales LM on this table and show me what you see?

m3tr01d_0-1629292268357.png


To debug further we might need to have your pbix file with some data 😕

Sorry, this the visual.

i can't to upload the pbix file, because the data is sensitive.

 

mrdwanm_0-1629295224723.png

 

m3tr01d
Continued Contributor
Continued Contributor

Can you 
1) tell us all the dax code from the measures [GMV] and [Sales LM]
2) put the measure [GMV] and [Sales LM] on the visual and show us a picture

Hi,

 

Sure. Here'is the DAX code.

GMV = IF(SUM(Retention[total_gmv]) = BLANK(), 0, SUM(Retention[total_gmv]))
Sales LM = CALCULATE([GMV],DATEADD('Date'[Date],-1,MONTH))
mrdwanm_0-1629288638000.png

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.