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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
cisyncllc
Frequent Visitor

Cross tab table

I need help changing a table from multiple rows to a grouped by and then into a single row see example.    

 

Cross tab table.JPG

 

T

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @cisyncllc 

 

Pivot column feature exactly does what you want. Pivot columns - Power Query | Microsoft Docs

 

Select the "groupdesc" column and click on Pivot Column. In the pop-up "Pivot Column" window, select "Itemdesc" for Values column and expand "Advanced options" and select "Don't Aggregate" for Aggregate Value Function. 

vjingzhang_0-1661825205336.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
wdx223_Daniel
Community Champion
Community Champion

=Table.Combine(Table.Group(PreviousStepName,"ID",{"n",each #table({"ID"}&[groupdesc],{{[ID]{0}}&[itemdesc]})})[n])

v-jingzhang
Community Support
Community Support

Hi @cisyncllc 

 

Pivot column feature exactly does what you want. Pivot columns - Power Query | Microsoft Docs

 

Select the "groupdesc" column and click on Pivot Column. In the pop-up "Pivot Column" window, select "Itemdesc" for Values column and expand "Advanced options" and select "Don't Aggregate" for Aggregate Value Function. 

vjingzhang_0-1661825205336.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

cisyncllc
Frequent Visitor

I need to accomplish this in Power Query so I can use the table in other queries and merges

 

Thank you for any assistance.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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