The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
Here is an interesting problem. For the below data set - I need to transform this via the mapping shown below - the ultimate result I did manually for the first 2 rows as an example. The top row which is column headers currently is the "Project ID", the dates are dates that would need to repeat for each project ID, and the values are hours. How would I perform this data manipulation?
Solved! Go to Solution.
Use the Unpivot functionality of Power Query.
Specifically - highlight all the columns that you wish to unpivot and use that function
User | Count |
---|---|
160 | |
111 | |
96 | |
86 | |
75 |
User | Count |
---|---|
158 | |
136 | |
133 | |
81 | |
61 |