Skip to main content
Solved

GI Formula Issue IIF Collor. =IIf((DateDiff('d',[SOOrder.RequestDate],CDate([SOOrderShipment.ShipDate]),'>0,blue','red60')))

  • December 26, 2023
  • 5 replies
  • 103 views

Forum|alt.badge.img

Good day,

I am trying to use the below formula to change the color based on the results; it was validated.  However, the error I can get it the array is outside warning bubble.
=IIf((DateDiff('d',[SOOrder.RequestDate],CDate([SOOrderShipment.ShipDate]),'>0,blue','red60')))

I made some changes but the same result or it is didn’t work to change the color based on >0 or <0.

Your assistance would be greatly appreciated.

Evan

Best answer by darylbowman

You put the formula in the ‘Data Field’ column instead of the ‘Style’ column, hence it showing the text ‘red60’ instead of the color.

View original
Did this topic help you find an answer to your question?

5 replies

darylbowman
Captain II
Forum|alt.badge.img+13

Try this:

=IIf(DateDiff('d',[SOOrder.RequestDate],[SOOrderShipment.ShipDate])>0,'blue60','red60')

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 93 replies
  • December 26, 2023

Hi @darylbowman

I appreciate the support below is the results.  It works to identify the color but it is doesn't how the number.

Any suggestions. Maybe I need ‘ ‘ around around >0

 


darylbowman
Captain II
Forum|alt.badge.img+13
  • 1712 replies
  • Answer
  • December 26, 2023

You put the formula in the ‘Data Field’ column instead of the ‘Style’ column, hence it showing the text ‘red60’ instead of the color.


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Hello @EvanG use this as a guide. 

To have the entire row change colors based on a formula use Row Style field (1).

To have a single cell change colors based on a formula use the Style (2).

The value displayed in a column/cell will always be calculated from the data field. (3)

 

You can place @darylbowman ‘s suggestion in either the Row Style field or the Style field depending on your requirements. 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 93 replies
  • December 26, 2023

@Robert Sternberg 

@darylbowman 

Thank you.  Both suggestions worked perfectly.  I appreciate your support.

Evan


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings