• MDX分页查询



    WITH
    SET [e16a30d0-2174-4874-8dae-a5085a75a3e2] as NONEMPTY({[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) SET [d1876d2b-e50e-4547-85fe-5b8ed9d629de] as NONEMPTY( VISUALTOTALS( ({{Drilldownlevel({ [出方渠道].[出方渠道ID] })}}) ),{[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) MEMBER [Measures].[3d268ce0-664d-4092-b9cb-fece97175006] AS Count([e16a30d0-2174-4874-8dae-a5085a75a3e2]) MEMBER [Measures].[8d7fe8c1-f09f-410e-b9ba-eaab75a1fc3e] AS Count ([d1876d2b-e50e-4547-85fe-5b8ed9d629de]) SELECT { [Measures].[3d268ce0-664d-4092-b9cb-fece97175006] , [Measures].[8d7fe8c1-f09f-410e-b9ba-eaab75a1fc3e] } ON AXIS(0) FROM [RegentCube] WITH SET [a69e818b-1183-4635-af2a-08199b74b905] as SUBSET({ NONEMPTY({[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) }, 0, 50) SET [e16a30d0-2174-4874-8dae-a5085a75a3e2] as Distinct({Hierarchize({ Generate({[a69e818b-1183-4635-af2a-08199b74b905]}, Ascendants([a69e818b-1183-4635-af2a-08199b74b905].Current.item(0)))})}) SET [4d3bfd6d-d89a-487a-b5a9-348689f2db58] as SUBSET({ NONEMPTY( VISUALTOTALS( ({{Drilldownlevel({ [出方渠道].[出方渠道ID] })}}) ),{[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) }, 150, 50) SET [d1876d2b-e50e-4547-85fe-5b8ed9d629de] as Distinct({Hierarchize({ Generate({[4d3bfd6d-d89a-487a-b5a9-348689f2db58]}, Ascendants([4d3bfd6d-d89a-487a-b5a9-348689f2db58].Current.item(0)))})}) SELECT [a69e818b-1183-4635-af2a-08199b74b905] dimension properties MEMBER_TYPE, PARENT_UNIQUE_NAME ON COLUMNS , [4d3bfd6d-d89a-487a-b5a9-348689f2db58] dimension properties MEMBER_TYPE, PARENT_UNIQUE_NAME ON ROWS FROM [RegentCube] CELL PROPERTIES VALUE, FORMAT_STRING, FORMATTED_VALUE WITH SET [e16a30d0-2174-4874-8dae-a5085a75a3e2] as NONEMPTY({[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) SET [d1876d2b-e50e-4547-85fe-5b8ed9d629de] as NONEMPTY( VISUALTOTALS( ({{Drilldownlevel({ [出方渠道].[区域] })}}) ) * VISUALTOTALS( ({{Drilldownlevel({ [出方渠道].[省份] })}}) ),{[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) MEMBER [Measures].[3d268ce0-664d-4092-b9cb-fece97175006] AS Count([e16a30d0-2174-4874-8dae-a5085a75a3e2]) MEMBER [Measures].[8d7fe8c1-f09f-410e-b9ba-eaab75a1fc3e] AS Count ([d1876d2b-e50e-4547-85fe-5b8ed9d629de]) SELECT { [Measures].[3d268ce0-664d-4092-b9cb-fece97175006] , [Measures].[8d7fe8c1-f09f-410e-b9ba-eaab75a1fc3e] } ON AXIS(0) FROM [RegentCube] WITH SET [a69e818b-1183-4635-af2a-08199b74b905] as SUBSET({ NONEMPTY({[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) }, 0, 50) SET [e16a30d0-2174-4874-8dae-a5085a75a3e2] as Distinct({Hierarchize({ Generate({[a69e818b-1183-4635-af2a-08199b74b905]}, Ascendants([a69e818b-1183-4635-af2a-08199b74b905].Current.item(0)))})}) SET [4d3bfd6d-d89a-487a-b5a9-348689f2db58] as SUBSET({ NONEMPTY( VISUALTOTALS( ({{Drilldownlevel({ [出方渠道].[区域] })}}) ) * VISUALTOTALS( ({{Drilldownlevel({ [出方渠道].[省份] })}}) ),{[Measures].[终端销售数量], [Measures].[终端销售吊牌额]}) }, 0, 50) SET [d1876d2b-e50e-4547-85fe-5b8ed9d629de] as Distinct({Hierarchize({ Generate({[4d3bfd6d-d89a-487a-b5a9-348689f2db58]}, Ascendants([4d3bfd6d-d89a-487a-b5a9-348689f2db58].Current.item(0)) * Ascendants([4d3bfd6d-d89a-487a-b5a9-348689f2db58].Current.item(1)))})}) SELECT [a69e818b-1183-4635-af2a-08199b74b905] dimension properties MEMBER_TYPE, PARENT_UNIQUE_NAME ON COLUMNS , [4d3bfd6d-d89a-487a-b5a9-348689f2db58] dimension properties MEMBER_TYPE, PARENT_UNIQUE_NAME ON ROWS FROM [RegentCube] CELL PROPERTIES VALUE, FORMAT_STRING, FORMATTED_VALUE
  • 相关阅读:
    centos7修改服务端口(ssh为例)
    VLAN基础知识
    三层交换机与路由器区别
    冲突域和广播域的区分
    LAN口和WAN口的区别是什么?
    内网穿透frp
    linux bash中too many arguments问题的解决方法
    linux日志
    linux服务管理
    OSPF 多区域配置实验
  • 原文地址:https://www.cnblogs.com/ycdx2001/p/4115050.html
Copyright © 2020-2023  润新知