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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
anwarbi
Helper III
Helper III

Creating Multiple relationship between two duplicate tables

Hi,

 

I have two tables (one is duplicate) both have got same data. I have created a many to many relationship between two fields named as 'rating'. I want to create few more relationships between the two tables for 'Country' and 'region' field, but it seems since there is already an active relationship between 'rating' fields, it is not allowing me to create any further relationship.

 

I there a way I can create multiple relationship between idenitical fields of the two table. 

 

Thanks.

6 REPLIES 6
DominoPBI
Frequent Visitor

Hi @anwarbi 

I reccommend you this article about USERELATIONSHIP. I think it will be helpful 

Power BI: DAX Function USERELATIONSHIP Explained (pragmaticworks.com)

HughLa
Resolver IV
Resolver IV

Hi @anwarbi 

 

You can only have one active relationship between two tables, the rest will be inactive. To activate the relationship you have to use the USERELATIONSHIP function.

 

Regards

Hugh

Hi,

 

I tried using USERELATIONSHIP function in a measure (as below) but it is not giving results.

 

Distinct count of clients = CALCULATE(DISTINCTCOUNT('2021 (Peers-EDF)'[Client]),USERELATIONSHIP('2021 (2)'[Country],'2021 (Peers-EDF)'[Country]),USERELATIONSHIP('2021 (2)'[Regions],'2021 (Peers-EDF)'[Regions]))
 
Is this measure incorrect

What you are trying to achieve does not make complete sense. 

 

Why are you connecting the two duplicate tables to each other? Would you be able to explain what you are trying to achieve, maybe we can find a better way to do it.

 

Hugh

Hi,

 

I want to compare the scores of a client lets say 'ABC" with other clients called as peer group which is dynamic based on slicer selection (so there will be different clients grouped together) and I want to represent them in a single chart, hence I have created duplicate table inorder to fit both the client and peer group in a single chart.

 

Thanks

Are you able to put here some screenshots to let us understand what is your idea? 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.