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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jmcph
Helper III
Helper III

Sum by Distinctcount with exceptions

Hi , I have a table like the one below: 

 

OR #                Product Name               Sales

01                    Combo Deal                1,000

01                    Product A                      600

01                    Product B                      400

01                    Product C                      200

02                    Product A                      500

03                    Product B                      300

04                    Product A                      200

 

I want to obtain a sum of sales of all product name, however, for Combo Deal the items composing it should not be part by the computation. Thus, for OR # 01 Prod A , B and C should not be added.

 

My expected result should be something like:

 

Product Name                     Sum of Sales

Combo Deal                          1,000

Product A                               700

Product B                               300

 

How should i put that into measure? Thank you! 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you for this! Totally solved my problem.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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