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

several relations between two tables

hello

 

i have two tables, with same Attributs and name of Reference.

The first table is my measure table, and the second one is my specification table.

I want to filter my specification table thanks to my measure table, with two filter/segment : the Attributs and the Reference.

vadim_g_1-1638552853271.png

But it is forbidden :

vadim_g_2-1638552951274.png

 

How can i fix it ?

 

thanks a lot

 

 

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

A relationship can only be created between single columns, so if you need a relationship on multiple columns, then you need a combined column or index to match on. This isn't often a great idea though.

 

A better solution is to create a proper star schema with dimension table(s) for these columns.

View solution in original post

3 REPLIES 3
AlexisOlson
Super User
Super User

A relationship can only be created between single columns, so if you need a relationship on multiple columns, then you need a combined column or index to match on. This isn't often a great idea though.

 

A better solution is to create a proper star schema with dimension table(s) for these columns.

thank you !!

i find that create a new column with a combination of two name in each table, was for me the easier and faster solution. it works well, because i need so a single relationship on this "index false name filter".

i will examine the star schema when i will have time 😉

 

mahoneypat
Employee
Employee

Only one relationship can be active at a time, so you need to use USERELATIONSHIP to activate the inactive/dotted one in your measure(s).

Using USERELATIONSHIP in DAX - SQLBI

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.

Top Solution Authors
Top Kudoed Authors