format rules applied to all row eventhough have different condition

Hi, so i want to colorize my text according to format
if number <= target, then green text

dio_als_1-1701963250160.png

if number > target, then red text

dio_als_0-1701963233846.png

i created 2 format rules for 1 column

dio_als_2-1701963276061.png

the problem is, i think my formula checks only the first row, and then applied  the format to all row below like in this screenshot

dio_als_3-1701963367573.png

i want each row to have its own condition to check itself with the target number, if below target then green, if more than target then red, did i miss something in the formula or the options ?

 

0 10 273
10 REPLIES 10

can you send a screenshot of the color you selected for both format rules?

@Landan_QREW , here's the green one

dio_als_0-1702006606318.png

and here is the red one

dio_als_1-1702006623942.png

 

So weird. What happens if you disable one of them?

sorry for the late reply @Landan_QREW ,

here i disabled the green rules, so the 3rd row must be red colored, the result is nothing is colored red / green

dio_als_0-1702380193274.png

still disabling green and enabled red, i the first row condition is met for red color, here's what happen, all the row is red colored where the 2nd row must be green / not affected to be red colored

dio_als_1-1702380264352.png

 

 

Have you tried to review these expressions in the test environment by selecting the 'Test' button while in the expression editor? If, so what do the results look like?

here's the test result

dio_als_0-1702396370448.png

 

they result to give correct state of my required condition, some Y and some N

Are they correct in their evaluation?

@dio_als I think you should check data type for [TS A] and [Target Price] column and try changing to decimal or number once. 

I have this same problem also. When doing a check to see if a number is greater than 0, it is using the result of the first row to format all other rows, even if their values are below zero. 

I also see similar test results where some are Y and some are N, yet the formatting rule applies globally. The same behavior happens whether a cell is formatted as Decimal, Number, or Percent.

JSO
Silver 2
Silver 2

Formatting rules are applied in a certain order.
Check the order by clicking on the icon.

JSO_0-1703673515258.png

JSO_1-1703673573917.png

 

 

 

 

Top Labels in this Space