请教:一个简单的MDX查询问题(关于成员属性的使用)

liuri璇玑 liuri璇玑 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我希望显示出机构BG00000118的各业务员(包括业务员编写与名称)的月销售量Month_Quantity
[salesman].[Personnel]是一个维度,有键Personnel,属性Personnel_name

现在,如果只显示编码没问题,即:
select {[Measures].[Month_Quantity]} on 0
,non empty {[salesman].[Personnel].[Personnel]} on 1
from [渠道分析]
where ([office].[organ].&[BG00000118])
只返回5条记录,即我这个机构按业务员汇总的销量

但
WITH MEMBER own_cust AS
[salesman].[Personnel].CurrentMember.Properties("Personnel_name")

select {own_cust,[Measures].[Month_Quantity]} on 0
,non empty {[salesman].[Personnel].[Personnel]} on 1
from [渠道分析]
where ([office].[organ].&[BG00000118])
会返回2000多条,即所有业务员的销量,where ([office].[organ].&[BG00000118])就象没起作用式的

请问应该如何处理?
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
liuri璇玑
数据仓库 7,394 成员 6,741 内容