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! Learn more

Reply
yash14vashistha
Helper III
Helper III

Distinct Count based on two measures

Hey Guys,

 

I need to calculate the distinct count of clients based on the previous year's and this year's fee

Right now i am using this

 

CALCULATE(DISTINCTCOUNT(FV[Client (Parent)]),SUM(FV[YTD PBR less BE (USD)]) <= 0,SUM(FV[Prior 1 YTD PBR less BE (USD)]) > 0)

 

where 'client parent' is the column header for clients, 'PBR less be' is the fee. So YTD is this year's and Prior 1 YTD is previous year's fee.

 

So what I am doing here is to see the number of clients whose fee was  <= 0 (Less than) this year and > 0 (greater than) in previous year.

 

But this isn't working

3 REPLIES 3
Anonymous
Not applicable

HI @yash14vashistha,

 

Can you please provide the pbix file for test?

 

Regards,

Xiaoxin Sheng

Unfortunately I can't. The data is confidential. But this is exactly the same Calc I am doing. If there is some confusion I will happliy clear it.

Anonymous
Not applicable

HI @yash14vashistha,

 

Maybe you can try to use similar structure fake data to create sample file and share it.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Kudoed Authors