Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated column based on slicer

Hi everyone,

let's say I have a table Predictions with three columns: prediction (text), confidence (percentage) and is_correct (boolean).

I have a numeric slicer that filters rows with low confidence (greater than filter). I would like to create a calculated column is_above_filter that dynamically updates based on the slicer.

I tried creating a measure min_confidence that gets the minimum of the confidence based on the filter.

Then I created a new table Unfiltered=ALL(Predictions) to avoid filtering of rows.

On the new table I created the is_above_filter column with the condition Unfiltered[confidence]>=min_confidence.

The problem with this approach is that the column doesn't update when the measure updates.

Can you suggest a way of achieving this using Power BI?

Thank you very much

Super User
Super User

It is not possible to create a calculated column that is dynamically responsive to a slicer since the calculated column is only computed when loading or refreshing the data model. Measures, on the other hand, are computed dynamically in response to slicers and filters, so this is what you'll need to use.


I can't tell enough from your post to be able to suggest an appropriate measure.

Solution Sage
Solution Sage

Hi @Anonymous,


Can you use a measure to identify if the row is above the selected slicer value and then filter your table with that? 


If you could share some data, and an expected result with visualization, would be easier to craft a solution

I hope this helps,

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors