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 , greetings!
I have this table:
I wanna create a new table (DAX code preferably) concatenating column headers with its respective items, like this:
If you can help me on this thing I'd be thankful!!!
Here's the sample table:
Click to download (Mirror: MediaFire)
Solved! Go to Solution.
Hi , @vyny17 ;
You could try it by dax.
New = UNION(SELECTCOLUMNS('Table',"Item",[1],"Index","1"),
SELECTCOLUMNS('Table',"Item",[2],"Index","2"),
SELECTCOLUMNS('Table',"Item",[3],"Index","3"),
SELECTCOLUMNS('Table',"Item",[4],"Index","4"),
SELECTCOLUMNS('Table',"Item",[5],"Index","5"),
SELECTCOLUMNS('Table',"Item",[6],"Index","6"),
SELECTCOLUMNS('Table',"Item",[A],"Index","A"))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi , @vyny17 ;
You could try it by dax.
New = UNION(SELECTCOLUMNS('Table',"Item",[1],"Index","1"),
SELECTCOLUMNS('Table',"Item",[2],"Index","2"),
SELECTCOLUMNS('Table',"Item",[3],"Index","3"),
SELECTCOLUMNS('Table',"Item",[4],"Index","4"),
SELECTCOLUMNS('Table',"Item",[5],"Index","5"),
SELECTCOLUMNS('Table',"Item",[6],"Index","6"),
SELECTCOLUMNS('Table',"Item",[A],"Index","A"))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @vyny17
You can easily find the result in Power Query by using Unpivote Columns. Select All columns and then click on the Unpivote Columns in Transform tab.
Download the sample file attached.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
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 |
---|---|
103 | |
101 | |
87 | |
73 | |
67 |
User | Count |
---|---|
116 | |
109 | |
94 | |
79 | |
72 |