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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DannyVaessens
Regular Visitor

How to add a 'distance bar' in PowerBI

Hi, 

 

I created a map in PowerBI with some different places, but now i want to show the distance between 2 or more different places. Is there a tool that can easily be used to measure the distance between some points (which can always be different points).

 

Anybody who can help?

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @DannyVaessens ,

 

According to your requirements, you need to measure the distance between different points. The key is to use measure to create a DAX expression to calculate the distance between points. I did the following test: two measures were created, one distance measure to show the names of cities, and the other kilometers measure to show the distance between cities.

 

v-henryk-mstf_1-1609404034205.png

v-henryk-mstf_2-1609404059393.png

 

v-henryk-mstf_0-1609404010388.png

 

Here is the sample pbix file.

 

Best Regards,
Henry

 

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

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @DannyVaessens ,

 

According to your requirements, you need to measure the distance between different points. The key is to use measure to create a DAX expression to calculate the distance between points. I did the following test: two measures were created, one distance measure to show the names of cities, and the other kilometers measure to show the distance between cities.

 

v-henryk-mstf_1-1609404034205.png

v-henryk-mstf_2-1609404059393.png

 

v-henryk-mstf_0-1609404010388.png

 

Here is the sample pbix file.

 

Best Regards,
Henry

 

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

amitchandak
Super User
Super User

@DannyVaessens , what parameter you have for that

refer if these can help

https://community.powerbi.com/t5/Desktop/How-to-Calculate-Distance-on-map-from-one-Postcode-to-Anoth...

https://community.powerbi.com/t5/Desktop/Distance-Calculation-in-Power-BI/td-p/206979

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors