Forum Discussion
Conditional format on each row with different criteria
- 6 years ago
Hi yuhkao ,
Did you mean below part show red, then others show the same? You could use "||" , which represent "or" (you could follow my logic, switch(true(), condition1, color code, condition2 , color code, color code(this part is used for other conditions except above conditions))
c1> 3000
c2> 5000
c3......c10> 500
Measure 3 = var c1= CALCULATE(SUM(T2[amount]), FILTER('T2',T2[name]="c1")) var c2= CALCULATE(SUM(T2[amount]), FILTER('T2',T2[name]="c2")) var c3= CALCULATE(SUM(T2[amount]), FILTER('T2',T2[name]="c3")) return switch(TRUE(), c1>3000||c2>5000||c3>500||c4>500||c5>500 , "#ff0019", "#42dfed")Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thanks for helping and provide solution clearly.
appreciate!!
Hi Expert
Based on this question, I got deeper equation on data and would like to apply conditional format with color code on different threshold.
example:
Jan-2020 Feb-2020 Mar-2020 Apr-2020
commodity1 data data data data
commodity2 data data data data
commodity3 data data data data
Data threhold1 = initial goal + 1 *2.57* SQRT(initial goal*(1- initial goal)/base)
Data threhold2 = initial goal + 2 *2.57* SQRT(initial goal*(1- initial goal)/base)
Data threhold3 = initial goal + 3 *2.57* SQRT(initial goal*(1- initial goal)/base)
*initial goal is different upon commodity
*base is differnt upon month usage or commodity
With data threhold1 to 3, would like to apply different color code, like green, yellow, red
thanks