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
Anonymous
Not applicable

Display Values that share same values across three different columns

Hello,

I Have a Table that is similar to the one below:

Product IDProduct TypeProduct LocationProduct Color
AWIDGETNYBLUE
BWIDGETCARED
CWIDGETNYCBLUE
DSERVERCAGREEN
ESERVERCAGREEN
FPCFLRED

 

What I'm trying to do is set the filter on a dashboard by Product ID, where it displays all Products that share the same Product Type, Product Location and Product Color.

 

For Example:

If I Select Project A, it will display:

Product IDProduct TypeProduct LocationProduct Color
AWidgetNYBlue
CWidgetNYBlue

 

Any help will be greatly appreciated.

 

Thanks

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have created a sample for your reference. Please check the following steps as below.

1. Create a calculated table and make it as slicer.

Slicer = DISTINCT(Query1[Product ID])

2. New a measure and make the table viusal filtered by it.

 

Measure =
VAR pro =
    SELECTEDVALUE ( Slicer[Product ID] )
VAR color =
    CALCULATE (
        MAX ( Query1[Product Color] ),
        FILTER ( ALL ( Query1 ), Query1[Product ID] = pro )
    )
VAR loc =
    CALCULATE (
        MAX ( Query1[Product Location] ),
        FILTER ( ALL ( Query1 ), Query1[Product ID] = pro )
    )
VAR ty =
    CALCULATE (
        MAX ( Query1[Product Type] ),
        FILTER ( ALL ( Query1 ), Query1[Product ID] = pro )
    )
RETURN
    IF (
        MAX ( Query1[Product Color] ) = color
            && MAX ( Query1[Product Location] ) = loc
            && MAX ( Query1[Product Type] ) = ty,
        1,
        0
    )

Capture.PNG

 

 Pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have created a sample for your reference. Please check the following steps as below.

1. Create a calculated table and make it as slicer.

Slicer = DISTINCT(Query1[Product ID])

2. New a measure and make the table viusal filtered by it.

 

Measure =
VAR pro =
    SELECTEDVALUE ( Slicer[Product ID] )
VAR color =
    CALCULATE (
        MAX ( Query1[Product Color] ),
        FILTER ( ALL ( Query1 ), Query1[Product ID] = pro )
    )
VAR loc =
    CALCULATE (
        MAX ( Query1[Product Location] ),
        FILTER ( ALL ( Query1 ), Query1[Product ID] = pro )
    )
VAR ty =
    CALCULATE (
        MAX ( Query1[Product Type] ),
        FILTER ( ALL ( Query1 ), Query1[Product ID] = pro )
    )
RETURN
    IF (
        MAX ( Query1[Product Color] ) = color
            && MAX ( Query1[Product Location] ) = loc
            && MAX ( Query1[Product Type] ) = ty,
        1,
        0
    )

Capture.PNG

 

 Pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Thank You Very Much it Worked.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.