Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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 |
---|---|
97 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |