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

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

Reply
JenWilson
Helper II
Helper II

Only Show rows where there are matching values

Below is an example of a table visual I am working on in PBI. I am trying to display the tables where the data is coming from (there are 3 tables which do have relationships. Customers table to Sales Table (one to many), Product Table to Sales Table (one to many). 

What I am looking to do, is only display a single row when the values from the column "Product Table Level" match the values from the Customer Table Level".  In the screen shot below, the first table represents how the data is currently being displayed. The second table is the desired result. Is there a dax formula that I can use to filter this table down to the desired result? Thank you! 

 

JenWilson_1-1720800150385.png

 

 

1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

HI @JenWilson 

Use below measure and apply it as a visual filter.

Filter = if(SELECTEDVALUE('Table'[Product Table Level])=SELECTEDVALUE('Table'[Customer Table Level]),1,0)

NaveenGandhi_0-1720804947232.png



Let me know if this works, I have this solution assuming things are simple. If this does'nt work or data model is complicated, please provide a sample file or more details.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

View solution in original post

2 REPLIES 2
NaveenGandhi
Super User
Super User

HI @JenWilson 

Use below measure and apply it as a visual filter.

Filter = if(SELECTEDVALUE('Table'[Product Table Level])=SELECTEDVALUE('Table'[Customer Table Level]),1,0)

NaveenGandhi_0-1720804947232.png



Let me know if this works, I have this solution assuming things are simple. If this does'nt work or data model is complicated, please provide a sample file or more details.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

rajendraongole1
Super User
Super User

Hi @JenWilson - can you try below calculated colum to filter down to the desired result

 

Matched Level =
IF(
RELATED('Product Table'[Product Table Level]) = RELATED('Customers'[Customer Table Level]),
RELATED('Product Table'[Product Table Level]),
BLANK()
)

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors