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
jrmax
Frequent Visitor

Data table row to column with multiple columns

Hi guys, I have a data table in the following format. I need your help to group by the fields: 1, 3, 4, and 5,

and finally, pivot the -fieldName- and -valueResult- columns. 

I have tried pivot and transpose with no luck. Thanks!

 

Raw data:

fig1.PNG

 The final result desired:

fig2.PNG

 This is a 30 million row dataset 😩

Thanks!

 

 

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

NewStep=Table.Pivot(PreviousStepName,List.Distinct(PreviousStepName[fieldName]),"fieldName","valueResult",each _{0}?)

View solution in original post

2 REPLIES 2
jrmax
Frequent Visitor

Awesome! It worked. Thanks!

wdx223_Daniel
Super User
Super User

NewStep=Table.Pivot(PreviousStepName,List.Distinct(PreviousStepName[fieldName]),"fieldName","valueResult",each _{0}?)

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.

Top Solution Authors