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

How to count specific sums within a data set

I have a set of license values within a data set. I need to count the amount of customers which have a summarized total of AmountIn and AmountOut equals 0, meaning a lost customer.

 

So in this table below it would evaluate that only one of the customers is lost (A), since the others still have a balance different from zero.

 

Excel_Example.png

 

I am not cracking this one myself...

2 REPLIES 2
Anonymous
Not applicable

Hi,

 

just make a new Measure by using the following dax

 

Lost_Customer = CALCULATE(COUNTA(Table1[Customer]), Table1[AmountIn] = 0)
Anonymous
Not applicable


@Anonymous wrote:

Hi,

 

just make a new Measure by using the following dax

 

Lost_Customer = CALCULATE(COUNTA(Table1[Customer]), Table1[AmountIn] = 0)


Thank you Gaurav. However, for customer C the summarized amount is not zero and the customer is not lost. (And I clarified in my description since I understand I was not 100% clear on the summarized values och both In and Out equal to zero.)

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 Solution Authors