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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mtrevisiol
Helper V
Helper V

Filter table based on category from other table

Hi everyone,

I've got a small database like this:

mtrevisiol_2-1697636531444.png

 

My intent is to create a PowerBI report in which the user can filter the Supplier Name (from table 1), and get the QualityFactor (from table 4) of all the suppliers which belong to the same category (tables 2 and 3).

For example if I select Supplier 1 - ABC SRL, I will get the Quality Factors of suppliers 1 and 3.

Here is the pbix file: https://www.dropbox.com/scl/fi/5axb9g3xrdx8d00zm2xs5/SupplierQualification.pbix?rlkey=p6slq2ohf8jhfw...

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @mtrevisiol 

 

First you need to disconnect Table 1 from Table 4.

Measure = 
IF ( SELECTEDVALUE ( Table4[IDSupplier] )
        IN CALCULATETABLE ( VALUES ( Table2[Activity] ),
            FILTER ( ALL ( Table2 ), [Supplier] = SELECTEDVALUE ( Table1[IDSupplier] ) )
        ),
    1,
    0
)

vzhangti_0-1697799678581.png

Put measure in the filter of the view to be filtered and set it equal to 1.

vzhangti_1-1697799769829.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @mtrevisiol 

 

First you need to disconnect Table 1 from Table 4.

Measure = 
IF ( SELECTEDVALUE ( Table4[IDSupplier] )
        IN CALCULATETABLE ( VALUES ( Table2[Activity] ),
            FILTER ( ALL ( Table2 ), [Supplier] = SELECTEDVALUE ( Table1[IDSupplier] ) )
        ),
    1,
    0
)

vzhangti_0-1697799678581.png

Put measure in the filter of the view to be filtered and set it equal to 1.

vzhangti_1-1697799769829.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mtrevisiol
Helper V
Helper V

Hi, any suggestion?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.