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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MatH
Frequent Visitor

Combining multiple columns whilst keeping ID/Date

Hi

 

I have a table that looks something like this:

MatH_0-1658226039182.png

 

I wanted to have one long list of all the subtypes, ideally keeping them with the correct date and ID's.

 

Using some other posts from here I tried unpivoting but it doesn't seem to have worked instead just giving me each subtype for every ID, where this wouldn't be the case.

 

1 ACCEPTED SOLUTION
Avantika-Thakur
Solution Supplier
Solution Supplier

Hi @MatH ,

You will have to follow the below steps :

1) Unpivot by selection only the columns - Reason Type 1, Reason Type 2, Reason Type 3, Reason Type 4. It will give you the below result

Image 3.JPG

2) Filter ou the Blank rows from the column -"Value" to get the below table

Image 4.JPG

Hope this helps.

Please accept the solution if this answers your query.

Thanks!

Avantika

View solution in original post

2 REPLIES 2
Avantika-Thakur
Solution Supplier
Solution Supplier

Hi @MatH ,

You will have to follow the below steps :

1) Unpivot by selection only the columns - Reason Type 1, Reason Type 2, Reason Type 3, Reason Type 4. It will give you the below result

Image 3.JPG

2) Filter ou the Blank rows from the column -"Value" to get the below table

Image 4.JPG

Hope this helps.

Please accept the solution if this answers your query.

Thanks!

Avantika

Thank you - this is effectively what I had tried but missed the simple last step of filtering out those blanks. Much appreciated

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.