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

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

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

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

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
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.