Forum Discussion
Create matrix with multiple column header levels
- Anonymous2 years ago
For the first problem, if you want to join two fields, you can try the following:
Create columns,
Column _length = [Length ] & " " & [Dimension unit]Column _width = [Width] & " " & [Dimension unit]Column _height = [Height] & " " & [Dimension unit]Or create measures,
_length = SELECTEDVALUE('Table 2'[Length ]) & " " & SELECTEDVALUE('Table 2'[Dimension unit])_width = SELECTEDVALUE('Table 2'[Width]) & " " & SELECTEDVALUE('Table 2'[Dimension unit])_height = SELECTEDVALUE('Table 2'[Height]) & " " & SELECTEDVALUE('Table 2'[Dimension unit])For the second question, as you said, you can create a matrix.
Note, however. table 1 is a table with a hierarchical structure. you may not be able to get a parallel structure using a matrix. It should look like this:
Next, you can put the Packaging unit field of table 2 into "Columns" and the measures you just created into "Values".
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For the first problem, if you want to join two fields, you can try the following:
Create columns,
Column _length = [Length ] & " " & [Dimension unit]
Column _width = [Width] & " " & [Dimension unit]
Column _height = [Height] & " " & [Dimension unit]
Or create measures,
_length = SELECTEDVALUE('Table 2'[Length ]) & " " & SELECTEDVALUE('Table 2'[Dimension unit])
_width = SELECTEDVALUE('Table 2'[Width]) & " " & SELECTEDVALUE('Table 2'[Dimension unit])
_height = SELECTEDVALUE('Table 2'[Height]) & " " & SELECTEDVALUE('Table 2'[Dimension unit])
For the second question, as you said, you can create a matrix.
Note, however. table 1 is a table with a hierarchical structure. you may not be able to get a parallel structure using a matrix. It should look like this:
Next, you can put the Packaging unit field of table 2 into "Columns" and the measures you just created into "Values".
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.