Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
PowerBI Question.
How to prevent the Budget / Actual dimension from adding up in PowerBI Matrix?
Eg, I have a Budget / Actual dimension, a Time dimension and an Operating Costs dimension
When I create a matrix in PowerBI, I will see this table.
If I drill up the matrix, it will add up the Budget and the Actual, which does not make sense.
How do I prevent it from adding up?
Or if it is possible to disable the matrix from drill up / collapsing?
Or is there another way of presenting the data?
Thanks.
Solved! Go to Solution.
I would unpivot your last three columns like so:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bYwxC8IwEEb/itxcDpPGXB11d+pYMoR4lYBkkMvQf2+9QrXF5XsH93jDALeYi3CJJTE0cK33B8t8WPROQccFDkKzty9Janzq37SKE81o0Vi1e071lWX6DSPZze68NYn0KaI/63aLl4UPvcRx3BRtt65B90f9Ri3pelWNhxDe", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"Operating Cost" = _t, #"Budget/Actual" = _t, #"Apr-17" = _t, #"May-17" = _t, #"Jun-17" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Operating Cost", type text}, {"Budget/Actual", type text}, {"Apr-17", type number}, {"May-17", type number}, {"Jun-17", type number}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Operating Cost", "Budget/Actual"}, "Attribute", "Value"),
#"Renamed Columns" = Table.RenameColumns(#"Unpivoted Columns",{{"Attribute", "Month"}})
in
#"Renamed Columns"Then you could create a nice clustered column chart with Operating Cost and Month in your Axis, Budget/Actual in your Legend and Value in your Value.
I would unpivot your last three columns like so:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bYwxC8IwEEb/itxcDpPGXB11d+pYMoR4lYBkkMvQf2+9QrXF5XsH93jDALeYi3CJJTE0cK33B8t8WPROQccFDkKzty9Janzq37SKE81o0Vi1e071lWX6DSPZze68NYn0KaI/63aLl4UPvcRx3BRtt65B90f9Ri3pelWNhxDe", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"Operating Cost" = _t, #"Budget/Actual" = _t, #"Apr-17" = _t, #"May-17" = _t, #"Jun-17" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Operating Cost", type text}, {"Budget/Actual", type text}, {"Apr-17", type number}, {"May-17", type number}, {"Jun-17", type number}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Operating Cost", "Budget/Actual"}, "Attribute", "Value"),
#"Renamed Columns" = Table.RenameColumns(#"Unpivoted Columns",{{"Attribute", "Month"}})
in
#"Renamed Columns"Then you could create a nice clustered column chart with Operating Cost and Month in your Axis, Budget/Actual in your Legend and Value in your Value.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |