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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
abrahamfariaz
Frequent Visitor

How to relate multiple columns from one table to the same column in another table?

I want to relate the columns "ID_Delito Primero," "ID_Delito_Segundo," "ID_Delito_Tercero," "ID_Delito_Cuarto," and "ID_Delito_Quinto" from the "Sentenciado" table with the column "ID_Delito" from the "Delito" table. However, when I try to do this, Power BI only allows one active relationship and deactivates the others. Can you help me?

 

abrahamfariaz_0-1689538947807.png

abrahamfariaz_1-1689538974725.png

abrahamfariaz_2-1689539002686.png

abrahamfariaz_3-1689539013717.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @abrahamfariaz ,

You can refer the following links to get it:

Using USERELATIONSHIP function:

Inactive relationships

vyiruanmsft_2-1690365269581.png

Orders Shipped =
CALCULATE(
    COUNTROWS(Sales)
    ,USERELATIONSHIP('Date'[Date], Sales[ShipDate])
)

UseRelationship or Role-Playing Dimension; Dealing with Inactive Relationships in Power BI - RADACAD

vyiruanmsft_0-1690365231338.pngvyiruanmsft_1-1690365249993.png

Best Regards

View solution in original post

3 REPLIES 3
abrahamfariaz
Frequent Visitor

Hi @rubayatyasmin,

Thanks for your answer!

And how can I solve this? Because each "Sentenciado" (defendant) can commit diferent "Delito" (crimes), and more than one at a time.

Thanks in advance!

Anonymous
Not applicable

Hi @abrahamfariaz ,

You can refer the following links to get it:

Using USERELATIONSHIP function:

Inactive relationships

vyiruanmsft_2-1690365269581.png

Orders Shipped =
CALCULATE(
    COUNTROWS(Sales)
    ,USERELATIONSHIP('Date'[Date], Sales[ShipDate])
)

UseRelationship or Role-Playing Dimension; Dealing with Inactive Relationships in Power BI - RADACAD

vyiruanmsft_0-1690365231338.pngvyiruanmsft_1-1690365249993.png

Best Regards

rubayatyasmin
Super User
Super User

Hi, @abrahamfariaz 

 

Power BI allows only one active relationship with a table, other relations will be deactivated. But if you want to use any deactivated relations you have to use "related" or "relatedtable" DAX function. 

Here is a article with example for you. 

 

If this post helps, accept this answer as a solution

 

If my assistance helps you in any way, hit  👍

 

Thanks

 

 

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors