Skip to main content

Hello, 

Brand new to Acumatica, I am creating a GI for PO vs Avg cost comparison and would like for the field that contains the PO cost to highlight red if its greater than the AVG cost field. I have the entire GI built but am having some trouble getting the format of the formula for this to happen. I was hoping maybe some one here could help me with this ?

 

Hi @joshmcgrew ,

To highlight on cell you would use a formula like this in the Style column of the result field that should be highlighted.  Or to highlight the entire row, you would enter the formula in the Row Style field on the Results Grid tab.

=IIf( IIf( (POLine.UnitCost] < ;INItemCost.AvgCost.., 'red40', 'default')

 

​​​​​Hope this helps!

Laura 


@lauraj46 Thank you that helped get me on the right path for sure and I appreciate it. It was still giving me a bit of a problem but we were able to get it to work with the following formula that I thought I would share incase others ran into this:


=Iif(fPOLINE.UnitCost] > ;INITEMCOST.AvgCost],'red20','default')

 

 


Thank you for sharing your solution with the community @joshmcgrew!


Reply