DAX 添加列以显示应用于销售订单的金额
DAX add column to show amount applied to sales order
我在 Power BI 中有一个 table,看起来像这样:
Document#
Created From
Amount
Status
INV1234
SO7654
0
INV2345
SO7654
0
SO7654
00
Partially Filled
INV3456
SO6543
0
SO6543
0
Filled
我想添加一列来显示已根据销售订单开具发票的总金额。
Document#
Created From
Amount
Status
Amount Applied
INV1234
SO7654
0
INV2345
SO7654
0
SO7654
00
Partially Filled
0
INV3456
SO6543
0
SO6543
0
Filled
0
如有任何帮助,我们将不胜感激。
计算为新的 DAX 列:
Amount Applied =
var __curDoc = table[Document#]
return
calculate(sum('table'[Amount]), filter(all(table), table[Created From] = __curDoc ))
我在 Power BI 中有一个 table,看起来像这样:
Document# | Created From | Amount | Status |
---|---|---|---|
INV1234 | SO7654 | 0 | |
INV2345 | SO7654 | 0 | |
SO7654 | 00 | Partially Filled | |
INV3456 | SO6543 | 0 | |
SO6543 | 0 | Filled |
我想添加一列来显示已根据销售订单开具发票的总金额。
Document# | Created From | Amount | Status | Amount Applied |
---|---|---|---|---|
INV1234 | SO7654 | 0 | ||
INV2345 | SO7654 | 0 | ||
SO7654 | 00 | Partially Filled | 0 | |
INV3456 | SO6543 | 0 | ||
SO6543 | 0 | Filled | 0 |
如有任何帮助,我们将不胜感激。
计算为新的 DAX 列:
Amount Applied =
var __curDoc = table[Document#]
return
calculate(sum('table'[Amount]), filter(all(table), table[Created From] = __curDoc ))