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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
davidmeblack
Regular Visitor

Unstructured data transform question

Hi guys,

A piece of software I use exports its .csv files in a very... bad way. See below

 

NameDescriptionAValueADescriptionBValueBDescriptionCValueC
Car1Door2Window4Trunk6
Car2Door5Window8Trunk1

 

I want to transform it from that to this:

 

NameDescriptionValue
Car1Door2
Car1Window4
Car1Trunk6
Car2Door5
Car2Window8
Car2Trunk1

 

So basically grouping all descriptions and values. I've tried every combination of pivot/unpivoting/transpose but I can't get the correct result! There's currently ~180 columns of that description/value format it spits out so if anyone has any tips it would be greatly appreciated!

 

Thanks,
Dave

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

Ashish_Mathur
Super User
Super User

Hi,

 

You may refer to my Blog article - Restructure the layout of datasets.  Refer to Case 1.

 

Hope this heps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
davidmeblack
Regular Visitor

Perfect thanks so much guys, really appreciate it!

Ashish_Mathur
Super User
Super User

Hi,

 

You may refer to my Blog article - Restructure the layout of datasets.  Refer to Case 1.

 

Hope this heps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Zubair_Muhammad
Community Champion
Community Champion

Hi @davidmeblack

 

See the attached file here. Hope it will help... See the Merged Table in Query Editor

@davidmeblack

 

Here are the steps

 

1) Unpivot all columns other than Car

2) Filter Rows that CONTAIN word "Description"

3) Add an Index Column

 

 

Now Create a Duplicate Query

1) Filter rows that CONTAIN word "Value"....

 

Now we can merge these 2 Queries

 

 

 

 

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.