I am trying to create the below calculated field in dataset but I get an error saying that “Function MAX should have 1 argument(s) instead of 2 argument(s)” while in
round(ifelse(({State}=‘APPROVED’ OR {State}=‘P_APPROVED’)
AND {Ev State}=‘APPROVED’
AND {Type}=‘Green’,
max({Amount},[{sales_id}]),
NULL)
,2)
you can max amount above the ifelse condition. like this:
round(max(ifelse(({State}=‘APPROVED’ OR {State}=‘P_APPROVED’)
AND {Ev State}=‘APPROVED’
AND {Type}=‘Green’,
{Amount},NULL) ), [{sales_id}] )
,2)
Hi @pantelis,
Since we haven’t heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.