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
ManjunathaEP
Helper II
Helper II

Sum of Customers for multiple values in same column

Hello, I have 2 requirements from the below sample data:

Requirement 1: I want to get the distinct count of customers, who has Y/N? equals Y and N. In the below sample data, I should get customer distinct count is 2 (Cust.Name= XYZ and ANF)

 

Requirement 2: I want to get the sum of the distinct customers, who have Y/N? equals Y and N. In the below sample data, I should get a sum of distinct customers of XYZ and ANF for Y and N = 610 (123+344+66+77) and also I should get the total sum of Y, who is equals to Y & N, expected answer is = 347 (123+344) 

Cust.NameY/N?Amount
XYZY123
ANFY344
ABCY555
JUFY222
KIFY33
JUSY55
KFFY7676
LSFY33
XYZN66
ANFN77
SREN88
2 ACCEPTED SOLUTIONS
Payeras_BI
Super User
Super User

Hi @ManjunathaEP ,

 

Not sure if I understood correctly the third requirement. For me the result would be 467 (123+344).

 

Payeras_BI_0-1611313440642.png

Payeras_BI_1-1611313462860.png

Payeras_BI_2-1611313479616.png

Regards,

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

Payeras_BI
Super User
Super User

Hi @ManjunathaEP,

The same way as in your previous Requirement 1 but, in this case, switching > by =.

BTW the result is 7.

Payeras_BI_0-1614331339029.png

 

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

3 REPLIES 3
Payeras_BI
Super User
Super User

Hi @ManjunathaEP,

The same way as in your previous Requirement 1 but, in this case, switching > by =.

BTW the result is 7.

Payeras_BI_0-1614331339029.png

 

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
ManjunathaEP
Helper II
Helper II

Hi, In the above example, I would like to get the count of the only Y, who is not Y and N.

Example: Customer Name: Total count of customers is 6 (ABC, JUF, KIF, JUS, KFF and LSF) who are not part of Y and N. Please help on this and thank you in advance

Payeras_BI
Super User
Super User

Hi @ManjunathaEP ,

 

Not sure if I understood correctly the third requirement. For me the result would be 467 (123+344).

 

Payeras_BI_0-1611313440642.png

Payeras_BI_1-1611313462860.png

Payeras_BI_2-1611313479616.png

Regards,

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

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.

Top Solution Authors