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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Relationship Issue between two tables in Power BI (Ambiguity issue)

Have the following tables in the Power BI data model:

  1. Transaction

rameshmadhubhas_1-1694009840566.png

2.Buyer

rameshmadhubhas_2-1694009877392.png

3. Manufacturer

rameshmadhubhas_3-1694009915670.png

The requirement:

when I select the relevant region want to show the corresponding total transaction amount on the card.

The slicer should include all the regions that came from both buyers and manufacturers.

Created the other table Regions, using the following query and added the relationships as follows:

Regions = CALCULATETABLE(UNION(SUMMARIZE(Buyer, Buyer[Regions]), SUMMARIZE(Manufacture, Manufacture[Regions]) ))

 

rameshmadhubhas_4-1694009971215.png

Problem:
Can't create an active relationship between Buyer and Region. Therefore, unable to filter the transaction amount correctly.

rameshmadhubhas_5-1694010101589.png

Therefore, I expected the correct way to solve this issue without changing the data model and relationships among the Buyer, manufacturer, and Transaction tables

 

Status: Investigating

Hi @rameshmadhubhas ,

There is no problem for "Can't create an active relationship between Buyer and Region."

Relationship in power bi is different than other databases, it has direction for relationships(e.g, single filter direction, filter effect from one side to other side; cross filter direction, each side can effect correspond column).

Power bi will try to analytics data model and summary records through relationships.

If your relationship map contains multiple active relationships to analytic summarize, it will confused which one should be the right one. So it only allow one activated major relationship link between linked tables for analytics and interactions.

 

Best regards,
Community Support Team_Binbin Yu

Comments
v-binbinyu-msft
Community Support
Status changed to: Investigating

Hi @rameshmadhubhas ,

There is no problem for "Can't create an active relationship between Buyer and Region."

Relationship in power bi is different than other databases, it has direction for relationships(e.g, single filter direction, filter effect from one side to other side; cross filter direction, each side can effect correspond column).

Power bi will try to analytics data model and summary records through relationships.

If your relationship map contains multiple active relationships to analytic summarize, it will confused which one should be the right one. So it only allow one activated major relationship link between linked tables for analytics and interactions.

 

Best regards,
Community Support Team_Binbin Yu