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! Request now

Reply
abhiram342
Microsoft Employee
Microsoft Employee

New, Retuning and Churn Customer Count based on Current and Previous Fiscal Years

Hi Team,

 

I have FactSales table which the Customer,ID SalesAmount and Date fields. I want to create DAX measure for below scenario. Can someone please assist?

Fact Table : Date,CustomerID,SalesAmount

Customer Table: CustomerID, CustomerName

Date Table: Date,Month,FiscalYear,Fiscal Quater

 

DAX Metrics

1. New Customers

Customer which are present in current fiscal year (FY22) and doesn't present in previous Fiscal Year (FY21)

2. Returning Customers

Customers which are present in Previous Fiscal Year ( FY21) and present in current Fiscal Year as well (FY22)

3.Churn

Customers which are present in present in previous Fiscal Year (FY21) and doesn't present in current fiscal years(FY22)

 

Thanks,

Abhiram

1 REPLY 1
VahidDM
Super User
Super User

Hi @abhiram342 

 

You need to use EXCEPT and INTERSECT for those measures:

1. New Customers : use filter to find list of FY22 and FY21 then use Except(FY22,FY21)

2. Returning Customers: Intersect(FY21,FY22)

3.Churn: Except(FY21,FY22)

 

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

Appreciate your Kudos🙏!!

 

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.