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
MSB_gpc
Frequent Visitor

Map with Multiple Relationships

Hello everyone,

 

I am a recent user of Power BI and I need some help with this case. 

 

I am working with two tables.

First one contains three columns: Origin, Destination, Issue (can have repeated values). The origin column has n different possible values while destination column has m different values (m>n and includes all origin values).

Second one contains three columns: Location, Latitude and Longitude (it has unique values).

 

I want to create two maps that show the number of issues by origin and destination respectively. It is easy to create one map by adding a relationship between the Location column of the second table and the Destination column of the first table.

The problem comes when creating the second map in the same report as the relationship between Origin and Location must be inactive.

 

Is there any solution?

 

I appreciate any help!

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @MSB_gpc,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Let the relationship between Origin and Location be inactive (that will be in the form of dotted lines) ... you can easily plot the map between Destination and Location as the reltionship between them is active.

 

You can write a measure to make the particular relationship(Origin and Location) active by using USERRELATIONSHIP.

 

Origin and Location:= CALCULATE(VALUES(Tabel1[Origin]),USERRELATIONSHIP(Tabel1[Origin],Table2[Location]))...

 

This will make the inactive relationship active for this particular measure only...

Give this a try...

 

Anonymous
Not applicable

There's possibly a more elegant solution but a simple solution would be to add two calculated columns in the first table for Origin Longitude and Origin Latitude and then use those in your second map.

 

Calc would be something like

 

Calculate( Values( Tabe2[Longitude]), Filter(Table2, Table2[Location] = Table1[Origin]))

Calculate( Values( Tabe2[Latitude]), Filter(Table2, Table2[Location] = Table1[Origin]))

 

Or for consistency add 4 columns, for origin long lat and destination long lat.

 

Hope this helps,

 

Will

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