I have several measures in Power BI.
[A],
[B],
[C],
[D],
[Total Expenses]
Where A + B + C + D = Total Expenses
. For this example, let's say the first 4 measures = 25 and the Total Expenses measure = 100
I want to create a Pie Chart that will show me the allocation of selected Expenses compared to the total. In other words, if I select A
, B
, and D
(in a filter for example). Then I want the Pie Chart to show me A
= 25%, B
= 25%, C
= 25%, Other
= 25%. If I remove A
, then Other
should become 50%.
I was thinking this might be possible with something like the SWITCH
function... but can't really imagine how to start. I will also accept alternative functions I haven't heard of that might lead to the desired solution...