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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Froznsolid
Regular Visitor

Filter a table based on an associated value from a slicer

Hello all,

 

I'm quite stuck trying to figure this out. I have a table with information reated to a set of addresses and my goal is to:

• Pick a single address from a slicer
• Find the associated neigborhood 
• Have that asssocaited neighborhood filter a table down to all other addresses in the neighborhood.

I have tried creating a measure and using the measure to filter a table, but it is throwing an error. Below is my attemp and what I whould like as an outcome. Thanks for any help the community can provide!

Attempt

Measure:

SelectedNeighborhood =
CALCULATE(
   MAX(Table[Neighborhood]),
  Table[Address]= SELECTEDVALUE(Table[Address])
)

 

Filtered Table:

FilteredTable = FILTER(Table, Table[Neighborhood] in [SelectedNeighborhood])
 
 
Desired Results

 

Choose address from Slicer:

Froznsolid_0-1686096501958.png

 

Filter the below table to only addresses in the same neighborhood
AddressNeighborhoodBathsBeds
1015 Fashionx24
1016 Fashionx33
1111 Dukey22
1112 Dukez66

 

Final Result

AddressNeighborhoodBathsBeds
1015 Fashionx24
1016 Fashionx33

 

 

Thanks!

1 REPLY 1
grazitti_sapna
Super User
Super User

Hi @Froznsolid 

To achieve your desired outcome in Power BI, you can use a combination of a slicer, measures, and a visual-level filter. Here's an example of how you can accomplish this:

Create a slicer visual for the "Address" column to allow selecting single adresss

Create a measure to determine the selected neighborhood based on the chosen address:

 

SelectedNeighborhood = VAR SelectedAddress = SELECTEDVALUE(Table[Address]) RETURN CALCULATE( MAX(Table[Neighborhood]), Table[Address] = SelectedAddress )

 

Now select the table visual and go to filter pane on the right side 

Add the filter for the ‘neighborhood’ column.

In filter setting select ‘basic filtering’ and choose ‘is equal to’ as the operator 

And in the value field enter [selectedNeighborhood]

By following steps, selecting address from the slicer will update the 'selectedNeighborhood' measure accordingly.

 

Thank you 

Hope this will help.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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