求助[急]:SSAS过滤数据问题

jiangmin168168 2011-06-23 10:45:52
SSAS2008在设计度量值时,选择聚合方法为非重复计数,此时统计的行数还有一个条件,即成绩大于60的学生

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

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


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

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

用MDX如何写


--------------------------------------------------------------------------------
...全文
130 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
idonot 2011-08-15
  • 打赏
  • 举报
回复
with member StuNum as DISTINCTCOUNT([measures].[成绩])
select {filter([measures].[StuNum],[measures].[成绩]>0} on 0 from [cube]
brogan 2011-07-10
  • 打赏
  • 举报
回复
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:)
Mr_Nice 2011-06-23
  • 打赏
  • 举报
回复
BI 关注。
yili1314 2011-06-23
  • 打赏
  • 举报
回复
用MDX的话可以使用Filter或where,不过filter是根据度量筛选结果,where根据具体的维度成员筛选,成绩我不知道你具体是什么,你查一下,看看用哪个,希望能帮到你
Unicorn_520 2011-06-23
  • 打赏
  • 举报
回复
路过 学习下

590

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧