0

How to resolve the below expression:

sum({<Category={'Internal Ops SLA'}>}(RangeSum(Above(sum(InternalOpsSLA),0,12))/TargetOpsSLA)*Weight)

It is giving the error in expression, because of the double sum.

The multiplier Weight value is selected as per the category in the set expression modifier. Is there any other way, apart from variable with ONLY as I need to sum the final results, for the above expression ?

4

1 回答 1

0

我知道这篇文章很老了。回应它,认为它可能会帮助一些人。

在尝试计算平均值总和时,我在 qlikview 中遇到了类似的问题。带有错误消息:

(Error in expression: Nest Aggregation not allowed)

我意识到解决这个问题的一种方法是使用聚合函数。而不是将它们分组为:

sum(avg(<Dimension_Name>condition))

我将它们分组为:

Sum(Aggr(Avg(condition), Dimension_Name))

这对我来说效果很好。

所以对于你的问题,我会尝试这样的事情:

sum(aggr(if(Category = {'Internal Ops SLA'},(RangeSum(Above(sum(InternalOpsSLA),0,12))/TargetOpsSLA)*Weight),'Dimension Name'))
于 2017-09-18T16:06:16.460 回答