Power BI 将列透视为行

Power BI Pivot Colums to Rows

Power BI 新手并尝试将子 header 转为行。目前我有这个...

我需要 "actual" 和 "definite" 列显示为这样的行...

我试过使用矩阵可视化来调整列、行和值,但到目前为止没有成功。这就是我所拥有的生成上面第一个矩阵的...

这是我找到的最接近答案的答案

https://community.powerbi.com/t5/Desktop/Value-Headers/m-p/65124

我会在编辑查询中重塑数据 window。我会 select actualdefinite 列,然后选择 Unpivot Columns。

返回 Matrix,然后您可以使用生成的 Attribute 字段(或您重命名的任何内容)作为 Hotels[=19 下的嵌套行=] 字段,生成的 Value 字段作为 Values.