MDX - TOP N PARENT WITH TOP N CHILDS
来源:互联网 发布:淘宝子账号不能登录 编辑:程序博客网 时间:2024/06/05 20:02
WITH SET [CountryRankSet] AS Order ( NonEmpty ( [Geography].[Country].[Country].MEMBERS ,[Measures].[Internet Sales Amount] ) ,[Measures].[Internet Sales Amount] ,desc ) MEMBER [Measures].[CountryRank] AS Rank ( [Geography].[Country].CurrentMember ,CountryRankSet ) SET [ProductRankSet] AS Order ( NonEmpty ( [Product].[Product].[Product].MEMBERS ,[Measures].[Internet Sales Amount] ) ,[Measures].[Internet Sales Amount] ,desc ) MEMBER [Measures].[ProductRank] AS Rank ( [Product].[Product].CurrentMember ,ProductRankSet ) SELECT {[Measures].[CountryRank],[Measures].[ProductRank],[Measures].[Internet Sales Amount]} ON 0 ,Generate ( [Geography].[Country].[Country].MEMBERS ,TopCount ( Order ( [Geography].[Country].CurrentMember * [Product].[Product].[Product].MEMBERS ,[Measures].[Internet Sales Amount] ,DESC ) ,3 ) ) ON 1FROM [Adventure Works];
CountryRank ProductRank Internet Sales Amount
Australia Road-150 Red, 48 1 1 $1,205,876.99
Australia Road-150 Red, 62 1 2 $1,202,298.72
Australia Road-150 Red, 52 1 3 $1,080,637.54
Canada Road-150 Red, 48 2 1 $1,205,876.99
Canada Road-150 Red, 62 2 2 $1,202,298.72
Canada Road-150 Red, 52 2 3 $1,080,637.54
France Road-150 Red, 48 3 1 $1,205,876.99
France Road-150 Red, 62 3 2 $1,202,298.72
France Road-150 Red, 52 3 3 $1,080,637.54
Germany Road-150 Red, 48 4 1 $1,205,876.99
Germany Road-150 Red, 62 4 2 $1,202,298.72
Germany Road-150 Red, 52 4 3 $1,080,637.54
United Kingdom Road-150 Red, 48 5 1 $1,205,876.99
United Kingdom Road-150 Red, 62 5 2 $1,202,298.72
United Kingdom Road-150 Red, 52 5 3 $1,080,637.54
United States Road-150 Red, 48 6 1 $1,205,876.99
United States Road-150 Red, 62 6 2 $1,202,298.72
United States Road-150 Red, 52 6 3 $1,080,637.54
- MDX - TOP N PARENT WITH TOP N CHILDS
- top n with ties
- top n
- top n
- SELECT TOP N 问题
- oracle top n 问题
- oracle top n 问题
- Hiberate top n
- TOP n [PERCENT]用法
- 实现Oracle Top N
- Oracle Top N
- SELECT TOP N 问题
- Top N 怎么办
- mysql的top n
- oracle top n
- Oracle Top N
- top n 二分法
- hive的top n
- LightBus新浪微博客户端开源下载
- T-SQL 替换多个空格
- facebook数据库介绍(一)
- facebook数据库(二)
- 数组中出现次数超过一半的数字
- MDX - TOP N PARENT WITH TOP N CHILDS
- MDX- CALCULATION BY ITEM()
- Google后Hadoop时代的新“三驾马车”——Caffeine、Pregel、Dremel整理
- F1:Google最新公开的分布式关系型数据库
- 阿里云开发大赛
- Dynamic Binding and Casting for the Extensibility of OOP
- 经典算法题目
- 某博友整理算法题目
- Ispell in Emacs