OBIEE 11G Create a Share Measure

1 . In the Business Model and Mapping layer, right-click the F1 Revenue table and select New Object > Logical Column to open the Logical Column dialog box.
2 . On the General tab, name the logical column Product Share.
Screenshot for Step
3 . On the Column Source tab, select "Derived from existing columns using an expression."
Screenshot for Step
4 . Open the Expression Builder.
Screenshot for Step
5 . In the Expression Builder, Select Functions > Mathematic Functions > Round.
Screenshot for Step
6 . Click Insert selected item. The function appears in the edit box.
Screenshot for Step
7 . Click Source Number in the formula.
Screenshot for Step
8 . Enter 100* followed by a space.
Screenshot for Step
9 . Insert Logical Tables > F1 Revenue > Revenue.
Screenshot for Step
10 . Using the toolbar, click the Division button. Another set of angle brackets appears, <>.
Screenshot for Step
11 . Click <>.
Screenshot for Step
12 . Insert Logical Tables > F1 Revenue > Product Total Revenue. Recall that this is the total measure for the hierarchy.
Screenshot for Step
13 . Click between the last set of angle brackets, <>, and enter 1. This represents the number of digits of precision with which to round the integer.
Screenshot for Step
14 . Check your work:

Round(100* "Sample Sales"."F1 Revenue"."Revenue" / "Sample Sales"."F1 Revenue"."Product Total Revenue" , 1)

This share measure will allow you to run an analysis that shows how revenue of a specific product compares to total revenue for all products.
15 . Click OK to close the Expression Builder. The formula is visible in the Logical Column dialog box.
Screenshot for Step
16 . Click OK to close the Logical Column dialog box. The Product Share logical column is added to the business model.
Screenshot for Step
17 . Add the Product Share measure to the Base Facts presentation table.
Screenshot for Step
18 . Save the repository. Check consistency. You should receive the following message.
Screenshot for Step
If there are consistency errors or warnings, correct them before you proceed.
19 . Close the repository.

No comments:

Post a Comment

Popular Posts