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
silkwire
Frequent Visitor

Filter table by different column than slicer selection value

I have a scenario where I want to list a table of stores filtered by one level higher hierarchy than the store selected.

 

So normal, slicer interaction, the user selects the store from slicer and the table is filtered to that store:

silkwire_0-1670593227738.png

 

but I want the table to display all stores in the selected store's area, not just the single store. Like this:

 

silkwire_1-1670593265702.png

How do I accomplish this? 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You could create a disconnected copy of the stores and areas for use in the slicer, e.g.

Table for slicer = SUMMARIZE( 'Table', 'Table'[Store], 'Table'[Area])

Use the store column from this new table on the slicer, then create a measure like

Store is visible =
IF (
    SELECTEDVALUE ( 'Table'[Store] )
        IN CALCULATETABLE (
            VALUES ( 'Table'[Store] ),
            TREATAS ( VALUES ( 'Table for slicer'[Area] ), 'Table'[Area] )
        ),
    1
)

and add that as a visual level filter to your table, set to show only when the value is 1.

View solution in original post

2 REPLIES 2
silkwire
Frequent Visitor

That worked perfectly! Thanks

johnt75
Super User
Super User

You could create a disconnected copy of the stores and areas for use in the slicer, e.g.

Table for slicer = SUMMARIZE( 'Table', 'Table'[Store], 'Table'[Area])

Use the store column from this new table on the slicer, then create a measure like

Store is visible =
IF (
    SELECTEDVALUE ( 'Table'[Store] )
        IN CALCULATETABLE (
            VALUES ( 'Table'[Store] ),
            TREATAS ( VALUES ( 'Table for slicer'[Area] ), 'Table'[Area] )
        ),
    1
)

and add that as a visual level filter to your table, set to show only when the value is 1.

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.