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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
gancw1
Resolver II
Resolver II

Display multiple fields that reference 1 master table

I have 2 tables

Customer Table

CompanySales MgrAcc MgrSupport Mgr
Comp A144
Comp B233
Comp C143

 

Staff Table

IDName
1James H
2Tan KK
3June J
4Dave O

 

How can I display the cutomer table showing the person's name instead of the ID?
Is there a way to do this in Power BI without merging the tables or do I have to
- merge the customer table with the staff table three times in Power Query, or
- make 3 copies of the staff table and link them to the customer table ?

Thanks

1 ACCEPTED SOLUTION

Thanks. Unpivot does the trick ! 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @gancw1 ,

Did Irwan 's suggestion help with your scenario? if that is the case, you can consider Kudo or accept his suggestions to help others who faced similar requirements.

If that also doesn't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Irwan
Super User
Super User

hello @gancw1 

 

i think it is possible with a little tweak.

1. unpivot your 'Customer' Table.

Irwan_2-1737427148131.png

2. create a relationship many-to-many between 'Customer' table and 'Staff' table.

Irwan_1-1737427130335.png

3. plot in matrix visual with Values taken from 'Name' column in 'Staff' table

Irwan_0-1737427075525.png

 

Hope this will help.

Thank you.

Thanks. Unpivot does the trick ! 

rubayatyasmin
Super User
Super User

Hi, @gancw1 

 

I'm not sure I understand it correctly. But what I am guessing is that mngrAcc and MngrSupport are the IDs that match the IDs in the Staff table, right?

If yes, and you do not want to merge, then you should create a relationship using the three key columns in the customer and Staff tables. One will be active, and the other two will be inactive. 

Then, in DAX you have use UseRelationship DAX func to utilize the relationship and get the result. 


refer: USERELATIONSHIP with TEXT - Microsoft Fabric Community


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

Proud to be a Super User!


for this method do I use UseRelationship to create new computed columns ?

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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