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

Filtering a map based on selected record

Hello,

 

I have a dataset that contains a column called date/time and some location data. I would like to add functionality so that the map only display points where the date falls into the selected range.

 

I created a disconnected duplicate table from the original table, and wrote some measures that allows users to click on a record in the disconnected table and my table visual will show the records/counts within 72 hours of the selected record. I would like to have the same functionality on my map - displaying the points within 72 hours of the selected record. Is there a way to do this? 

 

Thank you!

 

JS00_0-1705074404188.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @JS00 ,

 

According to your statement, I think your requirement is to only show the data in 72 within range baesed on selection in bubbles in map visual.

I think you can try this code to create a measure to control the size of the bubbles.

Bubble Size = 
VAR _SELECTDATE = SELECTEDVALUE(Selection[Date/time])
VAR _RANGESTART = _SELECTDATE - 3
RETURN
IF(MAX('Table'[Date/time]) >=_RANGESTART && MAX('Table'[Date/time])<=_SELECTDATE,1,0)

My Sample:

vrzhoumsft_0-1705301625995.png

 

Best Regards,
Rico Zhou

 

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

 

Thank you for the solution,

 

The map (arcgis) visual seems to work, but now my table are showing blanks and my other points on the map disappear whenever I click or select anything on the map. 

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.