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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
easton16
Frequent Visitor

Dynamic Conditional Formatting of 3 table column values based on value of what if parameter value

I am trying to get 3 columns in a table (call it 'Table1' in this case) to dynamically conditional format based on 'what if value parameter seleceted' ('TemperatureFilter')

 

I can do this by creating a calculated column for each, but struggling with doing it as a measure so that it updates each time the parameter value is changed?

 

So with the sample below if a user selected 35 I want all of the values below 35 in each of the 3 column to be highlighted red.

easton16_1-1632052682141.png

 

Any pointers would be much appreciated.

 

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@easton16 

Create three measures for each column and assign them as Field Value under conditional formating

Hope you have the simple measures created for each column and a parameter

Example: 

CF 20M = IF( [Sum of 20M] < [Parameter Value] , "red" )
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I wonder what to do if we have 15 different columns(15 different measures) in a table visual that require conditional formatting with a same rule of values. Writing 15 measures for dynamic coloring is not wise. 


I don't think we can dymincally reference table visual column header and change feild used in measure. 

Hope I'm clear ! 

easton16
Frequent Visitor

Thanks @Fowmy  I was overcomplicated it by thinking that SUM would add the column up and not apply it row by row, which of course is what it would do!

Fowmy
Super User
Super User

@easton16 

Create three measures for each column and assign them as Field Value under conditional formating

Hope you have the simple measures created for each column and a parameter

Example: 

CF 20M = IF( [Sum of 20M] < [Parameter Value] , "red" )
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.