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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Cobalt58_9
Frequent Visitor

Parent Points on Map

Hi everyone, having trouble figuring this out, and hope I explain it correctly.

 

I want to show affiliates on a map, specifically for sports leagues. Essentially, when you select the pro team, the map will show the minor league locations as well. 

 

This has to be possible right? I think I'm having the most trouble figuring out how to setup data amd relationships. What do you think? Thanks in advance.

5 REPLIES 5
pborah
Impactful Individual
Impactful Individual

@Cobalt58_9 , what do you have for geo data either pro teams or minor leagues or both? You can create two related tables one containing pro teams and the other containing minor leagues with primary and foreign keys.

I have not used lat/long, simply the city, state/province, and country names. And I do have them broken out by each league, sometimes up to four different leagues, and then tried using an "order" column to keep them organized, but that didn't seem to work.

pborah
Impactful Individual
Impactful Individual

Thanks @Cobalt58_9 , using lat/long will probably be more precise especially if multiple pro or minor teams belong to the same city.

 

You mean you have both pro and minor teams in the same table? If so, it will difficult and complicated showing them on a map in that data structure.

I do have a master list with all of them together, but also have them broken out.

 

For example here is my hockey book:

Cobalt58_9_0-1730986416104.png

^NHL Team

 

Cobalt58_9_1-1730986448637.png

^AHL Team

Hi @Cobalt58_9 , hello pborah, thank you for your prompt reply!

 You could create a relationship between two tables as shown below:

vyajiewanmsft_0-1732007307398.png

Then select the City column from both tables:

vyajiewanmsft_2-1732007611706.png

 

vyajiewanmsft_1-1732007595036.png

Result for your reference(Drill down or drill up to get the parent and child city):

vyajiewanmsft_3-1732007842820.png

Best regards,

Joyce

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.