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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Naash
Frequent Visitor

Dynamic filtering based on Slicer selection

Hello,

 

I have a query on filtering data using Measure, 

Scenario - I have two slicers one helps me filter the Location coordinates and the other(manually generated value, has no relation with other data) helps in selecting a range (10 yards, 20 yards).  I want to know is it possible to link and use these values to identify list of other coordinates that fall within a specific range of the selected value ?

 

So whenever a user selects a specific coordinate and range i want to display the list of data and their coordinates that is within that range. Can this be done ? 

1 ACCEPTED SOLUTION
Aburar_123
Responsive Resident
Responsive Resident

Please find the below solution,

 

1. Created a table

 

Aburar_123_0-1639242065454.png

2. Create another table as below,

Aburar_123_1-1639242101176.png

3. Create a measure as below,

Records in Yards range =
var min_yard = MIN('Table_Yards_slicer'[Yards])
var max_yard = MAX('Table_Yards_slicer'[Yards])
var is_in_range = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Yards]>=min_yard && 'Table'[Yards]<=max_yard))
return if(is_in_range>0,1,0)
 
4. Place the above created measure into visual level filter,
 
Aburar_123_2-1639242187463.png

 

5. Yards slicer should be from 'Table_Yards_slicer' table.

 

 

if you follow the above approach you can solve your issue.

View solution in original post

1 REPLY 1
Aburar_123
Responsive Resident
Responsive Resident

Please find the below solution,

 

1. Created a table

 

Aburar_123_0-1639242065454.png

2. Create another table as below,

Aburar_123_1-1639242101176.png

3. Create a measure as below,

Records in Yards range =
var min_yard = MIN('Table_Yards_slicer'[Yards])
var max_yard = MAX('Table_Yards_slicer'[Yards])
var is_in_range = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Yards]>=min_yard && 'Table'[Yards]<=max_yard))
return if(is_in_range>0,1,0)
 
4. Place the above created measure into visual level filter,
 
Aburar_123_2-1639242187463.png

 

5. Yards slicer should be from 'Table_Yards_slicer' table.

 

 

if you follow the above approach you can solve your issue.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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