简体   繁体   中英

Get Sum of average in SSAS

In my cube I have a model like below:

在此处输入图片说明

When I remove [Claims Ref No] column it changes as below:

在此处输入图片说明

[Total Paid] column value is correct here.

But I want to keep [Total Premium To Policy Holder] column as 1433.25 for [Policy Ref No] HTEST9545.. instead of 2866.5 (1433.25 + 1433.25)

Similarly if I remove the column [Policy Ref No] I want the value 1779.06 (1433.25 + 345.81) as the [Total Premium To Policy Holder] value instead of 3212.31 (1433.25 + 1433.25 + 345.81)

在此处输入图片说明

So my requirement is like I want to eliminate duplicates of premiums based on [Policy Ref No] when sum up. Or in other words group the premium values by [Policy Ref No] and then take the sum.

Any help to solve this matter is appreciated.

听起来您需要在度量[对保单持有人的总保费]上使用SCOPE才能覆盖默认汇总。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM