Calculated Field need help

sumOver(ifelse(dateDiff( {RECORD_DATE},now() ,‘DD’) <=30 AND {FRAUD_AMT_USD}> 0,1,0),[{MERCH_ID}])

This calculation is throwing the error , Please help

Hi @deepa.singh ,

What is the error that you are getting?

Thanks,
Prantika

Hi @deepa.singh

Try this

sumOver(sum(ifelse(dateDiff( {RECORD_DATE},now() ,‘DD’) <=30 AND {FRAUD_AMT_USD}> 0,1,0)),[{MERCH_ID}])

still syntax error , Please check

Iam getting syntax error

Can you try adding PRE_AGG after the partition? This applies if you are using the original formula, but if you are trying with the one @lalprasanth has suggested then you may need POST_AGG.

1 Like

Hi @deepa.singh,
It’s been awhile since we last heard from you. Were you able to find a work around for your solution from the help given above or did you have any additional questions?

If we do not hear back within the next 3 business days, I’ll go ahead and close out this topic.

Thank you!

Hi @deepa.singh,
Since we haven’t heard back, I’ll go ahead and close this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.

Thank you!