Power BI: exclude a value from the calculation

Excluding a value, it allows me to know what it will be the result without it so with this alternative result, I have a new perspective and from here, I can plan different actions to improve the performance. Alternatively, this article Power BI: exclude the filter selection from the calculation explains another way to do it. I have this table:

power bi

I will create a measure to calculate in percentage the valid tickets:

power bi

Now what will be the result without the specific group, for that, I will create a new measure:

CALCULATE(CALCULATE(COUNT('table1'[argument1]),'table1'[argument2]="yes")/COUNT('table1'[argument1]),
'table1'[argument3]<>SELECTEDVALUE('table1'[argument3]))

power bi

NOTE: if I have another table like that, replace SELECTEDVALUE('table1'[argument3]) by SELECTEDVALUE('table2'[argument3]) and importantly, it should have no relationship with the other table

power bi
power bi

I will create a visual table:

power bi

I can see that if I exclude “db”, the result is better and in the contrary, by excluding “unix”, the result is worst so based on that, I know that I need to take actions in the “db” group to improve my performance.

To have a better view, I will create a slicer, a clustered bar chart and a card but before, I will create another measure:

power bi
power bi

Since I don’t care about negative values because those are groups that don’t need any actions for improvement, I will remove them and I will active the “data labels”:

power bi power bi

The data showing in the chart, it is not an useful information because it is showing me the difference and I prefer to have the alternative result. In “data labels -> value”, click on the arrow to select “measure 2”:

power bi power bi power bi

The final result:

power bi

And if I select for instance “db” in the filter:

power bi

Interesting Topics