我从dim_Date[Date]
到fact_Loss[DateClosed]
处于无效关系。
我需要按DateClosed
计算每月平均未解决的索赔数。
我可以使用USERELATIONSHIP
计算每月的ClosedClaims:
1)计算的合计合计索赔
Ttl Closed Claims =
CALCULATE (
DISTINCTCOUNT ( fact_Loss[ClaimID] ),
FILTER ( fact_Loss, fact_Loss[ClaimStatus] = "Closed" )
)
2)计算每月关闭日期的未结索赔
Claims by Closed Date =
CALCULATE (
[Ttl Closed Claims],
USERELATIONSHIP ( fact_Loss[DateClosed], dim_Date[Date] )
)
结果看起来正确:
但是现在我只需要对这些泰铢取平均值: 我正在尝试这样的事情:
AVG Closed Claims =
CALCULATETABLE(
SUMMARIZE (
FILTER ( fact_Loss, fact_Loss[ClosedMMYY] <> BLANK () ),
fact_Loss[ClosedMMYY],
"Average", COUNT ( fact_Loss[ClaimID] )
),USERELATIONSHIP(fact_Loss[DateClosed],dim_Date[Date])
)
但是它给我的电话号码不正确