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
Anonymous
Not applicable

Link two columns from one table to same column from another table

Hi everyone, i know that powerBi doesn't allow to link more than one column from the same table. So, i would like to know if there is another way to do that. In fact, i have a table containing all information (status, start, end etc..) about my applications and another which contains the link (or mapping) between them. I would like to be able to display this mapping in a table and when i hover on an application i get the status. (Below you can see my tables and the columns i want to link)mapping.PNG

5 REPLIES 5
TovaMiller
New Member

Hi, did you find a solution for this problem? I have the same issue. 

v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

Do you want "AND" or "OR" when create relationship between two tables?

Power bi doesn't allow to link more than one column from the same table.

If you want "AND", you could create a third column to combine Destination and Source column to one column, then create relationship by this column.

If you want "OR", You may try to unpivot the Destination and Source column, then create a relationship with new column "Value"

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-lili6-msft , thank you for your answer but i don't understand when you say  "try to unpivot the Destination and Source column" do you have an example ? 

hi @Anonymous 

you could refer to this blog:

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AllisonKennedy
Super User
Super User

I am hoping this will be a 1 to many when you get the link right?

In Power Query, Merge the Destination and Source column into 1 column so that the format is the same as the SourceName column in the LastPipelineRun table. Then you can create a relationship between Merged column and SourceName column.

This assumes you're not using Direct Query?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.