企业绩效管理网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: 恭喜发财1

DISTINCT Counts in TM1

[复制链接]

77

主题

397

帖子

570

积分

高级会员

Rank: 4

积分
570
QQ
发表于 2014-6-10 02:32:53 | 显示全部楼层
I assume you are talking about something equivalent to doing a "SELECT DISTINCT" type query in SQL

Actually I think the OP's problem is more to do with the fact he is trying to resolve a headcount from adding up FTEs.

I would advise him to explore the option of a separate cube, with a separate source query.
回复 支持 反对

使用道具 举报

83

主题

421

帖子

617

积分

高级会员

Rank: 4

积分
617
QQ
发表于 2014-6-10 02:43:54 | 显示全部楼层
@tomok: all OLAP solutions that I know of have multiple rollup calculations available for measures.  There are many types of analytical questions that revolve around counting things: # of customers that bought last month, etc.
回复 支持 反对

使用道具 举报

87

主题

397

帖子

595

积分

高级会员

Rank: 4

积分
595
QQ
发表于 2014-6-10 03:02:55 | 显示全部楼层
I would consider the dynamic subset (driven by MDX) in student ID dimension with creteria as load >0.
回复 支持 反对

使用道具 举报

73

主题

409

帖子

584

积分

高级会员

Rank: 4

积分
584
QQ
发表于 2014-6-10 03:12:20 | 显示全部楼层
A solution to this may be to build an alternative hierachy in the dimension that holds "subject" information.  This alternative hierachy would consist of all 'N' elements and no 'C' elements.  

The alternative N elements would look like.
Count_Class123  => Representing N element (Class123) in normal structure
Count_SchoolABC => Representing C element (SchoolABC) in normal structure
Count_Uni => Representingto C element (Uni) in normal structure

Then when you load your students data via TI, add a procedure for every student ID in the month populate "1" where they exist in Count_class123 etc.  Then use some logic to determine the parent school of Class123 and populate "1" in the Count_SchoolABC  then again for Count_Uni.  

By doing the above every time a student re-appears in a school it will overwrite the "1" (or maybe "1/12" to represent enrolled for this 1 month out of 12) not add to it and make "2".  

Ideally the result would be alternative "N" elements that hold accurate counts by months of unique students at any level you wish to query.  The downside of this approach may be its a little hard to read as the structure would consist of only N elements and doesnt facilitate easy drilldown from Uni -->  school --> class.

Hopefully this could be added to your existing TI process utilising your existing cubes / dimensions.

Let me know what you think.  (Not a rule based answer but maybe workable solution)

Regards

Jeremy
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2023-10-3 19:51 , Processed in 0.060983 second(s), 8 queries , Memcache On.

Powered by Discuz! X3.1 Licensed

© 2001-2013 Comsenz Inc.

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