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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PowerBITestingG
Resolver I
Resolver I

Revert Unpivot

I have the following data:

 

Name  Attribute   Value

ID900

  First Name  Kevin
ID900  Last Name  Jorbs
ID900  City  New York

 

And I have to transform it to this:

 

Name    First Name    Last Name    City
ID900    Kevin    Jorbs  New York

 

Any ideas?

2 REPLIES 2
john_mulqueen
New Member

If you want to un-un-pivot it means you want to pivot. 

 

In the Power Query Editor go to Transform -- > Pivot Column.

 

Select Advanced Options --> Don't Aggregate

john_mulqueen_0-1682073332134.png

 

 

= Table.Pivot(Source, List.Distinct(Source[#"  Attribute"]), "  Attribute", "   Value")

Both columns are text but apparently its trying to convert something to  number

 

"DataFormat.Error: We couldn't convert to Number."

Any ideas?

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors