Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
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

2 REPLIES 2
AlexisOlson
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.

richbenmintz
Resident Rockstar
Resident Rockstar

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,
Richard

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

Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.