Hi @Ksharp ,
Thank you for sharing the code. I have been trying different ways to implement this for a long time, and I really appreciate your help.
I have made a small tweak to the code as " condition=catx(' ',field_name,field_criteria,'('||field_value||')') " since business will not populate braces for any of the condition but they do mentione '%' based on the condition in conditions dataset. However, for one of the time period(1stJan2022-31stDec2023) in conditions dataset, we have nulls in these columns(FN,FV,FC) and it is throwing an error due to that. Could you help me resolving this?
when n=5 and ( ) then "Y"
----
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
I believe this works for all logical, comparison and arithmetic operators and not only for any specific operator. Please let me know if my understanding is correct.
Thank you very much again!
... View more