Configuring Cognos cubes
To use a Cognos lookup table, you use the administrative console to export a cube package definition for MortgageLendingBAM so that it can be imported into the Cognos Framework Manager. You then create a query subject from a lookup table and create a relationship between the query subject and the sample MortgageLendingBAM monitor context.
Procedure
- Export a cube package definition for MortgageLendingBAM:
- From the administrative console, click Applications > Monitor models > [MortgageLendingBAM_Version] > Manage Cognos Cubes.
- From the Manage Cognos Cubes page, click Export.
- Specify the location where you want to export the cube package (for example, C:\LDAPsample).
- In Cognos Framework Manager, open the file you exported
in step 1:
- Open Cognos Framework Manager.
- Click File > Open
(All Files (*.*)), and select the exported
Cognos cube model file MortgageLendingBAM_<version>_fromCognos.xml from
your local file system (C:\LDAPsample, for example).
The cube model is now loaded into Framework Manager.
- Create a query subject:
- From the Project Viewer, right-click namespace Mortgage Lending BAM MC Query Subject, and click Create > Query subject.
- In the Name field, type a name for the query subject (for example, Cognos Value Mapping).
- Select Data Source (Table and Columns) to manually build a SQL query, and click OK.
- From the Database objects column of the Select columns page, select FGS_SP_COGNOS_VALUE_MAPPED_T, and click the right arrow icon to move it to Included columns.
- Click Next on the Select Columns
page and on the two pages that follow. Finally, click Finish.
The newly created Cognos Value Mapping query subject is visible in the Project Viewer.
- Create a relationship between Mortgage Lending BAM MC and
the newly created query subject:
- From the Project Viewer, right-click Mortgage Lending BAM MC Query Subject, and click Create > Relationship.
- On the Relationship Expression tab, type a name (for example, Cognos Value Mapping to Mortgage Lending BAM MC).
- Click New Link.
- In the Query subject column for Cognos Value Mapping, highlight ACTUAL_FILTER_VALUE.
- In the Query subject column for Mortgage Lending BAM MC, highlight LoanOfficer.
- For Cardinality, select 1..1.
For Operator, select =. For Cardinality, select 1..n.
Notice the expression that is generated:
Cognos Value Mapping.ACTUAL_FILTER_VALUE = Mortgage Lending BAM MC.LoanOfficer
- Click OK.
- Add the data security filter:
- From the Project Viewer, click Project > Mortgage Lending BAM > Mortgage Lending BAM MC > Mortgage Lending BAM MC Query Subject > Mortgage Lending BAM MC.
- Click Actions > Specify Data Security.
- On the Specify Data Security page, click Add Groups.
- On the Select Users and Groups page, from the Cognos namespace, select All Authenticated Users and click the right arrow. Then click OK.
- Select Create/Edit Embedded from
the list in the Filter column, and type the
following expression:
[Mortgage Lending BAM MC Query Subject].[Cognos Value Mapping].[USER_ID] = #sq($account.parameters.uid)# - Click OK.
- Publish the package to the Cognos Business Intelligence server by right-clicking the Mortgage Lending BAM package and clicking Publish.
Parent topic: Installing and running the sample