Forum Discussion
kwpbi
Helper II
7 years agoConditional formatting with rules... base maximum off of table value?
Again, I am trying to do something that should be simple, but I cannot figure out how to do it in Power BI. I am using a gauge-style visual with conditional formatting for the data color. I want to s...
v-frfei-msft
Community Support
7 years agoHi kwpbi ,
We can set condiftional formatting by filed value based on measure like this.
Measure 2 = var a = SUM('FACT TABLE'[value])
return
IF(a>='target table'[Target var],"#01B8AA","#FD625E")
Before that, we can create a target measure as below.
Target var = var maxd = CALCULATE(MAX('target table'[date]),ALLSELECTED('target table'))
return
CALCULATE(MAX('target table'[target]),FILTER('target table','target table'[date] = maxd))
Then we can get the result as below by table visual.