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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ROG
Responsive Resident
Responsive Resident

dax help

I am trying to calculate net churn: (gross churn - reactivations) / base

ROG_0-1722588034836.png

but if reactivations are greater than gross churn, I want it to return 0 

so basically the numerator would be something like: max((gross churn - reactivations), 0) But can’t figure it out .

 

Thanks!

2 REPLIES 2
Anonymous
Not applicable

Hi @ROG ,
After all this time, has your problem been resolved, or has a new issue arisen? If you haven't solved it yet, you can upload your instance data or pbix file, which will help to solve your problem faster.

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

bhanu_gautam
Super User
Super User

@ROG , Please try below DAX

 

Net Churn =
VAR GrossChurn = SUM('YourTable'[GrossChurn])
VAR Reactivations = SUM('YourTable'[Reactivations])
VAR Base = SUM('YourTable'[Base])
RETURN
IF(
Base = 0,
0,
MAX((GrossChurn - Reactivations), 0) / Base
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.