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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.