Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I have a single table with roughly 50 columns. I need to Unpivot 26 of these columns, but doing so in the original table is going to cause problems for some measures and calculated columns I already have set up.
So the question is, can I possibly "extract" those 26 columns (plus a primary key column) to a separate table that I can then unpivot? I have seen some potential solutions using M, but nothing that fully addressed my situation.
Hoping I can do this programatically and not build out an entirely new database table to pull into PowerBI. Happy to answer any questions or provide additional context as needed. Thanks as always!
Solved! Go to Solution.
Right click on original table - Reference - This references to the last step in original table and produce a copy. Then in this, you can do your unpivoting in this new table.
Right click on original table - Reference - This references to the last step in original table and produce a copy. Then in this, you can do your unpivoting in this new table.
Nice...once I make the copy, can I remove the columns I don't need in the new table before using Unpivot?
Whatever you do in new table will not impact the original table. Whatever is the last step result in original table, that is the starting point for new table.
The relationship is from old to new table not vice versa.
So, remove / add or do whatever you want to do will have no bearing on the original table.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |