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 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
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 |
---|---|
108 | |
106 | |
87 | |
77 | |
69 |
User | Count |
---|---|
123 | |
112 | |
95 | |
83 | |
73 |