Hi all,
I’m currently struggling with some blockers for ifelse
function. I’m basically trying to utilize {outlier}
parameter for determining if a specific item
partitioned by project/subject/type
is an outlier. I’ve been testing the same solution by the mean but now trying to replace it with median and QS isn’t allowing me to do so.
Here’s the working formula with the mean approach:
ifelse(${outlier} = 1, avgOver(Minutes,[project,subject,type],PRE_AGG) + stdevpOver(Minutes,[project,subject,type],PRE_AGG),
ifelse(${outlier} = 2, avgOver(Minutes,[project,subject,type],PRE_AGG) + (stdevpOver(Minutes,[project,subject,type],PRE_AGG)*2),
ifelse(${outlier} = 3, avgOver(Minutes,[project,subject,type],PRE_AGG) + (stdevpOver(Minutes,[project,subject,type],PRE_AGG)*3),Minutes)))
Here’s the formula which i’m struggling with. Could it be linked to LAC-A/LAC-W QS limitation?
ifelse(${outlier} = 1,median(Minutes,[project,subject,type]) + stdevpOver(Minutes,[project,subject,type],PRE_AGG),
ifelse(${outlier} = 2,median(Minutes,[project,subject,type]) + (stdevpOver(Minutes,[project,subject,type],PRE_AGG)*2),
ifelse(${outlier} = 3,median(Minutes,[project,subject,type]) + (stdevpOver(Minutes,[project,subject,type],PRE_AGG)*3),Minutes)))
I’m getting this error when saving 2nd formula:
Is there any workaround for this? Thanks in advance for any feedback!