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

View all the Fabric Data Days sessions on demand. View schedule

Reply
EiA
Frequent Visitor

Churn calculation

Hi all,

 

There is obviously already tons of different churn-threads in here, but I wasn't able to find one for my case (may very well be me not knowing what to search for..)

 

Simplified, but the structure of my data is like this:

 

ContractIDCustomerIDStartDateEndDate
1101.01.202231.12.22
2201.01.202231.12.22
3301.01.202231.12.22
4301.01.202331.12.23

 

ContractID 1 and 2 should be considered as churn on 31.12.22.

ContractID 3 should not be considered as churn on the 31.12.22, as the same customer has a new contract starting the day after.

 

Any advice on how to calculate this or pointers to existing threads already covering it?

 

Thanks!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You could create a calculated column like

Has further contract = 
var currentEndDate = 'Table'[EndDate]
return NOT ISEMPTY( CALCULATETABLE( 'Table', ALLEXCEPT('Table', 'Table'[CustomerID]), 'Table'[StartDate] >= currentEndDate ) )

View solution in original post

2 REPLIES 2
EiA
Frequent Visitor

Thanks you @johnt75  - excellent solution!

johnt75
Super User
Super User

You could create a calculated column like

Has further contract = 
var currentEndDate = 'Table'[EndDate]
return NOT ISEMPTY( CALCULATETABLE( 'Table', ALLEXCEPT('Table', 'Table'[CustomerID]), 'Table'[StartDate] >= currentEndDate ) )

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors