我想要一个措施来避免被条形图轴过滤

I want a measure to avoid being filtered by a bar chat axis

我有一个条形图,轴上有一个变量 "MBA Type"。

"MBA Type" 是一个分类变量,具有以下可能的连续值:{MBA-LB, MBA1, MBA2, EMAP}

值是根据度量"Student variation"计算的,它应该计算每个 MBA 类型的学生人数与 "MBA Type" == LB 时的学生人数之间的差异。

学生变化应遵循以下逻辑:A - B,其中 A 应响应轴值,B 应始终 "MBA Type"= MBA-LB

为了说明,您可以找到以下图表(我目前有):

我想从每个柱中减去对应于 MBA-LB (17) 的值。 (即 MBA-LB=0、MBA1=-10、MBA2=-16、EMAP=-13)

此外,我想将其他滤镜应用于此视觉对象。所以我不能使用以下计算 B:

B = 
VAR
    VAR_MBALB = FILTER(ALL('Table'), 'Table'[MBA Type] = "MBA-LB")
RETURN
    CALCULATE(SUM('Table'[students]), VAR_MBALB)

我想一个解决方案可能是防止 B 受到变量 "MBA Type" 的影响,并为它固定一个特定的值。 关于如何做到这一点的任何想法?

如有任何意见或建议,我们将不胜感激。

干杯!

All function

ALL(Table) Removes all filters from the specified table.

ALL (Column[, Column[, …]]) Removes all filters from the specified columns in the table; all other filters on other columns in the table still apply.

因此,如果您只想删除 MBA 类型的过滤器,请使用:

B = 
VAR
    VAR_MBALB = FILTER(ALL('Table'[MBA Type]), 'Table'[MBA Type] = "MBA-LB")
RETURN
    CALCULATE(SUM('Table'[students]), VAR_MBALB)