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.
The bigger question is why you have the first table in the model. The first table does not look like a structure that is well suited to PBI. Does the table really have just 2 rows? Consider transposing the first table and loading it once in the transposed state. You can do this in power query
1. Use headers as first row
2. Transpose
3. Rename the first column "header"
3. Unpivot the 3 column table into 2 columns
this should give you 3 new columns (header, attribute, value).
from there you can use a matrix with header on rows, attribute on column, and value in the values section.