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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
TimothyJames
Frequent Visitor

Generate Lookup Table on Multiple columns All of which are in pairs of {ID, Title}

I have data that looks like below all in 1 table.

 

Horizontally, the values are not distinct.

Vertically, the values are not distinct.

 

1 {Title AND ID} can be in multiple rows,

1 {Title AND ID} can be in multiple columns,

 

 

AssigneeTitle1AssigneeID1AssigneeTitle2AssigneeID2AssigneeTitle3AssigneeID3
Nick M244Nick M244Nick M244
nullnullnullnullnullnull
nullnullnullnullnullnull
Nick M244Ken D344Mason W211
nullnullnullnullnullnull
nullnullnullnullnullnull
Ken D344nullnullKen D344
nullnullnullnullnullnull
Mason W211nullnullGary B225

 

How can I produce something like the following

 

Nick M244
Ken D344
Mason W211
Gary B225

 

Thank you

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @TimothyJames,

You can enter to query editor and do 'unpivot column' on these fields, then you can use attribute and value fields to accurately control which value is returned.

Unpivot columns - Power Query | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @TimothyJames,

You can enter to query editor and do 'unpivot column' on these fields, then you can use attribute and value fields to accurately control which value is returned.

Unpivot columns - Power Query | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@TimothyJames , refer if the attached file can help

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  thanks for the reply, How do I do it if all the columns are in their own separate columns, but 1 table.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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