IT其它 商业智能

建一个动态的 Categories(x-axis) and Filter?

在报表做图中,想建一个动态的
1. Categories(x-axis),用
if(logon user's group=bimanager then [Pod Unit Code]
else
[Unit Code])
-------------------
2. Filter:

if (Logon user's group<>bimanager and Logon user's group<>bisupervisor then

roleValue('_shortName',[Critical Standards Yesterday].[Pod].[Pod].[Employee] ) = #sq($account.personalInfo.userName)#


else

null



目的是做一个图就满足managers 和 workers的需要,现在是要做2个图,区别在Categories(x-axis), 1个给mangaers 用pod 来包括所有组,1个是为worker,用Unit Code只包括他本人在的组。(pod->Unit->worker),如果公式可行,建一个图就行了。

谢谢!


不知道这个想法是否可行?如图2,
我是在这篇文章里看到的,但不知道,这段CODING用在哪?如图,
http://www.ibm.com/developerworks/cn/data/library/techarticle/dm-1104cognossecurityreport/index.html




PM3.png

参与5

4 同行回答

nottawa nottawa 其它 cas
回复 4# lyrath Thanks, no. even if I added it, not working,I am thinking about the package from Cube, not FM, Cube is setting the acess via custom views to assign the groups, FM is using parameter map, waht's the different for the (logon user's group...显示全部
回复 4# lyrath

Thanks, no. even if I added it, not working,
I am thinking about the package from Cube, not FM, Cube is setting the acess via custom views to assign the groups, FM is using parameter map, waht's the different for the (logon user's group) formula?


anyway, thank for reply. 收起
IT其它 · 2013-11-08
浏览721
lyrath lyrath 软件开发工程师 IBM
回复 3# nottawa 语法问题, if 写完以后差一个反括号if (Logon user's groupbimanager and Logon user's groupbisupervisor ) then显示全部
回复 3# nottawa

语法问题, if 写完以后差一个反括号
if (Logon user's group<>bimanager and Logon user's group<>bisupervisor ) then 收起
互联网服务 · 2013-11-07
浏览760
nottawa nottawa 其它 cas
回复 2# 贝克汉姆 请帮忙看看我把面这个条件表达式加在报表的Filter上,错在哪?"Logon user's group"是不是不对?Please see error message below.if (Logon user's groupbimanager and Logon user's groupbisupervisor thenroleValue('_shortName',[Critical Standards Yester...显示全部
回复 2# 贝克汉姆

请帮忙看看我把面这个条件表达式加在报表的Filter上,错在哪?
"Logon user's group"是不是不对?Please see error message below.

if (Logon user's group<>bimanager and Logon user's group<>bisupervisor then
roleValue('_shortName',[Critical Standards Yesterday].[Pod].[Pod].[Employee] ) = #sq($account.personalInfo.userName)#
else
null

   

error.png



Thank you very much. 收起
IT其它 · 2013-11-07
浏览768
贝克汉姆 贝克汉姆 软件开发工程师 IBM
完全可以,说白了也是个条件表达式显示全部
完全可以,说白了也是个条件表达式 收起
互联网服务 · 2013-11-07
浏览716

提问者

nottawa
其它 cas
评论405

相关问题

相关资料

问题状态

  • 发布时间:2013-11-07
  • 关注会员:1 人
  • 问题浏览:3466
  • 最近回答:2013-11-08
  • X社区推广