Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi Users,
I have facing issue in Unpivoting the measure to column, The below output i wanted achive using DAX.
i have measure field with values and wanted to show this in column.
A | B | C |
10 | 20 | 3 |
output | ||
A | 10 | |
B | 20 | |
C | 30 | |
Thanks,
Raj
Solved! Go to Solution.
Hi @Anonymous
You may use below dax to create a table.
Table = UNION ( SELECTCOLUMNS ( Table1, "Output", "A", "Value", [A_Measure] ), SELECTCOLUMNS ( Table1, "Output", "B", "Value", [B_Measure] ), SELECTCOLUMNS ( Table1, "Output", "C", "Value", [C_Measure] ) )
Regards,
Hi @Anonymous
You may use below dax to create a table.
Table = UNION ( SELECTCOLUMNS ( Table1, "Output", "A", "Value", [A_Measure] ), SELECTCOLUMNS ( Table1, "Output", "B", "Value", [B_Measure] ), SELECTCOLUMNS ( Table1, "Output", "C", "Value", [C_Measure] ) )
Regards,
@Anonymous -
In DAX, you can use UNION, as done here.
In Power Query, there is an Unpivot function, if that is an option.
Hope this helps,
Nathan
User | Count |
---|---|
80 | |
76 | |
70 | |
69 | |
54 |
User | Count |
---|---|
104 | |
99 | |
92 | |
78 | |
69 |