1 Reply Latest reply: Apr 9, 2013 9:07 AM by facundo de la cal RSS

    Syntax set analysis - IF statement

    Bradley Coyne



      I am currently putting together a R12 statement; the statement without the IF condition is working 100% however when i add the IF condition in a set analysis string it does not work.



      Your help is greatly appreciated in this matter.


      Original IF statement = sum(If(vr_ktonr_RR<4000,vr_Netto_RR,0))



      rolling 12 syntax = sum({1<OrderDate={">=$(=addmonths(monthend(max(OrderDate))+1,-12)) <=$(=max(OrderDate))"}>}Vr_Netto_RR)