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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.