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
Stu_22
New Member

Change layout of data from data source

Hello, 

I'm fairly new to Power BI and struggling with an Excel data source that isn't laid out in the format I require. I'm using Power BI Desktop and have had a play around with the Edit Queries / Transform data function to no avail. Hoping there is a simple method to manipulate the data!

 

Data is currently set out as follows...

  • Column headers = Inspection; w/c 03/10/22; w/c 10/10/22; w/c 17/10/22; w/c 24/10/22;
  • Row 1 = Inspection 1; Completed; Incomplete; Completed; Completed;
  • Row 2 = Inspection 2; Incomplete; Completed; Completed; Incomplete;
  • Row 3 = Inspection 3; Completed; Completed; Incomplete; Incomplete;
  • Row 4 = Inspection 4; Completed; Completed; Incomplete; Incomplete;

 

I would like the data to be set out in a format as follows..

  • Column headers = Inspection; w/c; Complete or Incomplete?
  • Row 1 = Inspection 1; w/c 03/01/22; Completed
  • Row 2 = Inspection 1; w/c 10/01/22; Incomplete
  • Row 3 = Inspection 1; w/c 17/01/22; Completed
  • Row 4 = Inspection 1; w/c 24/01/22; Completed
  • Row 5= Inspection 2; w/c 03/01/22; Incomplete
  • Row 6 = Inspection 2; w/c 10/01/22; Completed

... and so forth.

 

Any help would be much appreciated!

Thanks,

 

Stuart

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Stu_22 ,

 

In Power Query, select your [Inspection] column, then go to Transform tab > Unpivot Columns (dropdown) > Unpivot Other Columns.

 

This should do what you want.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
Stu_22
New Member

Thanks very much Pete - that's worked a treat!

 

Regards,

 

Stuart

BA_Pete
Super User
Super User

Hi @Stu_22 ,

 

In Power Query, select your [Inspection] column, then go to Transform tab > Unpivot Columns (dropdown) > Unpivot Other Columns.

 

This should do what you want.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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