[英]Present two different dimensions in MDX as hierarchy
我有两个不同的维度,我想在 MDX Query 中通过下钻显示
昏暗1:
Country, CountryId
Italy,1
Mexico,2
England,3
昏暗2:
Product, ProductId
Shoes,1
Shirts,2
Bags,3
事实数据:
Country,Product,Amount
1,2,33
3,1,50
2,3,64
1,1,100
3,1,70
2,2,44
当我在 MDX 查询中加入维度时:
选择 [Measures].[SaleAmount] on 0, crossjoin([Country].[Country].[Country].[Italy],[Product].[Product].[Product].[Product]) on 1 from [cube] ]
提供的数据将是:
italy Shoes 100
Shirts 33
Bags 0
Mexico Shoes 0
Shirts 44
Bags 64
...
我想用从国家到产品的向下钻取选项来显示数据
+italy 133
+Mexico 108
+England 120
我正在使用 icCube
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.