日期:2014-05-17  浏览次数:20557 次

求助[急]:SSAS过滤数据问题
SSAS2008在设计度量值时,选择聚合方法为非重复计数,此时统计的行数还有一个条件,即成绩大于60的学生

如下一个事实表的结构如下:对校区与学生是1:n

校区名称     姓名        成绩
校区一       学生一      60
校区一       学生二      58


需求:查询校区对应的学生总数,同时成绩大于等于60的

目前我的这种设计方式不能增加成绩条件,请问在哪能加呢

用MDX如何写


--------------------------------------------

------最佳解决方案--------------------
with member StuNum as  DISTINCTCOUNT([measures].[成绩])
select {filter([measures].[StuNum],[measures].[成绩]>0} on 0 from [cube]
------其他解决方案--------------------
BI 关注。 

------其他解决方案--------------------
路过 学习下
------其他解决方案--------------------
用MDX的话可以使用Filter或where,不过filter是根据度量筛选结果,where根据具体的维度成员筛选,成绩我不知道你具体是什么,你查一下,看看用哪个,希望能帮到你
------其他解决方案--------------------
The easiest way is to create a score bucket attribute in your student dimension such as 60+ and 60-, And then you can filter by this attribute to count your students.

However, if you have multiple courses this is not a good solution.
W:)
------其他解决方案--------------------
该回复于2011-07-26 10:54:07被版主删除