Forum Discussion
Transpose using DAX and virtual table
- 5 years ago
Hi, some1else
The easiest way to get the results you want is to transpose them in the Query Editor.
Sample data:
Step 1: Use Headers as First Row
Step 2: Transpose
Result:
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey some1else ,
a close approach is the following table:
UNION (
SELECTCOLUMNS ( myTable, "ID", "A", "Value", [A] ),
SELECTCOLUMNS ( myTable, "ID", "B", "Value", [B] ),
SELECTCOLUMNS ( myTable, "ID", "C", "Value", [C] ),
SELECTCOLUMNS ( myTable, "ID", "D", "Value", [D] )
)
Check if that would work, that's more or less a unpivot of the table.
- some1else5 years agoHelper II
Feeling very dumb right now...
Tried that but no sucess as it gives an error expecting one value only (tried with a measure, because I don't want to physically create columns or new tables).
Below image with the error and image with table OTs with the columns currently on it.
The idea is to have the WONUM and ZMC in row and the values in columns