固定日期的Desvap

时间:2019-06-13 13:05:36

标签: qlikview

我试图以固定日期正确地确定分布标准偏差。

IF((/*first condition */
    /*count distribution */ stdev(TOTAL <variable,interval_variable> aggr((SUM(total <date,interval_variable,variable> count)/sum(total <date,variable> count)),interval_variable,variable,date))
    /*menor que o minimo da distribuição */ >
    AVG(TOTAL <variable,interval_variable> aggr((SUM(total <date,interval_variable,variable> count)/sum(total <date,variable> count)),interval_variable,variable,date)) -  2 * stdev(TOTAL <variable,interval_variable> aggr((SUM(total <date,interval_variable,variable> count)/sum(total <date,variable> count)),interval_variable,variable,date)) 
    OR
    /*second condition */
    /*count distribution*/ stdev(TOTAL <variable,interval_variable> aggr((SUM(total <date,interval_variable,variable> count)/sum(total <date,variable> count)),interval_variable,variable,date))
    /*maior que o maximo da distribuição*/ <
    AVG(TOTAL <variable,interval_variable> aggr((SUM(total <date,interval_variable,variable> count)/sum(total <date,variable> count)),interval_variable,variable,date)) +  2 * stdev(TOTAL <variable,interval_variable> aggr((SUM(total <date,interval_variable,variable> count)/sum(total <date,variable> count)),interval_variable,variable,date))),
    /*then color green */
    rgb(147,219,112),
/*else color red*/
    rgb(140,23,23))

不起作用,我的代码将所有结果变为绿色。

我想定一个日期固定的转折点,以便在我离开标准差时向我显示

0 个答案:

没有答案