QlikView Expression 忽略某些选择并包含显式值

QlikView Expression that ignores some selections and contains where explicit values

我有一个基本表达式SUM(value)

我想修改这个表达式,让它做两件事:

忽略除一个(yearperiod)以外的所有列表框选择并包含明确的 where 条件。

伪期望表达式:

(SUM(value) Where category = 'abc'/SUM(TOTAL value Where category = 'abc' OR 'xyz' (NOT AFFECTED BY yearperiod))

这可以通过使用集合分析来实现。

SUM({1<yearperiod  = $:: yearperiod, Category = {'abc'} >}Value)/SUM(TOTAL {1<yearperiod  = $:: yearperiod, Category = {'abc','xyz'} >}Value)