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
BrianNeedsHelp
Resolver I
Resolver I

Summarize Data for Map Visualization

Our sales territories, are basically a hierarchy of Regions, Subregions, Locations.    So the table has all of the Lats and Longs for each location.  I'm wanting to sum up the sales by each Subregion but not sum up the Lats and Longs.  But keep a random Lat and Long in the subregion, so that the subregions generate on a map.  Is there a DAX code to achieve? 

   E.g.  

Need this:

Sub Region     Location   Latitude   Longitude   Sales   
SEa29.9645-90.088520
SEb30.00944-90.163430
NEc30.21084-90.921930
Wd32.73877-89.531340
We33.06219-89.584950

To Become like this:

Sub Region     Location   Latitude   Longitude   Sales   
SE 29.9645-90.088550
NE 30.21084-90.921930
W 33.06219-89.584990
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You do not need to create second table.  Just select the aggregate function as Average for Lat and Long

Ashish_Mathur_0-1754704660448.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You do not need to create second table.  Just select the aggregate function as Average for Lat and Long

Ashish_Mathur_0-1754704660448.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This shows all the locations.  I'm trying to display only the subregions.  When I put Subregion in the Location and change the Lat and Long to Average, it still shows all the locations.  

Nevermind.  It's because I had Location in the tool tip.  Wow that was much easier than I thought.  Thank you! 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors