Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have an excel file (not created by me) that contains 999+ Columns in the repeating format as below.
Area | Indicator1 Year1 | Indicator1 Year2 | Indicator1 Year3 | Indicator2 Year1 | Indicator2Year2 | Indicator2 Year3 |
I want the data in the format
Area | Indicator | Year | Value |
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
Solved! Go to Solution.
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:
and here is sample pbix file, please try it.
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:
and here is sample pbix file, please try it.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |