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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
PJOS_1
Frequent Visitor

Filter a table with a slicer but on a different column

Ok, I've looked and looked and can't quite find what I need on this. I have a slicer (not visible) that will be connected to this table visual. The selections in the slicer are from my [Property Name] column shown below. What I'd like this table to do is upon the user selecting, say, "Greenfield", the below table visual filters against "Operator" 

No filter applied:
PBI sample.PNG

User selected "Greenfield" from slicer.
Desired output:

PJOS_1_0-1613146886922.png

Any idea how to do this? Thanks in advance.






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

Hi @PJOS_1 ,

 

According to my understanding, you want to filter out all rows of the same Operator with the selected Property Name in slicer,right?

 

You could firstly create a separate table for slicer:

ForSlicer = VALUES('Table'[Property Name])

Then use the following formula to create measure:

Measure =
VAR _op =
    SUMMARIZE (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Property Name] IN ALLSELECTED ( ForSlicer[Property Name] )
        ),
        'Table'[Operator]
    )
RETURN
    IF ( MAX ( 'Table'[Operator] ) IN _op, 1, 0 )

And apply it to filter pane, set as "is 1" like this:

2.16.3.1.gif

 

Please take a look at the pbix file here.

 


Best Regards,
Eyelyn Qin
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

5 REPLIES 5
v-eqin-msft
Community Support
Community Support

Hi @PJOS_1 ,

 

According to my understanding, you want to filter out all rows of the same Operator with the selected Property Name in slicer,right?

 

You could firstly create a separate table for slicer:

ForSlicer = VALUES('Table'[Property Name])

Then use the following formula to create measure:

Measure =
VAR _op =
    SUMMARIZE (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Property Name] IN ALLSELECTED ( ForSlicer[Property Name] )
        ),
        'Table'[Operator]
    )
RETURN
    IF ( MAX ( 'Table'[Operator] ) IN _op, 1, 0 )

And apply it to filter pane, set as "is 1" like this:

2.16.3.1.gif

 

Please take a look at the pbix file here.

 


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

Fantastic! That did it!

negi007
Community Champion
Community Champion

@PJOS_1 Please tell me how greenfield selection is related to other filterd fields. I can't see  I would suggest you to create a new table where you will have below fields

Main_Property_Name

Property name

 

Property name above can be used to link new table and main table which is shown above by you. This way your filter from new table will work on your existing table. 

 

Let me know if i am missing something here

 

 




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



Proud to be a Super User!


Follow me on linkedin

Both Operator and Property Name are on the same lookup table which has 25 records. There are no other filters on this table visual.

Let me make sure I understand: If I add another table with my list of unique operators and connect it to this table with my properties, I should be able to pull this off? 

Thanks for the help, I'm new to PBI.  

PJOS_1
Frequent Visitor

I did what was suggested and I still can't get it. I'm thinking this isn't possible.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.