cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dr0idy Frequent Visitor
Frequent Visitor

Transform 999+ column data into something sensible

I have an excel file (not created by me) that contains 999+ Columns in the repeating format as below.

AreaIndicator1 Year1Indicator1 Year2Indicator1 Year3Indicator2 Year1Indicator2Year2Indicator2 Year3

 

I want the data in the format

AreaIndicatorYearValue

 

I know how to do this manually with concatenations, delimiting and then splitting the columns. Is there a more automated way of me transforming this within Query Editor?

 

If anyone wants to see the actual data it is in the spreadsheet at http://www.improvementservice.org.uk/documents/benchmarking/1718rawdata.xlsx

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Transform 999+ column data into something sensible

hi @Dr0idy 

You could try this way as below:

Step1:

Selected all the columns except Area column, then unpivot these columns.

Step2:

Then split Attribute column to Indicator column and Year column.

Step3:

Now rename the column.

Result:

5.JPG6.JPG

 

and here is sample pbix file, please try it.

 

 

Community Support Team _ Lin
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
Community Support Team
Community Support Team

Re: Transform 999+ column data into something sensible

hi @Dr0idy 

You could try this way as below:

Step1:

Selected all the columns except Area column, then unpivot these columns.

Step2:

Then split Attribute column to Indicator column and Year column.

Step3:

Now rename the column.

Result:

5.JPG6.JPG

 

and here is sample pbix file, please try it.

 

 

Community Support Team _ Lin
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

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (2,025)