我想计算加拿大用户数/总用户数。我的计算工作正常,但是唯一的问题是,当我深入到国家/地区时(使用我为加拿大过滤的相同的暗属性),我得到的比例确实很古怪。有没有解决的办法?
with
member [Measures].[Canada Users] as
sum([Market].[Country Name].&[Canada], [Measures].[Regs])
member [Measures].[Canada %] as
DIVIDE ( [Measures].[Canada Users],[Measures].[Regs] )
select
{ [Measures].[Canada Users],[Measures].[Regs],[Measures].[Canada %]} on 0
,{[Market].[Country Name].[Country Name]} on 1
from [Cube]