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
Anonymous
Not applicable

calculate new and existing partner count during current period

Hi,

I've been looking around the community for something that might provide an answer to my problem. I am new to specifically DAX, and am trying to build dax.

 

Requirement.

 I need to count of particular partners for current year and previous year

 

Required output is as below:

 

vs_7_0-1646809165819.png

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @amitchandak ,

I have checked above links and tried your dax but im not getting proper count.

I required New and Existing customer count and total count.

 

Implementation

We have 3 tables – Sales, customer master and master calender

 

Dax measures.

1. New Customer This Period = Sumx(VALUES(Customer_Master[CUSTOMERCODE]),if(ISBLANK([Rolling 9 before three]) && not(ISBLANK([Rolling 3])) , 1,BLANK()))
 
2. Existing Customer This Period = Sumx(VALUES(Customer_Master[CUSTOMERCODE]),if(not(ISBLANK([Rolling 3])) && not(ISBLANK([Rolling 9 before three])) , 1,BLANK()))
3. Rolling 3 = CALCULATE([TotalRevenue],DATESINPERIOD(Master_Calendar[Date],ENDOFMONTH(Master_Calendar[Date]),-3,MONTH))
4. Rolling 9 before three = CALCULATE([TotalRevenue],DATESINPERIOD(Master_Calendar[Date],eomonth(max(Master_Calendar[Date]),-3),-9,MONTH))
 
I got below output
vs_7_0-1646897138902.png

 

Required output

vs_7_1-1646897197836.png

 

amitchandak
Super User
Super User

@Anonymous , Current vs Previous

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

 

 

Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458

 

Customer Retention Part 5: LTD Vs Period Retention
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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