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.

Reply
Whatever2
Helper I
Helper I

relationship unique value

hello everyone 

I'm trying to create a table that contains 2 related ID but when i try to link it to my other table i get this message :

try jointure.png 

does anyone know how to tell Power bi it's okay not to have unique values ?

 

thanks in advance 

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey, 

 

currently it' not possible to create a relationship between two tables where no table has unique values in the column that defines the relationship.

 

Maybe you can consider the following:

Create an extra table that just contains one column that holds unique values for "quote_no"

You can use the DAX function DISTINCT  to create this table.

This table than can be used to indirectly connect the other two tables.

 

Here is an article that describes how different "fact" tables can be related, don't get confused by the title of the article.

 

Hopefully this gives you an idea

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey, 

 

currently it' not possible to create a relationship between two tables where no table has unique values in the column that defines the relationship.

 

Maybe you can consider the following:

Create an extra table that just contains one column that holds unique values for "quote_no"

You can use the DAX function DISTINCT  to create this table.

This table than can be used to indirectly connect the other two tables.

 

Here is an article that describes how different "fact" tables can be related, don't get confused by the title of the article.

 

Hopefully this gives you an idea

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Oops it does actually work with my slicer , my bad 

i could still use the article thought

thanks for you response 

 

but your trick to create one table with only the quote_no doesn't to work for me , i manage to create the relation between the table but my slicer don't work .

 

aswell i think you forgot the link to the article you're talking about 

 

regards 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.