Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 |
| SE | a | 29.9645 | -90.0885 | 20 |
| SE | b | 30.00944 | -90.1634 | 30 |
| NE | c | 30.21084 | -90.9219 | 30 |
| W | d | 32.73877 | -89.5313 | 40 |
| W | e | 33.06219 | -89.5849 | 50 |
To Become like this:
| Sub Region | Location | Latitude | Longitude | Sales |
| SE | 29.9645 | -90.0885 | 50 | |
| NE | 30.21084 | -90.9219 | 30 | |
| W | 33.06219 | -89.5849 | 90 |
Solved! Go to Solution.
Hi,
You do not need to create second table. Just select the aggregate function as Average for Lat and Long
Hi,
You do not need to create second table. Just select the aggregate function as Average for Lat and Long
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.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |