Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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!!
User | Count |
---|---|
91 | |
73 | |
68 | |
63 | |
55 |
User | Count |
---|---|
99 | |
88 | |
73 | |
60 | |
58 |