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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

How to change values of calculated column dynamically, based on filters applied

I have a simple report with a simple table;

Test.jpg

The standard dev is a measure.

I have created a calc column that basically checks each of the durations, against the Standard Dev value. (if it's lower than SD then display "less", if higher then display "more")

 

The problem is, when I start applying filters, the SD measure changes as expected, however, the calculated column remains static:

 

Test2.jpg

 

How can I achieve the goal of having each calc_column behaving dynamically based on filters being applied?

 

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You may use measure if you need a series of dynamic values after applying filters. 

Measure =
VAR SD1 =
    CALCULATE ( STDEV.P ( 'Table1'[Duration (s)] ), ALLSELECTED ( 'Table1' ) )
VAR d =
    SELECTEDVALUE ( 'Table1'[Duration (s)] )
RETURN
    SWITCH ( TRUE (), d < SD1, "less", d > SD1, "more" )

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

thanks for this answer, although in a table view this does appear to be giving correct results, however when plotting the values on a line or bar chart, it refuses to take this measure. So, for example, I wanted to plot the number of more's/lesses against the country. Any ideas?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.