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
Stephane_SFE
New Member

How to use Map Visual with Calculated Latitude and longitude

Hi

I'm currently struggling with the map visual and GPS coordinate.

I have sales data for accounts, and I want to calculate the Economic center of gravity of my territories ("Secteur").

So, for that I’ve created:

  • The sales measure: Sales_CA = SUM(Sales_Account[CA])     "CA"
  • The latitude of the Economic center of gravity:
    • Latitude_vs_CA_total = [Sales_CA]*SUM(Accounts [Latitude])
    • Barycentre_Eco_Latitude = DIVIDE(SUMX( Accounts,[ Latitude_vs_CA_total]),[Sales_CA])  "Bary Lat"
  • The longitude of the Economic center of gravity:
    • Longitude_vs_CA_total = [Sales_CA]*SUM(Accounts [Longitude])
    • Barycentre_Eco_Longitude = DIVIDE(SUMX( Accounts,[ Longitude_vs_CA_total]),[Sales_CA]) "Bary Long"

 

When I create a table, all is fine:

Stephane_SFE_0-1674032165322.png

 

 

But when I want to use it in the map, I have an issue. Due the fact the measure needs the ‘don’t summarize’ option but I can’t.

 

Stephane_SFE_1-1674032183550.png

 

 

What is the best thing to do to solve it ?

 

Many thanks for the help.

Regards

5 REPLIES 5
AlanRGroskreutz
Helper II
Helper II

I ended up using the Icon Map custom visual from the AppSource.  Works great.

AlanRGroskreutz
Helper II
Helper II

l'm also having this issue.  Replying here to get this moved back up the list.   I have created a Calculated Measure for my Lat & Lon based on an if statement so one of them can be moveable.

fhill
Resident Rockstar
Resident Rockstar

Replying here to get this moved back up the list.  I'm having simular issues.  I have created a Calculated Measure for my Lat & Lon based on weighted location data.  But I can't map the Measure values?




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Idrissshatila
Super User
Super User

Hello @Stephane_SFE,

 

You should format the columns as latitude and longitude, refer to the ling for instructions

https://radacad.com/how-to-do-power-bi-mapping-with-latitude-and-longitude-only

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi

Thanks for the answer but it's not columns but measures and they are already tag as Latitude and Longitude.

Stephane_SFE_0-1674034555116.png

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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