Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi there,
I am trying to create a dynamic distance measure in Power BI so that when the user selects the Address or Site ID in the slicer, the table then filters to all sites around it within 100km.
I have tried the below method:
My base table is All Sites (this lists every site recorded, there can be multiple Site ID's per client, as below):
Site ID: 10001 Client 1 Lat Long
Site ID: 10001 Client 2 Lat Long
etc
I have then created a table that groups this data so that there is 1 site per Site ID like below:
Site ID: 10001 Lat Long
Site ID: 10002 Lat Long
etc
I have attempted the below formula to get the selected value, and then the distance per selected value:
Hey @swatsonlord ,
not sure what you want to achieve, consider creating a PBIX file that contains sample data but still reflects your semantic model (tables, relationships, calculated columns, and measures), and upload the model to OneDrive, Google Drive, or Dropbox and share the link. If you use a spreadsheet to create the sample data, share the spreadsheet as well.
Do not forget to explain the expected result based on sample data you provide.
You have to consider the following things:
Regards,
Tom
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.