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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Powermac
Frequent Visitor

Excluding incomplete records in matrix

Hello,

 

I have a data table that contains quotes from different vendors for a list of products. Besides the product ID there are also some additional product related columns that specify the product (size, color, area, etc.).

I just want to do a simple matrix and/or chart for comparing the sum of the different vendor quoations (assuming each prodcut shall be purchased one time) and do this also for different sizes, colors, area, etc.

So far it's the simpliest of all tasks for sure. My challenge is that not all vendors made a quote for each product and I only want to include those products in the sums where all vendors have made an offer.

 

Many thanks for you support! 🙂

 

 

In this example it looks ike Company B is th emost expensive but they made three quotations and the others only two. I would like to have only included the products where all vendors made offers (here P140 and P141).

 

image.png

 

Here is a snapshot of the data table:

ProductIDProductTypeAreaColorSizeVendorPrice
P140XA47WhiteS5Company B183,64
P140XA47WhiteS5Company C183,64
P140XA47WhiteS5Company A157,63
P141XA47WhiteS5Company B183,64
P141XA47WhiteS5Company C183,64
P141XA47WhiteS5Company A157,63
P142YA47GreyS3Company B127,39
P142YA47GreyS3Company A76,9
P144YA47WhiteS5Company B166,79

 

2 ACCEPTED SOLUTIONS
djurecicK2
Super User
Super User

Hi @Powermac ,

 You could try something like this, then filter based on Number of Offers or summarize the table.

 

Calculated column

Number of Offers = CALCULATE(DISTINCTCOUNTNOBLANK(Offers[Vendor]), FILTER(Offers,(EARLIER(Offers[ProductID])=Offers[ProductID])))
 
djurecicK2_0-1669751225463.png

Please accept as solution if this has answered the question- thanks!

View solution in original post

tamerj1
Super User
Super User

Hi @Powermac 

Please refer to attached sample file with the solution

1.png

Common Products Amount = 
VAR NumberOfCompanies = 
    COUNTROWS ( ALLSELECTED ( 'Table'[Vendor] ) )
RETURN
    CALCULATE ( 
        SUM ( 'Table'[Price] ),
        FILTER ( 
            VALUES ( 'Table'[ProductID] ),
            CALCULATE ( 
                DISTINCTCOUNT ( 'Table'[Vendor] ), 
                ALLSELECTED ( 'Table'[Vendor] ) 
            ) 
                = NumberOfCompanies
        )
    )

View solution in original post

3 REPLIES 3
Powermac
Frequent Visitor

Sorry for my delayed response. Many thanks for your support @djurecicK2 and @tamerj1 !

Both helped me a lot.

@tamerj1 : This really was 100% the solution that I was looking for. Many thanks for that!! 👍😊

tamerj1
Super User
Super User

Hi @Powermac 

Please refer to attached sample file with the solution

1.png

Common Products Amount = 
VAR NumberOfCompanies = 
    COUNTROWS ( ALLSELECTED ( 'Table'[Vendor] ) )
RETURN
    CALCULATE ( 
        SUM ( 'Table'[Price] ),
        FILTER ( 
            VALUES ( 'Table'[ProductID] ),
            CALCULATE ( 
                DISTINCTCOUNT ( 'Table'[Vendor] ), 
                ALLSELECTED ( 'Table'[Vendor] ) 
            ) 
                = NumberOfCompanies
        )
    )
djurecicK2
Super User
Super User

Hi @Powermac ,

 You could try something like this, then filter based on Number of Offers or summarize the table.

 

Calculated column

Number of Offers = CALCULATE(DISTINCTCOUNTNOBLANK(Offers[Vendor]), FILTER(Offers,(EARLIER(Offers[ProductID])=Offers[ProductID])))
 
djurecicK2_0-1669751225463.png

Please accept as solution if this has answered the question- thanks!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.