How to add the below formula in a template
how can i add the below formula in a template
nvl(sum(case when (to_date(:P_GL_DATE,'YYYY/MM/DD HH24:MI:SS')-c.due_date)<=0 THEN c.amount_due_Remaining ELSE 0 END) ,0) Current_due
I tried adding it but i'm getting 0 as the result.
I apologize for not including the entire code for the template that i'm using. I'm using a sql query and then trying to get the output in excel but the result is not accurate on the above formula. It is just giving me 0 as the result.
Thanks for your help
Aparna