I am trying to calculate the lower limit for success rate with the following calculation
avg({Success Rate})- 3*(stdev({Success Rate}))
I am getting the following error: nesting of aggregrate functions is not allowed
The success rate is calculated using the formula below
count(ifelse(transactioncode = 14 OR transactioncode = 17, ‘Success’, NULL)) / count(transactioncode)
You can’t use the count function inside avg. That’s what nesting of aggregate functions mean (they’re both aggregate functions). To get around this, change your count function to countOver.
I think there’s also something wrong in your count function. If your condition is true (transactioncode = 14 OR transactioncode = 17), then you end up with count(‘Success’). Are you trying to count the number of occurrences of the string value ‘Success’? In what field? Is ‘Success’ a field or is it a string value?
Without seeing your dataset, I can’t tell what partition to use in the countOver. You have to replace Dimension in my calculated field by the appropriate field(s).
Hi @Ciku,
It’s been awhile since we last heard from you; following up to see if you have any additional questions or if you were able to find a work around?
If we do not hear back within the next 3 business days, I’ll go ahead and close out this topic.
Hi @Ciku,
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 any relevant information that may be needed.