分子不为空的分母之和 - PBI DAX 中的过滤问题
Sum of Denominator where Numerator is not null - Filter issues in PBI DAX
call_count
tHandle
tTalk
10
2040.01
7
1136.12
768.83
1
186.709
在 DAX 中,我想在调用 tHandle
is not null
..
时找到 average
tHandle
我希望能够对 tHandle
求和 tHandle
is not blank
并除以 call_count
的 sum
其中 tHandle
is not blank
..
我当前的 DAX 正在返回 73.49
而不是 165.35
,即 1322.83/8
。
当前 DAX:
Average Call Handle = sum(vw_fact_conversation_aggregate[tHandle]) / if(sum(vw_fact_conversation_aggregate[tHandle]) <> BLANK(), sum(vw_fact_conversation_aggregate[call_count]), 0) + 0
示例如下:
AVGtHandle =
var _handle = CALCULATE( sum(calls[tHandle]))
var _CallCount = CALCULATE( sum(calls[CallCount]), NOT( ISBLANK(calls[tHandle])))
return
divide (_handle, _CallCount)
call_count | tHandle | tTalk |
---|---|---|
10 | 2040.01 | |
7 | 1136.12 | 768.83 |
1 | 186.709 |
在 DAX 中,我想在调用 tHandle
is not null
..
average
tHandle
我希望能够对 tHandle
求和 tHandle
is not blank
并除以 call_count
的 sum
其中 tHandle
is not blank
..
我当前的 DAX 正在返回 73.49
而不是 165.35
,即 1322.83/8
。
当前 DAX:
Average Call Handle = sum(vw_fact_conversation_aggregate[tHandle]) / if(sum(vw_fact_conversation_aggregate[tHandle]) <> BLANK(), sum(vw_fact_conversation_aggregate[call_count]), 0) + 0
示例如下:
AVGtHandle =
var _handle = CALCULATE( sum(calls[tHandle]))
var _CallCount = CALCULATE( sum(calls[CallCount]), NOT( ISBLANK(calls[tHandle])))
return
divide (_handle, _CallCount)