Skip to main content
Answer

Multiple IIfs

  • March 8, 2023
  • 2 replies
  • 462 views

Forum|alt.badge.img+1

Hello,

Can somebody pls help me w/ this,

Above is my formula giving me the following results:

  1. [TranDesc] + Serial Nbr (if SerialNbr is not null)
  2. [SerialNbr] (if previous TranDesc is equals to TranDesc)
  3. [TranDesc] (if LineType is Non-Stock)

However, I have a problem, the highlighted part still comes out tho item has no SerialNbr. I can’t see where I’m wrong or how to add that.

Thank you in advance!

Best answer by kdavis45

Have you tried adding [POReceiptLineSplit.LotSerialNbr]<>’’ in the first Iif? That’s usually my go-to when NULL isn’t giving me the results I’d expect.

2 replies

kdavis45
Semi-Pro I
Forum|alt.badge.img+1
  • Semi-Pro I
  • Answer
  • March 8, 2023

Have you tried adding [POReceiptLineSplit.LotSerialNbr]<>’’ in the first Iif? That’s usually my go-to when NULL isn’t giving me the results I’d expect.


Forum|alt.badge.img+1
  • Author
  • Semi-Pro II
  • March 8, 2023

Have you tried adding [POReceiptLineSplit.LotSerialNbr]<>’’ in the first Iif? 

Thanks. Yeah I was wrong there.