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.
Hi,
I have a table like this:
Feature1 | Feature2 | Key1 | Key2 | Val1 | Val2 |
Test1-1 | Test2-1 | Key1-1 | Key2-1 | Val1-1 | Val2-1 |
Test1-2 | Test2-2 | Key1-2 | Key2-2 | Val1-2 | Val2-2 |
Test1-3 | Test2-3 | Key1-3 | Key2-3 | Val1-3 | Val2-3 |
I want to transform it to this format in the power query:
Feature1 | Feature2 | Keys | Key Values | Vals | Val Values |
Test1-1 | Test2-1 | Key1 | Key1-1 | Val1 | Val1-1 |
Test1-2 | Test2-2 | Key1 | Key1-2 | Val1 | Val1-2 |
Test1-3 | Test2-3 | Key1 | Key1-3 | Val1 | Val1-3 |
Test1-1 | Test2-1 | Key2 | Key2-1 | Val2 | Val2-1 |
Test1-2 | Test2-2 | Key2 | Key2-2 | Val2 | Val2-2 |
Test1-3 | Test2-3 | Key2 | Key2-3 | Val2 | Val2-3 |
The focus here is mainly on key and value columns.
I have worked with unpivotting, but was not successful to get exactly this format.
The reason I want exactly this format is that I can easily show two columns of Key Values and Val Values in a table visual.
Looking forward to your help.
Solved! Go to Solution.
@Anonymous , This seems like unpivot twice case. See if this can help
https://kohera.be/power-bi/how-to-unpivot-twice/
@Anonymous , This seems like unpivot twice case. See if this can help
https://kohera.be/power-bi/how-to-unpivot-twice/
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 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |