使用同一维度中的两个单独过滤的值进行测量,由视觉中的过滤器之一切片

Measure with two separately filtered values in the same dimension, sliced by one of the filters in the visual

我有一个维度 table 用于“流程”,有两个事实 table 用于“FTE”和“数量”。两者都与“过程”有关。我想显示第四个 table 实体(组织)的结果。

id   Process
---  -------
1    Approval
2    Payment
3    Process X
4    Process Y

id   Entity
---  -------
1    Entity A
2    Entity B

id   Process   Entity      Volume
---  -------   -------     ------
1    1         Entity A    100
2    1         Entity B    300
3    3         Entity A    50
4    3         Entity B    25

请注意:流程 2 没有卷。流程 1 卷也与流程 2 相关。首先,发票(数量)得到批准,然后才被支付。但是,该卷仅映射到“审批”流程,而不是“付款”流程。

FTE table 与卷具有相同的结构,除了 FTE 列。所有流程都有 FTE。

id   Process   Entity      FTE
---  -------   -------     ----
1    1         Entity A    1
2    2         Entity A    0.5
3    1         Entity B    1.2
4    2         Entity B    0.6 

我想计算每个 FTE 指标的数量。因此,我们需要的是将 Volume 除以 FTE 的度量,其中 Volume 按流程 1(批准)过滤,FTE 按流程 2(付款)过滤。

然后我希望能够在切片器设置为处理 2“付款”的情况下在视觉效果中看到结果。

切片器:

-----------------------
Process = "Payment"
-----------------------

视觉(table):

------------------------------------------
| Entity      Measure: Volume per FTE    |
| ---------   ---------------------------|
| Entity A    100 / 0.5 = 200            |
| Entity B    300 / 0.6 = 500            |
------------------------------------------

直接的 DIVIDE(CALCULATE(), CALCULATE()) 不起作用,因为 Volume 将被切片器过滤掉,返回 BLANK() 结果。

有办法吗?例如。我们可以愚弄 PowerBI 来过滤进程 1 上的卷,并认为它正在处理进程 2 吗?或者其他方式?

谢谢!

所以...还是有点混乱。您可能需要重新考虑您的模型。

但你可以从以下开始:

Volume for Approval = CALCULATE(SUM('Volume'[Volume]), 'Process'[Process] IN { "Approval" })

这样我将覆盖该列上切片器的任何过滤器。

Volume per FTE = DIVIDE( Volume[Volume for Approval], SUM(FTE[FTE]))