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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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