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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PeORydgren
Regular Visitor

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 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.