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

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

Reply
dpombal
Post Partisan
Post Partisan

Pivot groups of rows into columns group by

Hi all,

I am reading an XML file with this shape

 

0_XML_Source.PNG

Using Power Query to Expand Label table (??Is it possible to expand and create 3 columns...instead 3 rows)

 

  #"ExpandLable" = Table.ExpandTableColumn(Table0, "label", {"group", "text"}, {"label.group", "label.text"})

 

 

0_0_PowerQuery.png

 

And Data is converted in this format... after expanding

0_0_PowerQuery.png

Now I have data with this format ( in colours by group)

0_Before_Pivoting.PNG

 

 

However now I need to get converted data in this format, in each group of 3 registers by Instance ID.

 

ID, start,end, code ,pos_x and pos_y are always the same value inside a group.

 

1_After_Pivoting.PNG

 

 

I tried several pivoting options with no ...luck

Regards

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @dpombal,

 

Please refer to the snapshot below. 

1. Select the two columns "label.group" and "label.text".

2. Follow the steps in the snapshot.

Pivot_groups_of_rows_into_columns_group_by

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @dpombal,

 

Please refer to the snapshot below. 

1. Select the two columns "label.group" and "label.text".

2. Follow the steps in the snapshot.

Pivot_groups_of_rows_into_columns_group_by

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.