我可以在OBIEE分析报告中创建新的“分组依据”列吗? [英] Can I create a new Group by column in OBIEE analytic Report?

查看:105
本文介绍了我可以在OBIEE分析报告中创建新的“分组依据”列吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有一个报告:

ProductID Price
LCD1 12
LCD2 11
LCD3 10
TV 100
GAME 50

我希望添加一个新的此报表在OBIEE中的列,结果应如下所示:

I hope to add a new column on this report in OBIEE and the result should be like below:

ProductID Price New_ProductID_Grouped
LCD1 12 LCD
LCD2 11 LCD
LCD3 10 LCD
TV 100 TV
GAME 50 GAME

我希望在 New_ProductID_Grouped 字段中将LCD *产品显示为LCD。

I hope to show LCD* products as LCD in the New_ProductID_Grouped field.

是否可以在OBIEE中?

Is it possible in OBIEE?

我希望创建该列,然后在以后进行层次结构。

I hope to create the column and then do hierarchy later.

在此先感谢。 / p>

Thanks in advance.

推荐答案

是否要仅为此分析添加此列?通常最好在RPD中定义该列,这将使其可用于所有报告和分析。

Do you want to add this column only for that analysis? It is usually better to define that column in the RPD, this will make it available to all reports and analysis.

如果仅希望该列用于特定分析,则至少两种方法:

If you only want that column for this particular analysis there are at least 2 approaches:

A)如果您可以通过查询来确定值(即您可以通过编程方式找出产品是LCD,TV还是游戏):


A1-再次将ProductId列拖至条件标签,并将名称更改为产品类型,您现在将拥有3列: ProductId,价格和产品类型

A2-使用LSQL编辑新列的公式,该LSQL将根据productID例如:

A1 - Drag the ProductId column again to the criteria tab and change the name to "Product Type", you will now have 3 columns: "ProductId", "Price" and "Product Type"
A2 - Edit the formula of the new column using the LSQL that will calculate the product type based on the productID for example:



 CASE ( SUBSTRING("Products"."ProductID" FROM 0 FOR 3) )  
  WHEN 'LCD' THEN 'LCD Group'       
  WHEN 'TV' THEN 'TV Group' 
  ELSE 'Game Group' 
 END




A3-A dd将新列添加到表/数据透视表中,如果要查看在类型级别汇总的数据,则可能需要隐藏productID列。

A3 - Add the new column to the Table / PivotTable, you might need to hide the productID column if you want to see data aggregated at the type level.

B)如果必须手动选择类型(即,必须查看productID来确定产品是LCD,电视还是游戏):


B1-单击新建结果选项卡中的组按钮

B2-使用 LCD组作为显示标签,然后从值来源列表中选择ProductID。

B3-手动选择应标为LCD

B4-对电视和游戏重复B1-B3。

B5-预览报告;请注意,您可以通过单击组来向下钻取ProductID。

B1 - Click the "New group" button in the results tab
B2 - Use "LCD Group" as Display Label and select ProductID from the "Values From" list
B3 - Manually select the products that should be labeled as LCD
B4 - Repeat B1-B3 for "TV" and "GAME"
B5 - Preview the report; notice that you can drill down to ProductID by clicking the group.

希望这会有所帮助

这篇关于我可以在OBIEE分析报告中创建新的“分组依据”列吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆