企业绩效管理网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1281|回复: 4

Dynamic Subset on two attributes

[复制链接]

67

主题

416

帖子

566

积分

高级会员

Rank: 4

积分
566
发表于 2014-6-25 16:45:57 | 显示全部楼层 |阅读模式
I??m struggling with a dynamic subset and filtering on two attributes in 3 dimension at the same time.
I have 3 dimension , Account, SalesMan and Category
??Account?? has two attributes : SPCode,CatCode
??SalesMan?? has one Attributes : SPCode
??Category?? has one attributes : CatCode
I am trying with filter, but it??s not working .
{FILTER ({TM1subsetAll ([Accounts] )},(( [Accounts].[SPCode] = [SalesMan].[SPCode])
AND ([Accounts].[CatCode] =[Category].[CatCode])))}

Any body can help me please.
回复

使用道具 举报

87

主题

373

帖子

564

积分

高级会员

Rank: 4

积分
564
QQ
发表于 2014-6-25 18:11:08 | 显示全部楼层
Have you tried recording this in the subset editor?
回复 支持 反对

使用道具 举报

58

主题

371

帖子

514

积分

高级会员

Rank: 4

积分
514
发表于 2014-6-25 18:56:25 | 显示全部楼层
yes, but not working . Any idea pls.
回复 支持 反对

使用道具 举报

83

主题

421

帖子

617

积分

高级会员

Rank: 4

积分
617
QQ
发表于 2014-6-25 18:59:26 | 显示全部楼层
You can do this very easily without using MDX. Using a while statement in TI loop through the account dimension from 1 to the dimsiz and only insert elements in to the subset if they meet your criteria. Would this work or does the subset have to be more dynamic? For me you could do this every time you update the account dimension or update the attributes on either of the other 2 dimensions. This does however only work if the attributes are being updated via TI and not being done manually. Saying that if you use an excel template to edit the attributes you could add an action button to the sheet,

Jim.
回复 支持 反对

使用道具 举报

72

主题

369

帖子

527

积分

高级会员

Rank: 4

积分
527
QQ
发表于 2014-6-25 19:42:45 | 显示全部楼层
I suspect you will need to look at your use of the AND condition.

What results are you getting from your original query?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|企业绩效管理网 ( 京ICP备14007298号   

GMT+8, 2023-5-31 04:45 , Processed in 0.075393 second(s), 37 queries .

Powered by Discuz! X3.1 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表