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

Transform values to be table Key

Hi Community!!
I have the following table that shows for each ID a number of serials (every ID has between 1 and 5 serials):

1.png

I need to run a transformation so I get a table with one column that contains all serials (from the 5 serials columns, but all in one column) and for each serial the ID. Each serial will be unique, but the same ID can appear for more than one serials (for cases where currently the ID has more than 1 serial, as the ID 12863 in the example).

Any ideas of how to do this?
Thanks!!!

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can select all your Serial columns and goto Transform Ribbon and Click Unpivot

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

View solution in original post

3 REPLIES 3
Nathaniel_C
Super User
Super User

Hi @Anonymous ,
Not sure if understand exactly what you are asking, but try this from the bottom picture. Original table, then convert data type to text if not already done, then create custom column using &, then delete all but the first and the last.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniels.PNG

 

s3.PNG

 

s2.PNG

 

s1.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can select all your Serial columns and goto Transform Ribbon and Click Unpivot

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

Perfect! Thanks!

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.

Top Solution Authors