on 01-27-2017 7:18 PM
Hi Experts - I am trying to achieve this status based on if condition or Case if possible.
Curently I tried using if as below but its not working for 3 conditional values
if(("NETDUEDATE">="CLEAR_DATE" and "CLEAR_DATE"!='00000000'), 'PAID', 'LATE', if("NETDUEDATE"<"CURRENT_DATE" and "CLEAR_DATE"='00000000'),'TBP')
if I remove the 2nd line if condition it works but the TBP (To BE PAID) conddition does not work somehow so need some expert advice.
Thanks in advance for help related to this (using if or case also work)
The IF function has only three arguments. You are using five. You have to box the second IF function call in the call of the first IF function.
if(("NETDUEDATE">="CLEAR_DATE" and "CLEAR_DATE"!='00000000'),'PAID',if(("NETDUEDATE"<"CURRENT_DATE" and "CLEAR_DATE"='00000000'),'TBP','LATE'))
Please check also if the condition for "TBP" is correct, because the current one (NETDUEDATE lower than CURRENT_DATE ...) does not match your example for TBP (in your example the net due date is not lower than the current date).
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I applied this logic
if(("NETDUEDATE">="CLEAR_DATE" and "CLEAR_DATE"!='00000000'), 'PAID', if(("NETDUEDATE"<"DOC_DATE" and "CLEAR_DATE"='00000000' ),'TBP','LATE') )
and there is no error but the current date is not getting populated using CURRENT_DATE so now I need to figure how to get current date in calculation column.
Thanks for your inputs.
The NOW function can be used to get the current date within a calculated column.
Regarding your additional condition for TBP: Just box another IF condition as third argument of the second IF function.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.