COGNOS报表维护手册(打印)

合集下载

Cognos多维分析操作使用手册

Cognos多维分析操作使用手册

Cognos多维分析操作使用手册1.1.1.OLAP展示窗口介绍进入中国电信经营分析系统,点击多维分析中一个分析主题进入该分析主题操作窗口,会出现以下类似的界面:就这个浏览器窗口说明一下将要在后用到一些名词。

浏览器窗口包括:1.1.1.1.维度栏维度:在浏览器窗口顶端,用于过滤每一维数据。

例如下图,该主题的维度包括时间,年,月份,在网时长,城乡标识,用户性质,地域,帐目类型,产品类型,客户类型,客户营销属性,上传省份等。

1.1.1.2.维度导航区维度导航区域用于对显示数据的行列和指标进行替换、嵌套等操作,在浏览器窗口的左部。

1.1.1.3.数据显示区域维度栏的最后一项为指标下拉框,其中各个选项是作为数据显示区域的指标,如果在该立方体中有多个指标,您也可以选择其他的指标显示。

1.1.1.4.层次选择区有些维度分层次展示,如时间维度一般是年->季度->月这样的层次,用鼠标右键点击白色矩形框,会弹出菜单,可以让行或者列的数据向下一层或者上一层展开,使得数据展示更清楚.1.1.1.5.工具栏工具栏位于浏览器窗口右部的底端,如下图:工具栏主要分为以下几部分:图标说明交叉制表显示/缩进式交叉制表显示风格选择简易条形图/饼图/簇状条形图/堆积式条形图/多线/立体条形图等图形显示风格的变化拆分视图,使数据显示在下部分,图形显示在上半部分调整显示选项,行列的数量,指标显示的选项,计算类别的显示等对已经插入的计算行或列进行调整对隐藏显示的进行调整交换行列对显示为0的数据消除80/20隐藏自定义例外项突出显示提供此报表说明在报表中查找类别打开帮助浏览器窗口把数据导出成文件以上是对工具栏每个图标的说明。

当然,只要鼠标放在图标上面就可以看到简单说明,具体的使用在OLAP基本操作里面介绍。

1.1.1.6.OLAP操作实现的功能通过您的 web 浏览器,您可以•浏览信息,在任何维度浏览数据。

在每一个具体的维度里面,点击其下拉框都可以看到其子类别和层次关系。

Cognos-8-业务智能报表和仪表板

Cognos-8-业务智能报表和仪表板

Cognos 8 业务智能报表和仪表板在恰当的时间内为最终用户提供恰当的信息方面,IT专业人员面临着很大挑战。

为此许多企业已经部署了各种各样的业务智能(BI)、报表和仪表盘软件产品。

每个产品都需要同时进行支持、维护和管理。

每种产品可能访问特定的和不同的数据源并仅能提供所需的一些报表选项。

IT管理人员一直都在寻找一种单一个、基于Web的报表解决方案来满足所有的报表需求。

他们需要一种能够充分利用现有IT基础结构、真正能够扩展、具有成长能力的灵活解决方案。

如果没有完整性和易用性,IT必须花费很多的稀缺资源来推进从支持和维护到创建、修改和发布的报表周期的每个环节。

使用Cognos 8 BI进行报表可以提供一种已经证实的、更好的选择方式。

您可以给所有报表用户和作者提供一种单一的、自助式的产品来满足业务、生产和仪表盘等所有企业报表需求。

您可以在提供面向所有数据源的安全的报表功能的同时,降低企业报表环境的复杂性。

完整的报表涵盖范围Cognos 8业务智能报表建立在已经证实的ReportNet体系结构之上,为所有类型的企业报表提供了一个单一个的制作解决方案,这些报表类型包括:×象素级生产报表×管理报表×即席查询×仪表盘它提供广泛的报表制作功能,可以减少创建报表和修改报表所产生的时间和成本。

使用熟悉的基于浏览器的界面,用户可以将报表制作功能提供应更广泛的用户群体。

Cognos 8 BI的报表功能可以大大降低使用多种报表解决方案所造成的重复性的技术支持和培训的开销和成本。

从一个报表制作解决方案提供包括仪表盘可视化在内的所有报表类型适应型流程化报表制作Cognos 8 BI报表可以创建和解释报表所用的时间。

业务用户不必了解数据库逻辑和电脑语言。

Cognos 8 BI报表可以让作者通过将数据和格式元素拖放到一个“空白页”上来创建报表。

对象在报表中以层次形式排列。

就像一个文字处理文档或Web页面一样,用户的报表会自动调整大小以便适合输出格式和介质。

Cognos制作报表--基本范例

Cognos制作报表--基本范例

1COGNOS的使用1.1模型定义1,打开Frame Manager程序,如下图:2,新建一个项目,建完后,打开该项目,如下图:3,在界面左边中选择“Packages”,然后单击右键新建一个包。

按照提示一步步做,其中有一步是从数据库的表选所要用到的表,打勾为选用。

4,点击”Diagram”显示表,但表之间还没有建立联接关系,通过建立各表关系后如下图5,然后将该包发布,点击右键该包选择“Publish Package”将其发布。

1.2模型的物理和逻辑定义1,模型定义的规范:将模型分为2个部分,分别为物理层和逻辑层,物理层为从数据源引入表的物理定义和连接关系,逻辑层为业务视角下的逻辑定义。

2,物理层的建立:根据数据分析,设计模型中需创建的物理表,以便尽可能的提高查询语句的运行效率(比较理想的结构是星形结构,一个中间表和多个物理维表)。

在根名字空间(和数据源同名)下,建立一个名为物理层的目录,在物理层文件夹下执行Run Metedate Wizard将数据源中相关的物理表引入这个目录,然后将这些表建立连接关系,建议不要有Orphan表。

如下图:3,逻辑层的定义:在根名字空间下,建立一个名为逻辑层的目录,在逻辑层文件夹下生成Query Subject,Query Subject的字段都是根据业务逻辑从物理层从引入,建议字段名都为中文。

逻辑层中的表为事实表和维表的结构,在事实表中包含维度的编码值和指标的值,维表中包括每个维度上编码值和其名称的对应关系。

也可以根据需要建立Regular Dimension(3.4说明),在逻辑层中不要建立逻辑表之间的关系。

如下图:4,物理层和逻辑层的建立是灵活的,上面说的只是简单的结构,可以根据需要建立多层次的名字空间,不同的名字空间定义不同的物理层和逻辑层。

1.3模型设计的一些技术要点1,首先要了解数据库表的定义和业务需求,以便将报表设计所关联的物理表引入到物理层中。

2,在物理层建立关系要清楚了解表中KEY值的定义和维表与中间表之间的关系,关系中的对应(1对多、多对多)要设置清楚,可以通过察看Determinants来决定,最好咨询数据库设计人员。

COGNOS报表维护手册(打印)

COGNOS报表维护手册(打印)

目录第一章编写目的 (2)第二章资产负债管理报表简介 (2)第三章报表目录结构 (2)3.1实际目录 (2)3.2虚拟目录 (3)第四章报表制作流程 (3)4.1编写程序 (3)4.2在I MPROMPTU中连接数据库 (3)4.3制作数据模型生成数据立法体 (14)4.4设置报表发表目录 (29)4.5在P OWER P LAY中制作报表 (33)4.6报表发布 (38)第五章报表用户及权限设置 (39)5.1添加用户 (39)5.2设置角色 (44)5.3建立用户和角色之间的关系 (44)5.4用户及角色的备份与恢复 (45)5.5为报表设置权限 (49)第六章登陆COGNOS查询报表流程 (51)6.1登陆C OGNOS修改报表设置 (51)6.2功能键说明 (59)第七章报表批处理维护 (62)7.1报表批处理简介 (62)7.2报表批处理维护 (62)第一章编写目的本文阐述了资产负债管理报表的维护方法,以及用Cognos制作报表的流程和如何在WEB上查看、修改报表。

第二章资产负债管理报表简介资产负债管理系统中的一部分报表是通过Cognos的报表查询分析系统发布的。

现有日常统计分析工作较多使用EXCEL报表系统,只能通过手工从业务系统中收集数据,进行一些简单、运算量小的静态汇总与分析。

与EXCEL相比,Cognos属于侧重数据分析的商业智能管理系统,能够直接从数据库获取原始数据,根据事先设定的表单自动完成报表编制工作。

另外该系统还有强大的报表编辑、校验、查询和图形功能,能轻松实现数据分拆、检查和直观多维度实时查询。

在Cognos系统中,用户通过IE浏览报表和报表图形。

系统同时允许用户调整报表图形,从多角度观察和分析报表。

Cognos系统组件之间的关系:第三章报表目录结构报表的目录结构分为两种:一个是实际目录,另一个是虚拟目录。

实际目录是指报表文件在计算机中的存储位置(文件存储路径),虚拟目录是指在Cognos中报表的发布路径(制作方法在第四章四节中详细说明)。

cognos使用手册

cognos使用手册

COGNOS使用1. 包的制作1.1 Framework的使用:1.1.1 首先,打开Framework1.1.2 打开后,点新建一个工程。

1.1.3 打开后,弹出一个界面。

1处是填写工程的名字,要按规范来。

2处是选择存放的地址,都统一存在一起,你要知道存在哪了。

1.1.4 点击OK后,弹出一个输入用户名和密码的界面:用户名:dcuser密码:dcuser1.1.5 点击ok后,弹出一个界面选择中文,然后确定。

1.1.6 弹出的界面选择Date Source,,选择NEXT。

1.1.7 弹出的界面选择SDDM,然后点击NEXT。

1.1.8 弹出的界面选择你要做展现所需要的表,然后点击NEXT。

1.1.9 弹出的界面,把第一个勾选掉,然后点击Import。

1.1.10 弹出的界面,直接选择FINISH。

1.2 包的制作1.2.1 点击Diagram,进入后连接表关系(注:副表拉到主表)。

上面这个界面直接点击确定。

1.2.2 然后把各个表名以及字段名改为中文(具体命名方法与各专业有关,都是有相关规范的)。

1.2.2.1 特别:下面我讲下在表中新增一个字段1.先双击表:2.然后,弹出一个界面:点击上面栏,第二个:再点击ADD新增一个字段:此图的例子是新建一个叫做“月份”的字段,字段是从“MONTH_ID”这个字段截取出来的。

MONTH_ID—>200701新增的字段:月份 01月语句:substr(cast_char([SDDM].[TEST_DA TE_TIME].[MONTH_ID] ),5,2)||'月'1.2.3 然后点击新建一个包。

1.2.4 弹出的界面输入包的名字。

(都是有相关规范的,不要乱起,现在做的都要起成类似“练习_XXX”之类的)然后点击NEXT。

1.2.5 然后选择你要发布的表,点击NEXT.1.2.6 一直NEXT,然后FINISH。

弹出的界面选择Yes。

Cognos常用操作手册

Cognos常用操作手册

Cognos常用操作手册1.模型的更改当需求有变动,需更改模型的时候,首先打开framework Manager ,然后选中要更改的模型。

当新引用一张表的时候,右键物理层(所有引进的原表都放在物理层,不做任何改动),选中Run Metadata Wizard ,单击。

在弹出的窗口中选中Data Sources ,然后Next选中数据源,单击Next选中OCRMINST展开,展开后选中所要添加表的表名选中后,选择下面的的第一项import and create a unique name ,点击确定去掉前面的钩,不把表所带的任何关系引进来(一般都是引进表之后,自己建立关系)点击import后,导入之后点击finish。

这样就完成表的导入。

接下来完成对表的汉化(翻译),右键逻辑层(对表进行一些加工,抽取有用的字段,过滤所需要的数据等等)选择creat—>Query Subject。

填写表名,单击ok点击后拖拽到右边即可,选好后ok。

如果要对某个字段进行加工计算时(如通过汇率转换币种),单击右下角的add填写字段名称,选好加工字段后,左边的标签切换到Funotions(一些常用的函数),个字段也可以直接翻译。

接下来是展示层(就是打包后能给报表制作人员看的部分),首先在根目录ocrm下,右键create—>Namespace(这是在建模型时为了划分不同的主题,而建多个namespace,但是如果添加的表属于某个名字空间下,那么直接加到他的目录下,不用新建一个新的namespace。

如果是要单独成立一个主题,那么就需要新建一个namespace),建好namespace或选好namespace后,右键单击新建一个Query Subject,之后的步骤跟上面在逻辑层汉化一张表的步骤一样,唯一不同的就是不需要再进行一次汉化了。

这样一张新表从数据源中就引到模型中,进行了汉化和展示。

2.表与表之间建立关系选中两张要建关系的表,右键单击选中Create Relationship,选好相关联的字段,和关系类型(1:1&1:n&n:1…)确定3.切换的数据源如果数据源改变,模型也可以切换数据源,但要保证所切换的数据源要有与模型里的表相同的表名。

IBM Cognos Dynamic Cubes V11.0.0 用户指南说明书

IBM Cognos Dynamic Cubes V11.0.0 用户指南说明书

IBM Cognos Dynamic Cubes V11.0.0用户指南IBM©产品信息本文档适用于 IBM Cognos Analytics V11.0.0,并且还可能适用于后续发行版。

版权Licensed Materials-Property of IBM©Copyright IBM Corp.2012,2018.US Government Users Restricted Rights–Use,duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.IBM、IBM徽标和 是 International Business Machines Corp.在全球许多管辖区域注册的商标或注册商标。

其他产品和服务名称可能是 IBM或其他公司的商标。

IBM商标的当前列表可以在 Web上的"Copyright and trademark informa-tion"中获取,网址为:/legal/copytrade.shtml。

以下术语是其他公司的商标或注册商标:v Adobe、Adobe徽标、PostScript和 PostScript徽标是 Adobe Systems Incorporated在美国和/或其他国家或地区的注册商标或商标。

v Microsoft、Windows、Windows NT和 Windows徽标是 Microsoft Corporation在美国和/或其他国家或地区的商标。

v Intel、Intel徽标、Intel Inside、Intel Inside徽标、Intel Centrino、Intel Centrino徽标、Celeron、Intel Xeon、Intel SpeedStep、Itanium和 Pentium是 Intel Corporation或其子公司在美国和其他国家或地区的商标或注册商标。

中国建设银行Cognos报表开发应用手册

中国建设银行Cognos报表开发应用手册

中国建设银行C o g n o s报表开发应用手册信息技术管理部厦门开发中心7/18/2007中国建设银行Cognos 报表开发应用手册第 1 页 共 70 页修改记录中国建设银行Cognos 报表开发应用手册第 2 页 共 70 页目录1. 前言 ......................................................................................................................... 5 1.1. 编写目的 ·········································································································· 5 1.2. 参考文档 ·········································································································· 5 1.3. 预期读者 ·········································································································· 5 1.4. 术语定义 ·········································································································· 5 2. COGNOS 简介 ......................................................................................................... 6 2.1. 商务智能简介 ·································································································· 6 2.2. Cognos 功能简介 ····························································································· 6 2.3. Cognos 组件简介 ····························································································· 6 2.4. Cognos Connection 简介 ················································································· 7 3. QUERYSTUDIO 开发手册 ...................................................................................... 10 3.1. QueryStudio 简介 ·························································································· 10 3.2. 创建QueryStudio 报表 ················································································· 13 3.3. 对列表中的数据进行处理 ············································································ 16 3.3.1. 数据汇总 ································································································· 16 3.3.2. 格式化数据 ····························································································· 17 3.3.3. 数据加工计算 ························································································· 18 3.3.4.追溯 (19)3.4. 定义条件样式 ································································································ 20 4. REPORTSTUDIO 开发手册 .................................................................................... 23 4.1. ReportStudio 简介 ························································································· 23 4.2. ReportStudio 组件 ························································································· 23 4.2.1. 报表页面 ································································································· 23 4.2.2. 查询 ········································································································· 25 4.2.3. 变量 ········································································································· 26 4.2.4.列表和交叉表 (27)4.3. 使用RS 制作报表 (28)中国建设银行Cognos 报表开发应用手册第 3 页 共 70 页4.3.1. 使用RS 制作报表流程 ........................................................................... 28 4.3.2. 操作步骤 ................................................................................................. 31 4.4. 项目中常用的做法 . (36)4.4.1. 对数据进行分组 ····················································································· 36 4.4.2. 对数据进行排序 ····················································································· 37 4.4.3. 添加汇总信息 ························································································· 37 4.4.4. 添加页眉页脚 ························································································· 38 4.4.5. 添加头标脚标 ························································································· 38 4.4.6. 添加追溯 ································································································· 39 4.4.7. 创建过滤表达式 ····················································································· 40 4.4.8. 报表钻取 ································································································· 42 4.4.9.函数的应用 (43)5. ANALYSISSTUDIO 开发手册 .................................................................................. 45 5.1. AnalysisStudio 简介 ....................................................................................... 45 5.2. 基本建表操作 ................................................................................................ 45 5.2.1. 拖拽式操作 ............................................................................................. 45 5.2.2. 项目的隐藏、保留和排除 ..................................................................... 45 5.2.3. 展开操作 ................................................................................................. 47 5.2.4. 钻取操作 ................................................................................................. 48 5.2.5. 图表制作 ................................................................................................. 49 5.2.6. 上下文过滤操作 ..................................................................................... 49 5.2.7. 自定义子集操作 ..................................................................................... 49 5.2.8. 表头嵌套操作 ......................................................................................... 50 5.3. 自定义计算项 (51)5.3.1. 算术运算(A RITHMATIC ) ........................................................................ 51 5.3.2. 占比计算 ................................................................................................. 52 5.3.3. 分析型计算 ............................................................................................. 55 5.3.4. 评级 ......................................................................................................... 56 5.3.5. 常量添加(单个项目添加) ................................................................. 60 5.4. 其它操作 .. (61)5.4.1. 显示内容设置 ························································································· 61 5.4.2.过滤设置 (63)中国建设银行Cognos报表开发应用手册6.附件 (69)第4 页共70 页中国建设银行Cognos 报表开发应用手册第 5 页 共 70 页1. 前言1.1. 编写目的《中国建设银行Cognos 报表开发应用手册》是Cognos 报表开发应用的使用说明手册,其中涉及了QueryStudio 、ReportStudio 和AnalysisStudio 这三个报表工具的简介和使用方法,为建行Cognos 报表开发和应用人员提供参考和指导。

Cognos操作手册

Cognos操作手册

Cognos产品操作手册贵州电网项目组2007年1月COGNOS系统操作手册利用Cognos进行数据展现的过程包括建立信息目录,建立imr报表,生成iqd文件,建立展现模型,生成PowerCube,发布PowerCube,制作展现报表,发布到Web Server和展现这一系列的过程。

Cognos系统的操作包括三个主要产品以及一些管理员工具的维护工作。

下面将对Cognos产品的操作进行一个简单的介绍。

1 Cognos产品介绍1.1 介绍Cognos产品的组成现阶段使用的Cognos产品主要包括Impromptu AdministratorAccess Manager AdministrationPowerPlay TransformerPowerPlay Enterprise Server AdministrationUpfront Server AdministrationPowerPlay1.2 工作流程●确定用户需求和数据源●建立中间库,提数●建立查询报表(Impromptu)●生成数据查询文件(Impromptu)●建立查询模型(Transformer)●生成多维数据立方体(Transformer )●发布(PowerPlay Enterprise Server)●数据展现(PowerPlay/IE)2 Impromptu产品Improptu是一个基于Windows桌面的强有力的交互数据报表工具。

生成报表并发布(需要另外购买Cognos IWR)使用Improptu可以完成以下功能:1)从各种数据源查询数据,包括桌面、LAN、Clint/Server环境;2)从数据库中查询数据,而不需要有专业编程知识;3)生成报表并发布。

Impromptu 是企业级、交互式数据库查询和报表生成工具。

该产品有如下特点:. 信息管理员通过定义Catalog(信息目录)将数据库的数据结构按业务用户的需求和数据访问规则来展现,此类似于数据仓库的数据视图,使用户面对的不是后台复杂的数据结构和技术细节,而是自己熟悉的业务术语、数据结构。

Cognos-8-ReportStudio-操作手册_精选

Cognos-8-ReportStudio-操作手册_精选

Reportstudio操作手册Reportstudio具有强大的报表制作功能和展示功能的组件。

它所展现的报表基于Framework定制出的数据结构,Reportstudio是基于Web的即席查询报表制作工具,不用安装任何插件,用户可以在浏览器中制作报表,格式灵活,元素丰富,并且可以制作例如KPI,地图,仪表盘等特色报表。

1、编辑模式打开报表进入公共文件夹,打开要查询分析的数据包,例如户外销售与零售商。

点击一个Reportstudio报表右侧的按钮,如下图所示红圈处。

则打开一个新的浏览器,进入该报表的编辑模式:2、新建报表。

左上角三个按钮分别是新建,打开,保存,点击新建:弹出新建提示框,在数据包位置是现在使用的数据包名称,点击数据报右侧的红圈处,可以转换成其他的数据包,也可以转换数据报使用的语言,如英语改为中文。

新建的表样格式有空白,列表,交叉表,图表等等,使用熟练以后可以新建一个空白表,然后把需要的插件,如列表,交叉表,图表等手工加入进来。

下面我们以新建一个空白表为例子,选择空白,点确定:如上图,默认可插入对象选择深红色圈处“来源”,表示在可插入对象一栏显示现在数据包中已经定义好的数据。

点中第二个红圈处“数据项”时,可插入对象栏显示现在报表查询中已经有的数据项,第三个红圈处是“工具箱”。

左下角是属性栏目,表示当前选中对象的属性,一般包括条件,方框,颜色背景,字体等,当然,不同的对象有着各自不同的属性,上图中选中的区域为空白区域。

3、创建页眉,创建页脚,加标题。

1、创建页眉选中空白区域后,右上角红圈处分别为,给列表加页眉页脚,创建页眉,创建页脚。

点击创建页眉,如下图所示,页眉有了以后,选中工具箱:2、创建标题在工具箱里选中文本项目,拖动它到右侧的页眉里面。

如下图所示:单击选中“双击以编辑文本”,则左下角属性栏里显示该文本项目的属性,可以双击以编辑文本,也可以在属性栏目中红圈部分点开,编辑要显示的文本。

Cognos8 ReportStudio完全手册

Cognos8 ReportStudio完全手册

27
Report Studio交叉表界面
28
定义交叉表
行、列、度量各自选好(可以嵌套),并对度量设置了汇集。
29
查看交叉表
30
交叉表的灵活演变
31
交叉表的灵活演变
32
交叉表的灵活演变
33
交叉表的灵活演变
34
交叉表的灵活演变
35
交叉表的灵活演变
36
Report Studio图表型报表界面
要想通过提示选择 其他值,只需选后 按一下“重新提示” 按钮。
83
加入“选择和搜索提示”
分两步进行:先按某种搜索规则确定一个 选择范围,然后再选择。
84
“选择和搜索提示”的参数和表达式
提示用参数值定义一个过滤表达式, 对指定数据项的值进行过滤。 [产品系列] in ?Parameter1?
在提示中要定义一个 参数,用户选择的值 由这个参数来接收。
22
在指定列上加汇集
城市小计 国家合计 选中一个列后按工具条上 的Aggregate按钮。 或改属性窗格的Fact Item 大项下的Aggregate Function 总计
List Cell─ Font&Text 选择左右对齐方式
23
汇集(Aggregate)展现
城市小计 国家合计
24
两级排序
“提示按钮”的类型: Cancel Back Next Finish Reprompt 82
这样每次更换参数值时不必重新运行报 表,只要按这个按钮即可。
带值提示的报表运行
尽管提示的过滤表达式中使用 的是[产品系列代码] ,但此处 展开提示的下拉列表看到的却 是“产品系列”的名称。报表已 按照“产品系列”过滤。

COGNOS CONFIGURATION 用户指南

COGNOS CONFIGURATION 用户指南
版权
版权所有 © 2008 Cognos ULC(以前的 Cognos Incorporated)。Cognos ULC 为 IBM 公司。 Portions of Cognos ULC software products are protected by one or more of the following U.S. Patents: 6,609,123 B1; 6,611,838 B1; 6,662,188 B1; 6,728,697 B2; 6,741,982 B2; 6,763,520 B1; 6,768,995 B2; 6,782,378 B2; 6,847,973 B2; 6,907,428 B2; 6,853,375 B2; 6,986,135 B2; 6,995,768 B2; 7,062,479 B2; 7,072,822 B2; 7,111,007 B2; 7,130,822 B1; 7,155,398 B2; 7,171,425 B2; 7,185,016 B1; 7,213,199 B2; 7,243,106 B2; 7,257,612 B2; 7,275,211 B2; 7,281,047 B2; 7,293,008 B2; 7,296,040 B2; 7,318,058 B2; 7,325,003 B2; 7,333,995 B2. Cognos 和 Cognos 徽标是 Cognos ULC(以前的 Cognos Incorporated)在美国和/或其它国家/地区的商标。IBM 和 IBM 徽标是 International Business Machines 公司在美国和/或其它国家/地区的商标。Java 和所有基于 Java 的商标是 Sun Microsystems, Inc. 在美国和其它国家/ 地区的商标。其它公司、产品或服务的名称可能是其他所有者的商标或服务标志。 尽管我们已竭力确保此文档中信息的准确和完整,但仍可能存在某些印刷错误或技术差错。对于因使用此文档中包含的信息而造成的各种损 失,Cognos 不承担任何责任。 此文档提供了发布日期。此文档中包含的信息如有更改,恕不另行通知。对此文档中所含信息的任何改进或更改将在后续版本中进行说明。 此文档包含 Cognos 的专有信息。保留所有权利。未事先经过 Cognos 的书面同意,不得以任何形式或通过任何手段复制、影印、翻印、传播 此文档的任何部分,或者将其存储于检索系统中或翻译成其它语言。

cognos报表开发操作手册

cognos报表开发操作手册

Cognos 8.3报表开发操作手册1. 安装cognos8.3客户端, Cognos Modeling 8.3 (windows),Cognos Transformer 8.3 (windows)并配置cognos configuration,将localhost改成服务器对应IP,如下图:2.在framework中建立一个project数据源时选择’ODS_APP’,(本机oracle客户端应有链接),导入相应表结构:3.在project中按主题建立相应的名字空间放置相应表结构,并将对应字段更改成中文名称:4.构建数据模型,事实表与维表关联,注意‘等联接’造成数据丢失问题。

4.建立一个用于建立cube的查询:5.选择建立cube的维:6.将ODS_APP的Query Processing改成Limited Local。

7.发布包,包的命名:门户路径+主题名称。

8.选择要发布的包中所包含的表9选择包的存放路径:10.Transfromer做cube,datasource type选择Cognos Package:11.选择做cube的数据包,并选择相应维:12.菜单栏File->Model Properties选择。

13.菜单栏File->Preferences选择cube日的存放路径,并刷新cube:14.调整各维数据的顺序,并保存mdl:15.将文件上传到ftp://132.108.69.26相应目录,每个用户都有自已相应账号tjbbxx/tjbbxx123。

16.Cube发布,在69.26上打开mdl,刷新生成mdc到相应的目录(注意菜单项File->Model Properties中cube code page中选择UTF-8)。

17.cube数据源链接命名:mdc_门户报表路径_mdc名称18.将cube放置在相应的目录就OK了。

19登陆http://132.108.69.26/cognos8/在’启动’在点击’Analysis Studio’选择所做的cube就可以做报表了。

IBM Cognos Express 10.2.1 用户指南说明书

IBM Cognos Express 10.2.1 用户指南说明书

IBM Cognos Express Framework Manager Version10.2.1User GuideNoteBefore using this information and the product it supports,read the information in“Notices”on page547.Product InformationThis document applies to IBM Cognos Express Version10.2.1and may also apply to subsequent releases. Licensed Materials-Property of IBM©Copyright IBM Corporation2005,2013.US Government Users Restricted Rights–Use,duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.Contents Introduction (xxiii)Chapter1.What's new? (1)New features in10.2.1 (1)New features in10.2 (1)Changed features in10.2 (1)New features in10.1.1 (2)Changed features in10.1.1 (2)New features in10.1.0 (3)Removed features in10.1.0 (5)Chapter2.Getting started with Framework Manager (7)Analyzing the problem (7)Building IBM Cognos business intelligence applications (8)Objects you will use (9)Creating projects (12)Opening projects (13)The project page (13)The Project Viewer (14)Changing options for projects (16)Reordering objects (17)The Explorer tab (18)The Diagram tab (18)The Dimension Map tab (19)The Properties pane (20)The Tools pane (21)Naming conventions for objects in a project (23)Sample models (24)The Great Outdoors Warehouse model (25)The Great Outdoors Sales model (26)Chapter3.Model Design Accelerator (27)Explorer tree (27)Explorer diagram (28)The Model Accelerator workspace (29)Query Subject Diagram (29)Using the Relationship Editing Mode (29)Model Warning view (30)Changing the settings for diagrams (31)Creating a project (31)The star schema (32)Managing your star schema (33)Chapter4.Importing metadata from data sources (35)Data sources (35)Data source security (35)Types of data source connections (36)Native metadata (36)Data source connections (37)Creating data source connections (40)Steps to create a data source connection (41)Importing metadata (42)Importing metadata from relational databases (42)Importing metadata from IBM Cognos models (44)©Copyright IBM Corp.2005,2013iiiImporting metadata from IBM Cognos DecisionStream or IBM Cognos Data Manager (44)Importing from IBM metadata sources (48)Importing metadata from third party metadata sources (51)Troubleshooting metadata from other sources (56)Importing metadata using XML as a data source (58)Importing objects with the same name (58)Chapter5.Modeling relational metadata (61)Setting up the import view (61)Setting up the business view (61)Relationships (62)Cardinality (63)Modifying a relationship (66)Creating complex expressions for a relationship (66)Creating relationships (67)Creating a relationship shortcut (67)Detecting and generating relationships (68)Query subjects (69)Data source query subjects (69)Model query subjects (71)Stored procedure query subjects (72)Determinants (76)Creating model query subjects based on existing objects (79)Viewing related objects (80)Creating query sets (80)Testing query subjects or query sets (84)Validating query subjects (86)Updating query subjects (87)Converting query subjects into dimensions (88)Converting model query subjects into data source query subjects (88)Editing the SQL (89)Changing the type of SQL (89)Changing how the SQL is generated (94)Dimensions (96)Normalized data sources (97)Creating regular dimensions (97)Sorting members of a level (103)Roles (104)Creating measure dimensions (106)Converting measures into query items (107)Scope relationships (107)Creating regular dimensions based on existing objects (108)Viewing related objects (109)Testing dimensions (109)Converting regular dimensions into query subjects (112)Multilingual metadata (112)Supporting multilingual metadata (112)Setting up a Multilingual Reporting Environment (113)Modeling with multilingual data sources (114)Using macros to model multilingual data (115)Adding a language to a project (115)Exporting translation tables (116)Importing translation tables (117)Example-create multilingual projects for relational metadata (117)Query items (119)Modifying how query items are aggregated (122)Formatting query items (130)Defining prompt controls (131)Converting query items into measures (136)Business rules (136)Creating calculations (136)iv IBM Cognos Express Framework Manager Version10.2.1:User GuideCreating filters (139)Applying filters (141)Example-showing the currency name for each country (142)Creating parameter maps (143)Example-Specifying language values for relational metadata (145)Creating session parameters (146)Using parameters with relational data source query subjects (147)Creating prompts with query macros (147)Organizing models (158)Creating star schema groups (158)Shortcuts (163)Creating folders or namespaces (166)Creating query item folders (167)Creating measure folders (168)Durable models (168)Creating a durable model (169)Testing a durable model (170)Analyzing models (171)Steps to analyze a model (175)Chapter6.Publishing packages (177)Verifying models or packages (177)Creating or modifying packages (179)Creating a package (180)Modifying a package (181)Security (181)Users,groups,and roles (182)Adding data security (182)Object security (184)Modifying package security (186)Specifying languages (187)Specifying languages for one package (187)Specifying languages for all packages (188)Setting suppression options (188)Externalized query subjects and dimensions (188)Publishing packages (191)Publishing packages based on OLAP data sources (193)Publishing packages by running scripts (194)Updating reports to use the latest version of packages (195)Chapter7.Project management (197)Metadata in your model (197)Exploring packages (197)Viewing the distribution of objects in packages (198)Creating model documentation (198)Multiuser modeling (198)Branching and merging projects (199)Segmented and linked projects (205)External repository control (209)Metadata administration (209)Copying,moving,renaming,or deleting projects (210)Analyzing the impact of changes to packages (212)Remapping objects to new sources (214)Exporting metadata (215)Project reuse (216)Model portability (218)Synchronizing projects (225)Steps to synchronize (226)Query behavior (227)Governors (228)Contents vSpecifying where aggregate rollups are processed (234)Improving performance by setting the query processing type (235)Improving performance by reusing cached data when running a report (236)Specify transaction modes (237)Selecting function sets (238)Quality of service (239)Controlling and optimizing queries (241)Chapter8.Guidelines for Modeling Metadata (243)Understanding IBM Cognos Modeling Concepts (243)Relational Modeling Concepts (243)Model Design Considerations (253)Dimensional Modeling Concepts (261)Building the Relational Model (263)Defining the Relational Modeling Foundation (263)Defining the Dimensional Representation of the Model (271)Organizing the Model (275)Chapter9.The SQL Generated by IBM Cognos Software (279)Understanding Dimensional Queries (279)Single Fact Query (279)Multiple-fact,Multiple-grain Query on Conformed Dimensions (281)Modeling1-n Relationships as1-1Relationships (283)Multiple-fact,Multiple-grain Query on Non-Conformed Dimensions (285)Resolving Ambiguously Identified Dimensions and Facts (289)Query Subjects That Represent a Level of Hierarchy (289)Resolving Queries That Should Not Have Been Split (291)Chapter10.Upgrading models (295)Verifying the models before upgrading (295)Opening and upgrading the models (295)Upgrade and governors (296)Upgrade and data types (296)Verifying and repairing the upgraded IBM Cognos ReportNet models (297)Converting dimension information to either determinants or dimensions (297)Selecting and repairing objects in the upgraded IBM Cognos ReportNet models (300)Upgrading segmented and linked projects (301)Appendix A.Accessibility features (303)Accessibility features in Framework Manager (303)Keyboard shortcuts for Framework Manager (303)Keyboard shortcuts for Model Design Accelerator (303)IBM and accessibility (304)Appendix B.Troubleshooting (305)Unable to Compare Two CLOBs in Oracle (305)An Out of Memory Error with ERWin Imported Metadata (305)Framework Manager Cannot Access the Gateway URI (305)Object Names Appear in the Wrong Language (306)Full Outer Joins in Oracle Return Incorrect Results (306)Error When Testing Query Subjects in a Model Imported from Teradata (306)Error for Type-In SQL Query Subject (307)QE-DEF-0259Error (307)Externalized Key Figures Dimension Retains Old Prompt Value (308)Older Models Display Level Object Security (308)Exporting a Framework Manager Model to a CWM File Fails With Error MILOG.TXT was not found (308)Difference in SQL for Inner Joins After Upgrading to IBM Cognos BI,Version8.3and Later (308)Full Outer Joins Not Sent to Oracle9i and10GR1 (309)Unexplained Discrepancies in Number Calculations (309)Searching for values might return unexpected results (310)vi IBM Cognos Express Framework Manager Version10.2.1:User GuideAppendix ing the expression editor (311)Operators (311)( (311)) (311)* (311), (311)/ (311)|| (312)+ (312)- (312)< (312)<= (312)<> (312)= (312)> (312)-> (313)>= (313)and (313)auto (313)between (313)case (314)contains (314)currentMeasure (314)default (314)distinct (314)else (314)end (315)ends with (315)escape (315)for (315)for all (315)for any (315)for report (316)if (316)in (316)in_range (316)is missing (317)is null (317)is not missing (317)is not null (317)like (317)lookup (318)not (318)or (318)prefilter (318)rows (319)rows (319)starts with (319)then (319)when (319)Summaries (319)Statistical functions (319)aggregate (327)average (328)count (328)maximum (328)median (329)minimum (329)moving-average (329)moving-total (330)percentage (330)Contents viipercentile (331)quantile (331)quartile (332)rank (332)running-average (333)running-count (334)running-difference (334)running-maximum (335)running-minimum (335)running-total (336)total (336)Member Summaries (337)aggregate (337)average (337)count (337)maximum (338)median (338)minimum (338)percentage (338)percentile (339)quantile (339)quartile (339)rank (339)standard-deviation (339)standard-deviation-pop (340)total (340)variance (340)variance-pop (340)Constants (340)date (340)date-time (340)time with time zone (340)timestamp with time zone (340)interval (341)interval year (341)interval month (341)interval year to month (341)interval day (341)interval hour (341)interval minute (341)interval second (341)interval day to hour (341)interval day to minute (341)interval day to second (341)interval hour to minute (341)interval hour to second (341)interval minute to second (341)null (341)number (341)string (342)time (342)Constructs (342)if then else (342)in_range (342)search case (343)simple case (343)Business Date/Time Functions (343)_add_days (343)_add_months (344)_add_years (344)_age (345)viii IBM Cognos Express Framework Manager Version10.2.1:User Guide_day_of_week (345)_day_of_year (345)_days_between (345)_days_to_end_of_month (346)_first_of_month (346)_last_of_month (346)_make_timestamp (347)_months_between (347)_week_of_year (347)_years_between (348)_ymdint_between (348)Aster Data (348)Aster Data String (348)Aster Data Data Type Formatting (350)Aster Data Math (350)Aster Data Trigonometry (351)ascii (352)chr (352)current_schema (352)translate (352)date_trunc (353)version (353)DB2 (353)DB2Math (353)DB2Trigonometry (353)ascii (355)ceiling (355)char (355)chr (356)concat (356)date (356)day (356)dayname (357)dayofweek (357)dayofweek_iso (357)dayofyear (358)days (358)dec (358)decimal (358)difference (358)digits (359)double (359)event_mon_state (359)float (359)hex (359)hour (360)insert (360)integer (360)int (360)julian_day (361)lcase (361)left (361)length (361)locate (362)long_varchar (362)ltrim (362)microsecond (362)midnight_seconds (363)minute (363)month (363)monthname (363)Contents ixquarter (364)radians (364)repeat (364)replace (364)right (365)round (365)rtrim (365)second (365)sign (366)smallint (366)soundex (366)space (366)substr (366)table_name (367)table_schema (367)time (367)timestamp (367)timestamp_iso (367)timestampdiff (368)to_char (368)translate (368)trunc (369)truncate (369)ucase (369)value (369)varchar (370)week (370)year (370)Greenplum (370)Greenplum String (370)Greenplum Data type formatting (372)Greenplum Math (373)Greenplum Trigonometry (373)ascii (374)chr (375)current_database (375)current_schema (375){current_user} (375){session_user} (375)translate (375)date_trunc (375)version (375)Informix (376)Informix Math (376)Informix Trigonometry (376)cardinality (377)char_length (377)concat (377)date (378)day (378)extend (378)hex (378)initcap (378)length (378)lpad (379)mdy (379)month (379)nvl (379)octet_length (379)replace (379)round (380)x IBM Cognos Express Framework Manager Version10.2.1:User Guiderpad (380)substr (380)to_char (381)to_date (381)trunc (381)weekday (381)year (381)MS Access (381)MS Access Cast (381)MS Access Math (382)MS Access Trigonometry (383)ascii (383)ceiling (383)chr (383)concat (383)curdate (384)curtime (384)dayname (384)dayofmonth (384)dayofweek (384)dayofyear (384)hour (385)instr (385)lcase (385)left (385)length (385)locate (385)ltrim (386)minute (386)month (386)monthname (386)now (386)position (386)quarter (387)right (387)round (387)rtrim (387)sign (387)space (388)substr (388)substring (388)truncate (388)ucase (388)week (389)year (389)MySQL (389)MySQL String (389)MySQL Math (390)MySQL Trigonometry (391)ascii (392)database (392)schema (392)session_user (392)system_user (392)version (393)Netezza (393)Netezza Math (393)Netezza Trigonometry (393)Netezza Fuzzy (394)Netezza Phonetic (394)ascii (395)Contents xichr (395)decode (395)initcap (396)instr (396)lpad (396)ltrim (396)months_between (396)next_day (396)nvl (397)round (397)rpad (397)rtrim (397)substr (397){current_db} (398){current_user} (398){session_user} (398)to_char (398)to_date (398)to_number (398)translate (398)date_trunc (398)trunc (399)version (399)Oracle (399)Oracle Math (399)Oracle Trigonometry (399)add_months (400)ascii (401)ceil (401)char_length (401)chr (401)concat (401)decode (402)dump (402)greatest (402)initcap (402)instr (402)instrb (402)least (403)length (403)lengthb (403)lpad (403)ltrim (403)months_between (403)new_time (404)next_day (404)nls_initcap (404)nls_lower (404)nls_upper (404)nvl (404)replace (405)round (405)rpad (405)rtrim (405)sign (406)soundex (406)substr (406)substrb (406){sysdate} (406)to_char (407)to_date (407)xii IBM Cognos Express Framework Manager Version10.2.1:User Guideto_number (407)translate (407)trunc (407)trunc (408){user} (408)vsize (408)Paraccel (408)Paraccel String (408)Paraccel Data type formatting (409)Paraccel Math (409)current_database (409)current_schema (409){current_user} (410){session_user} (410)translate (410)version (410)Postgres (410)Postgres String (410)Postgres Data type formatting (412)Postgres Math (412)Postgres Trigonometry (413)ascii (414)chr (414){current_db} (415){current_catalog} (415){current_schema} (415){current_user} (415){session_user} (415)translate (415)date_trunc (415)version (415)Red Brick (415)ceil (415)concat (416){current_user} (416)date (416)dateadd (416)datediff (416)datename (416)dec (417)decimal (417)decode (417)float (417)ifnull (417)int (417)integer (417)length (418)lengthb (418)ltrim (418)nullif (418)positionb (418)real (419)round (419)rtrim (419)sign (419)string (419)substr (420)substrb (420)time (420)timestamp (420)timestamp (420)Contents xiiito_char (420) (421)Date Functions (421)convertCurrency (424)convertTimezone (424)SQL Server (424)SQL Server Math (424)SQL Server Trigonometry (425)ascii (426)char (426)charindex (426){current_user} (427)datalength (427)dateadd (427)datediff (427)datename (427)datepart (428)day (428)difference (428)getdate (429)isnull (429)left (429)ltrim (429)month (429)patindex (429)replace (430)replicate (430)reverse (430)right (430)round (430)rtrim (431)sign (431)soundex (431)space (431)str (431)stuff (431)year (432)Sybase (432)Sybase Math (432)Sybase Trigonometry (432)ascii (434)char (434)charindex (434)datalength (434)dateadd (434)datediff (435)datename (435)datepart (435)day (436)difference (436)getdate (436)left (436)ltrim (437)month (437)patindex (437)rand (437)replicate (437)reverse (437)right (437)round (438)rtrim (438)xiv IBM Cognos Express Framework Manager Version10.2.1:User Guidesoundex (438)space (438)str (438)stuff (439)substring (439)to_unichar (439)uhighsurr (439)ulowsurr (439)uscalar (440)year (440)Teradata (440)Teradata Trigonometry (440)account (442)add_months (442)bytes (442)case_n (442)char2hexint (442)characters (443)database (443)date (443)format (443)index (443)log (443)nullif (443)nullifzero (443)profile (444)random (444)role (444)session (444)soundex (444)substr (444)time (445)type (445)user (445)vargraphic (445)zeroifnull (445)Vectorwise (445)Vectorwise String (445)Vectorwise Math (446)Vectorwise Trigonometry (447){initial_user} (448){session_user} (448)numeric_trunc (448)Vertica (448)Vertica String (448)Vertica Data type formatting (449)Vertica Math (450)Vertica Trigonometry (450)ascii (452)chr (452)current_database (452)current_schema (452){current_user} (452){session_user} (452)translate (452)date_trunc (453)version (453)Macro Functions (453)+ (453)_add_days (453)_add_months (454)Contents xv_add_years (454)array (455)csv (455)dq (456)getConfigurationEntry (456)grep (456)_first_of_month (456)_last_of_month (457)join (457)lstrip (457)prompt (458)promptmany (459)rstrip (459)sb (460)sq (460)sort (460)split (460)strip (461)substitute (461)timestampMask (462)toLocal (462)tolower (463)toupper (463)toUTC (464)unique (464)urlencode (465)CSVIdentityName (465)CSVIdentityNameList (465)CAMPassport (466)CAMIDList (466)CAMIDListForType (466)simple case (466)Common Functions (467)abs (467)cast (467)ceil (468)ceiling (468)char_length (468)character_length (469)coalesce (469)current_date (469)current_time (469)current_timestamp (470)exp (470)extract (470)floor (471)ln (471)localtime (471)localtimestamp (472)lower (472)mod (472)nullif (472)octet_length (472)position (473)power (473)_round (474)row (474)sqrt (475)substring (475)trim (475)upper (476)xvi IBM Cognos Express Framework Manager Version10.2.1:User Guidewidth-bucket (476)Trigonometric functions (476)Dimensional Functions (479)ancestor (479)ancestors (479)bottomCount (480)bottomPercent (480)bottomSum (481)caption (481)children (481)closingPeriod (482)cousin (482)completeTuple (483)currentMember (484)defaultMember (484)descendants (484)except (486)filter (486)firstChild (487)firstSibling (487)_format (487)emptySet (488)generate (488)head (488)hierarchize (489)hierarchy (489)item (490)intersect (490)lag (490)lastChild (491)lastPeriods (491)lastSibling (492)lead (492)level (493)levels (493)linkMember (494)members (494)nextMember (494)openingPeriod (495)order (495)ordinal (496)parallelPeriod (496)parent (497)periodsToDate (497)prevMember (498)member (498)nestedSet (499)set (499)siblings (499)tail (499)topCount (500)topPercent (500)topSum (501)tuple (501)union (501)roleValue (502)rootMember (503)rootMembers (503)subset (503)unique (504)value (504)Contents xviiReport Functions (504)Today (504)Now (504)AsOfDate (505)AsOfTime (505)ReportDate (505)ReportName (505)ReportPath (505)ReportDescription (505)ReportLocale (505)GetLocale (505)Locale (506)ReportProductLocale (506)ReportAuthorLocale (506)ReportSaveDate (506)ReportCreateDate (506)ReportID (506)ReportOutput (506)ReportOption (506)ServerName (507)ServerLocale (507)ModelPath (507)BurstKey (507)BurstRecipients (507)IsBursting (507)ParamNames (507)ParamName (508)ParamDisplayValue (508)ParamValue (508)ParamCount (508)RowNumber (508)PageNumber (508)PageCount (508)IsPageCountAvailable (508)HorizontalPageNumber (509)HorizontalPageCount (509)PageName (509)URLEncode (509)TOCHeadingCount (509)IsAccessible (509)ColumnNumber (509)IsCrosstabRowNodeMember (509)IsCrosstabColumnNodeMember (510)IsInnerMostCrosstabRowNodeMember (510)IsInnerMostCrosstabColumnNodeMember (510)IsOuterMostCrosstabRowNodeMember (510)IsOuterMostCrosstabColumnNodeMember (510)IsFirstColumn (510)IsLastColumn (510)IsLastInnerMostCrosstabColumnNodeMember (510)IsLastInnerMostCrosstabRowNodeMember (511)CubeName (511)CubeDescription (511)CubeCreatedOn (511)CubeDataUpdatedOn (511)CubeSchemaUpdatedOn (511)CubeIsOptimized (511)CubeDefaultMeasure (512)CubeCurrentPeriod (512)CellValue (512)InScope (512)xviii IBM Cognos Express Framework Manager Version10.2.1:User GuideData Type Casting Functions (512)_add_days (512)_add_months (512)_add_years (513)_age (513)_day_of_week (513)_day_of_year (513)_days_between (513)_days_to_end_of_month (514)_first_of_month (514)_last_of_month (514)_make_timestamp (514)_months_between (514)_week_of_year (515)_years_between (515)_ymdint_between (515)abs (515)ceiling (515)character_length (516)date2string (516)date2timestamp (516)date2timestampTZ (516)DTinterval2string (516)DTinterval2stringAsTime (516)exp (516)extract (517)floor (517)int2DTinterval (517)int2YMinterval (518)ln (518)lower (518)mapNumberToLetter (518)mod (518)nullif (518)number2string (518)octet_length (519)position (519)power (519)round (519)sqrt (519)status (520)string2date (520)string2double (520)string2DTinterval (520)string2int32 (520)string2int64 (520)string2time (520)string2timestamp (520)string2timestampTZ (521)string2YMinterval (521)substring (521)time2string (521)timestamp2date (521)timestamp2string (521)timestamp2timestampTZ (522)timestampTZ2date (522)timestampTZ2string (522)timestampTZ2timestamp (522)timeTZ2string (522)trim (522)upper (522)Contents xixYMinterval2string (523)Appendix D.Data formatting reference (525)Data Formatting Properties (525)"Not Applicable"Characters (525)Any Error Characters (525)Calendar Type (525)Clock (525)Currency (525)Currency Display (525)Currency Symbol (526)Currency Symbol Position (526)Date Ordering (526)Date Separator (526)Date Style (526)Decimal Separator (526)Digit Shaping (526)Digit Shaping (526)Display AM/PM Symbols (527)Display As Exponent (527)Display Days (527)Display Eras (527)Display Hours (527)Display Milliseconds (527)Display Minutes (527)Display Months (527)Display Months (527)Display Seconds (527)Display Time Zone (528)Display Weekdays (528)Display Years (528)Display Years (528)Divide By Zero Characters (528)Exponent Symbol (528)Group Size(digits) (528)International Currency Symbol (528)Mantissa(digits) (528)Maximum No.of Digits (528)Minimum No.of Digits (529)Missing Value Characters (529)Negative Pattern (529)Negative Sign Position (529)Negative Sign Symbol (529)No.of Decimal Places (529)Numeric Overflow Characters (529)Padding Character (529)Pattern (529)Percentage Symbol (529)Percent Scale(integer) (530)Scale (530)Secondary Group Size(digits) (530)Security Error Characters (530)Thousands Separator (530)Time Separator (530)Time Style (530)Time Unit (530)Use Thousands Separator (530)Zero Value Characters (531)xx IBM Cognos Express Framework Manager Version10.2.1:User GuideAppendix ing Patterns to Format Data (533)Pattern Guidelines (533)Date and Time Symbols (534)Decimal Format Symbols (541)Appendix F.Reserved words (543)Appendix G.XML data types (545)Notices (547)Glossary (551)A (551)B (551)C (552)D (553)E (553)F (554)G (554)H (554)I (554)J (554)L (554)M (554)N (555)O (555)P (556)Q (556)R (556)S (557)T (557)U (558)W (558)Index (559)Contents xxixxii IBM Cognos Express Framework Manager Version10.2.1:User GuideIntroductionIBM®Cognos®Framework Manager is a metadata modeling tool.A model is abusiness presentation of the information in one or more data sources.When youadd security and multilingual capabilities to this business presentation,one modelcan serve the needs of many groups of users around the globe.This document includes the procedures,examples,notes,tips,and otherbackground information to help you prepare a model for reporting and deployinga package.AudienceThis document is intended to help data modelers use IBM Cognos FrameworkManager.Before using Framework Manager,you should understand data modelingand how to write queries.Finding informationTo find IBM Cognos product documentation on the web,including all translateddocumentation,access one of the IBM Cognos Information Centers(/infocenter/cogic/v1r0m0/index.jsp).Release Notes arepublished directly to Information Centers,and include links to the latest technotesand APARs.You can also read PDF versions of the product release notes and installation guidesdirectly from IBM Cognos product disks.Forward-looking statementsThis documentation describes the current functionality of the product.Referencesto items that are not currently available may be included.No implication of anyfuture availability should be inferred.Any such references are not a commitment,promise,or legal obligation to deliver any material,code,or functionality.Thedevelopment,release,and timing of features or functionality remain at the solediscretion of IBM.Samples disclaimerThe Sample Outdoors Company,Great Outdoors Company,GO Sales,anyvariation of the Sample Outdoors or Great Outdoors names,and Planning Sampledepict fictitious business operations with sample data used to develop sampleapplications for IBM and IBM customers.These fictitious records include sampledata for sales transactions,product distribution,finance,and human resources.Any resemblance to actual names,addresses,contact numbers,or transactionvalues is coincidental.Other sample files may contain fictional data manually ormachine generated,factual data compiled from academic or public sources,or dataused with permission of the copyright holder,for use as sample data to developsample applications.Product names referenced may be the trademarks of theirrespective owners.Unauthorized duplication is prohibited.©Copyright IBM Corp.2005,2013xxiii。

cognos 维度(cube)报表的过滤条件以及url参数详解,解决OR-ERR-021 问题

cognos 维度(cube)报表的过滤条件以及url参数详解,解决OR-ERR-021 问题

献给所有cognos新手关于: 基于维度(cube)建立的报表的过滤条件参数解决OR-ERR-021 问题若您已经建立好过滤条件,只要求解决error,请略过第一部分.第一部分:建立维度的过滤条件首先使用Report Studio 打开要加过滤条件的报表.1点击查询资源管理器,要加过滤条件的查询.2 展开要加过滤条件的维度,这里选择的是区划key3将这树状拖入到右边的数据项中,插入层级选择所有层级.4将数据项拖到明细过滤器中,写表达式定义添加参数过滤,验证一下即可.第二部分与前台交互(url方式)若要和前台交互,需以下几个步骤说明:访问的url包括以下url最基本的地址,加上特定的参数.http://<server-name>/cognos8/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts若要查看report运行的html需要加以下参数:1ui.tool=CognosViewerui.tool 打开文件的方式,可选CognosViewer/AnalysisStudio2 ui.object= /content/package[@name='pk_ds_yjzs__6']/report[@name='yjzs_rs_2']ui.object 对象的搜索路径(可以在cognos门户->IBM Cognos内容->报表所在文件夹->报表属性->查看搜索路径ID URL 中找到)具体步骤如下:点击cognos内容找到报表所在文件夹点击报表操作中的第一个图标查看属性点击搜索路径id 和URL复制搜索路径3 ui.action=runUi.action 对文件的操作方式run 运行报表,还有其他属性这里不再继续赘述 .4 p_qh=[ds_yjzs__6].[区划key].[区划key].[区划key1]->:[PC].[@MEMBER].[330100]P_qh 指的是传入的参数,与上面表达式中定义的区划相对应,(*千万记得传入的参数需要以p_开头)可以是一个也可以是多个.记得用&分开.因为是基于维度的过滤条件,所以普通的传值,例如P_qh=330100 cognos不会识别,会报错,意外类型的参数值:它只能识别维度内的member,所以,要加的参数应该是这种格式的:[ds_yjzs__6].[区划key].[区划key].[区划key1]->:[PC].[@MEMBER].[330100]它是怎么来的呢? 打开查询,选择加过滤条件的维度数状结构在这里成员中的每一项都是可以加到过滤条件中的,查看的方法,右键点击[区划key],属性,成员唯一名称复制下来也可以选择[区划key]下级的其他成员,例如衢州,5 run.prompt=falseRun.prompt 是否显示提示页面,默认为true显示,这里选为false不显示 .完整url实例:(*参数名称区分大小写切记)http://192.168.1.103/cognos10/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/launch.xts&ui.tool= CognosViewer&ui.object=/content/package[@name='pk_ds_yjzs__6']/report[@name='yjzs_rs_2']&ui.action=run&p_rylx=[ds_ yjzs__6].[区划key].[区划key].[区划key1]->:[PC].[@MEMBER].[330100]&run.prompt=false这里运行报表有一个常见的问题,就是乱码的问题,如果url中有中文字符串,需要进行转码.(记得只对参数值转码即可,千万别把整个url都进行转码了,转换的编码使用utf-8即可)Java中使用.URLEncode.encode()转码即可,其他的还没有试过,有别的事例希望大家share一下.除了url也可以使用表单实现附:当过滤条件可能为多值的时候只需要在url中多传参数即可&p_qh=[ds_yjzs__6].[区划key].[区划key].[区划key1]->:[PC].[@MEMBER].[330100]&p_qh=[ds_yjzs__6].[区划key].[区划key].[区划key1]->:[PC].[@MEMBER].[330300]上面这个问题困扰了我很长时间,在网上提问,搜索也找不到答案,最后贝克汉姆的一个回答帖子给我了启示.现在将解决办法记录下来,希望这个问题不要再困扰更多像我一样的新手们.。

中国建设银行Cognos报表、分析、查询培训教程-经典收藏

中国建设银行Cognos报表、分析、查询培训教程-经典收藏
在属性栏中看到该对象相应的属性内容 • 工具条以及Explore条用以开发报表,这里就不做过多的介绍。
China Construction Bank. | 36
查询 “查询”为数据的显示提供了一个结构,在报表中显示的数据是通 过 “查询”从数据源中获取数据的,类似于数据库中视图的概念。 “查询”
图标 如下图:
China Construction Bank. | 33
页面简介
China Construction Bank. | 34
报表页面
报表页面如下图示:
China Construction Bank. | 35
报表页面
• 可插入对象栏中的内容就是Framework发布包的内容 • 工作区则是拖拉可插入对象制作报表的地方 • 属性栏就是工作区上各对象的属性,点击工作区上的对象就可以
China Construction Bank. | 14
创建当模Q型u中e的r查y询S项t被u拖d到i列o表报后,表各项的数据即显示出来,其实这已是报
表的 结果了。接着为报表添加过滤条件,如下图所示,首先点击“编辑数据”栏,然后 在列表中选定一列,这里假定选定“证券名称”列,最后点击左边的“过滤器”。
Cognos Connection门户界面
China Construction Bank. | 7
QueryStudio使用培训
• QueryStudio简介 • 创建QueryStudio报表 • 对报表中的数据进行处理 • 定义条件样式
China Construction Bank. | 8
China Construction Bank. | 32
页面简介
在ReportStudio系统中,页面分为两种,一种是报表页面, 即是报表运行最后要显示数据的页面,是必需的。另一种是提示 页面,是为用户选择过滤条件提供的一个页面,如果报表中同时 包含这两种页面,则运行后先显示提示页面,供用户选择条件 后,再转到报表页面,而报表页面显示的数据则是经过从提示页 面的选择条件过滤后的数据。查看页面的情况可将鼠标放到“页 面资料管理器”面板上,即弹出,如下图:

IBM Cognos Express V9.0.0 快速入门指南说明书

IBM Cognos Express V9.0.0 快速入门指南说明书

IBM Cognos ExpressVersion9.0.0Quick Start GuideThis guide is intended to get you started with IBM Cognos Express.National Language Version:To obtain the Quick Start Guide in other languages,print the PDF from the IBM Cognos Express DVD.Product OverviewIBM®Cognos®Express™is a tool used for reporting,analysis,dashboards,scorecards,and planning.IBM Cognos Express provides these capabilities with three products:IBM Cognos Express Xcelerator,IBM Cognos Express Reporter,and IBM Cognos Express Advisor.the directions on the Downloading IBM Cognos Express/infocenter/cx/v9r0m0/Information Center:/infocenter/cx/v9r0m0//infocenter/cx/v9r0m0/3.Go to the Welcome to IBM Cognos Express page,and click Download Express software to my computer.unch the install wizard for the client component that you want using the instructions provided in Getting Started withIBM Cognos Express:/infocenter/cx/v9r0m0/More InformationFor additional technical resources,see the following:v IBM Cognos Express product and feature information:/software/data/cognos/products/cognos-express/v Product support:/software/data/cognos/products/cognos-express/support/Licensed Materials-Property of IBM©Copyright IBM Corp.1999,2009.US Government Users Restricted Rights–Use,duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.IBM,the IBM logo,®,and Cognos,are trademarks or registered trademarks of International Business Machines Corp.,in many jurisdictions worldwide.Other product and service names might be trademarks of IBM or other companies.A current list of IBM trademarks is available on the Web at /legal/copytrade.shtml.Part Number:CF23QMLPrinted in Ireland。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

目录第一章编写目的 (2)第二章资产负债管理报表简介 (2)第三章报表目录结构 (2)3.1实际目录 (2)3.2虚拟目录 (3)第四章报表制作流程 (3)4.1编写程序 (3)4.2在I MPROMPTU中连接数据库 (3)4.3制作数据模型生成数据立法体 (14)4.4设置报表发表目录 (29)4.5在P OWER P LAY中制作报表 (33)4.6报表发布 (38)第五章报表用户及权限设置 (39)5.1添加用户 (39)5.2设置角色 (43)5.3建立用户和角色之间的关系 (44)5.4用户及角色的备份与恢复 (45)5.5为报表设置权限 (48)第六章登陆COGNOS查询报表流程 (50)6.1登陆C OGNOS修改报表设置 (50)6.2功能键说明 (58)第七章报表批处理维护 (60)7.1报表批处理简介 (60)7.2报表批处理维护 (61)第一章编写目的本文阐述了资产负债管理报表的维护方法,以及用Cognos制作报表的流程和如何在WEB上查看、修改报表。

第二章资产负债管理报表简介资产负债管理系统中的一部分报表是通过Cognos的报表查询分析系统发布的。

现有日常统计分析工作较多使用EXCEL报表系统,只能通过手工从业务系统中收集数据,进行一些简单、运算量小的静态汇总与分析。

与EXCEL相比,Cognos属于侧重数据分析的商业智能管理系统,能够直接从数据库获取原始数据,根据事先设定的表单自动完成报表编制工作。

另外该系统还有强大的报表编辑、校验、查询和图形功能,能轻松实现数据分拆、检查和直观多维度实时查询。

在Cognos系统中,用户通过IE浏览报表和报表图形。

系统同时允许用户调整报表图形,从多角度观察和分析报表。

Cognos系统组件之间的关系:第三章报表目录结构报表的目录结构分为两种:一个是实际目录,另一个是虚拟目录。

实际目录是指报表文件在计算机中的存储位置(文件存储路径),虚拟目录是指在Cognos中报表的发布路径(制作方法在第四章四节中详细说明)。

3.1实际目录report|---special_rpt|---bin|---imr|---pyi|---mdc|---ppx|---standard_rpt|---bin|---imr|---pyi|---mdc|---ppxspecial_rpt文件夹下是特殊化报表目录。

standard_rpt文件夹下是标准化报表目录。

bin是批处理目录,包括数据加载批处理程序和模型刷新批处理程序。

imr是报表数据源目录,用Impromptu制作的imr文件和iqd文件放在此目录下。

pyi是模型文件目录,用PowerPlay Transformer制作的pyi文件放在此目录下。

mdc是数据立方体文件目录,从pyi文件中生成的mdc文件放在此目录下。

ppx是报表文件目录,用PowerPlay制作的ppx文件放在此目录下。

3.2虚拟目录Server name|---std_mdc|---std_ppx|---spe_mdc|---spe_ppxServer name是报表发表服务器名称,Server name与计算机名相同,例如计算机名是Eissrv,则Server name就是Eissrv。

std_mdc是标准化报表的数据立方体虚拟文件夹。

std_ppx是标准化报表的报表发表虚拟文件夹。

spe_mdc是特殊化报表的数据立方体虚拟文件夹。

spe_ppx是特殊化报表的报表发表虚拟文件夹第四章报表制作流程本章及以下各章以特殊化报表《各分行人民币金融机构存款利率情况表》为例,阐述报表的制作过程和Cognos的使用方法。

4.1编写程序首先在数据库中新建一个表tj_rmbjrjgckllqkb用于存储报表数据,然后编写一个存储过程citic_proc_rmbjrjgckllqkb将报表需要的数据信息加载到tj_rmbjrjgckllqkb中,最后通过特殊化报表主程序citic_proc_main根据报表发表时机调用程序。

详细说明请查看《报表设计手册》。

4.2在Impromptu中连接数据库报表与数据库的连接是通过Impromptu实现的,在Impromptu中可以定义数据库连接,可以生成数据查询文件iqd,也可以制作即席报表imr,在本资产负债管理报表系统中imr只是在修改iqd文件时使用。

1)在\oracle\ora92\network\admin路径下打开TNSNAMES.ORA文件,编辑下列文本,输入数据库连接名称dmssrv(注意:前面不能有空格),在Host后面输入IP地址或者计算机名,编辑完成后点击“保存”。

2)请单击您电脑左下角的“开始→程序→Cognos Series 7 Version2→Cognos Impromptu Administrator”,启动Impromptu程序。

3)打开Impromptu程序后,如果您是第一次使用将打开“Welcome”对话框,将“Show this dialog in the future”前的对钩选掉,点击“Close”。

4)在菜单中点击“Catalog→Databases”,打开“Database definition Manager”对话框,Impormptu 可以连接很多数据库,例如DB2、SQL Server、Oracle、Sybase等,也可以通过ODBC来连接数据库,我们的系统使用Oracle。

5)选中“Oracle”,点击“New Database…”,弹出“Database Definition – Oracle”对话框。

6)在“Logical database name”处输入DMS,在“SQL*Net connect string”处数据dmssrv,然后点击“Test…”,弹出“Test Attach to Database”对话框。

7)在“User ID”输入要连接数据库的用户名,在“Password”输入秘密,点击“OK”,如果数据库连接成功,弹出“Successful Attachment”提示框。

8)点击“OK”,一个数据库连接完成。

重复执行步骤5)至8),分别配置ALM、DMS、ETL、FTP,ALM是连接标准报表中的ALM报表的,DMS报表的。

Logical database name ALM DMS ETL FTPSQL*Net connect string dmssrv dmssrv etlsrv dmssrvUser ID alm dms etl ftpPassword cactus sms etl ftp9)在菜单中点击“Catalog→New”,弹出Cosgnos登陆界面,10)输入用户名和密码,以管理员administrator登陆,点击“Log On”,弹出“New Catalog”对话框。

11)点击“Browse”选择文件保存路径,输入文件名称,在“Database Name”处选择“DMS”,点击“OK”,弹出Catalog登陆对话框。

12)在“User ID”输入数据库用户名dms,数据库密码dms,点击“OK”,弹出“Tablse”对话框。

13)在“Database tables”中选择“DMS→TJ_RMBJRJGCKLLQKB”,点击“Add-->”,将人民币金融机构存款利率情况表加入“Catalog tables”中。

14)由于本例只用到一个表没有与其他表建立连接,所以“Create joins”选择“None”,点击“OK”,将TJ_RMBJRJGCKLLQKB加入到“特殊报表.cat”目录文件中。

15)编辑表及字段名称,在菜单中点击“Catalog→Folders”,弹出“Folders”对话框。

16)选择“Tj_Rmbjrjgckllqkb”,点击“Edit”,弹出“Edit Name”对话框。

17)将“Tj_Rmbjrjgckllqkb”修改为“各分行人民币金融机构存款利率情况表”,点击“OK”,完成表名称修改。

18)点击“各分行人民币金融机构存款利率情况表”前面的“+”,将字段展开,选择“As Of Dt”,点击“Edit”,弹出“Edit Name”对话框。

19)将“As Of Dt”修改为“数据日期”,点击“OK”,然后依次修改下面各字段名称。

点击“OK”,完成表及字段名称修改。

20)在菜单中点击“File→New”,弹出“New”对话框。

21)选择“Simple List”,点击“OK”,弹出“Query”对话框。

22)在“Catalog”中点击“各分行人民币金融机构存款利率情况表”左侧的“+”将表展开,23)选中所有字段,点击“->”,将字段加入“Query data”中。

24)点击“OK”,一即席报表各分行人民币金融机构存款利率情况表就制作出来了。

25)数据标题,将标题修改为“各分行人民币金融机构存款利率情况表”,然后保存,生成文件“各分行人民币金融机构存款利率情况表.imr”,然后点击“File→Save As”,保存类型选择“IQD”,点击“保存”,生成“各分行人民币金融机构存款利率情况表.iqd”文件。

4.3制作数据模型生成数据立法体数据模型文件*.pyi和数据立方体文件*.mdc是用PowerPlay Trasformer制作的。

4.3.1单击您电脑左下角的“开始→程序→Cognos Series 7 Version2→tools→PowerPlay Transformer”,启动PowerPlay Transformer程序。

4.3.2点击“File→New”,新建数据模型,如果您是第一次使用PowerPlay Transformer,将弹出“New Model”的说明界面。

4.3.3将“Show this page in the future”左侧的对钩选掉,点击“下一步”,弹出“New Model”模型名称输入界面。

4.3.4在“Model name”输入“各分行人民币金融机构存款利率情况表”,点击“下一步”,弹出“New Model”数据源名称输入及数据源类型选择界面。

4.3.5在“Data source name”输入“各分行人民币金融机构存款利率情况表”,“Data source type”选择默认的“Impromptu Query Definition”,点击“下一步”,弹出“New Model”的数据源文件选择界面。

4.3.6点击“Browse”选择在4.2.25中生成的“各分行人民币金融机构存款利率情况表.iqd”文件,点击“下一步”,弹出“New Model”的模型自动设置界面。

4.3.7这一步我们通常选择手工设计,而不是自动设计。

相关文档
最新文档