Thursday, April 9, 2015

Report performance tuning in report studio


If all reports are slow, the issue may be due to your environment or database. If all reports from a specific package are slow, the issue may due to the model design. If just one report is slow, the issue may be due to a specific report element.

  1. How many queries does your report contain?
  2. The number of queries on the report will proportionally affect the report execution time.
  3. Does the report run slowly for everyone, or just for one user?
  4. If the report runs slowly for just one user, the issue may be due to something in that user’s environment, such as virus scanning, page file size or location
  5. Settings or their location on the network.
  6. If many people are running the same report at the same time, you may need to scale your environment or consider using dispatcher routing rules to direct all requests for a specific package or group of users to a specific server or server group. For more information, see the IBM Cognos Business Intelligence Administration and Security Guide.
  7. Do your queries require local processing?
  8. The following report elements require local processing: crosstabs and charts, master relationships, unions or joins, multiple fact queries, bursting, and non-vendor specific functions. Local processing requires the IBM Cognos server to compute operations on the result set returned by the database, which can impact the SQL execution time.
  9. Does your environment use a Custom Authentication Provider?
  10. Using a Custom Authentication Provider could cause a memory leak if the code is not destroying objects correctly.
  11. Have you reviewed the logs in the c10_location/logs directory and the audit logs?
  12. They may help you identify the source of the problem. Monitoring your processes, such as the Java TM and Business Intelligence bus processes could also identify excessive memory use.
  13. Is your environment tuned correctly?
  14. For more information, see the Performance Tuning Settings for IBM Cognos 8 Business Intelligence and the IBM Cognos 8 Business Intelligence Performance Tuning Cheat Sheet documents available online at www.ibm.com.
  15. Have you recently upgraded?
  16. Ensure that any tuning settings that were applied to your previous installation are applied to the new environment. Ensure that your models have been verified, upgraded, and republished. Verify that the IBM Cognos Framework Manager governor that allows enhanced model portability at runtime is not enabled. Depending on your upgrade method, you may also need to open and save the reports again after upgrading.
  17. Change the order in which items are queried from the database.
  18. Create sections without creating master detail relationships.
  19. Share queries between lists and crosstab.
  20. Convert queries to SQL
  21. Avoid using functions with limited support.
  22. Be aware of the limitations of creating expressions with SAP BW data sources
  23. Use Select & Search prompts instead of value prompts if your list of prompts is long
  24. Provide your own prompt values in a prompt to avoid accessing the database.
  25. Suppress null cells using filters.
  26. Set page breaks without creating master detail relationships
  27. Do not modify IBM Cognos Analysis Studio set definitions.
  28. Do not put filters on non-identifiers.
  29. Avoid combining large hierarchy levels and sets in a drill-through report in a way that creates large
  30. Use database functions when possible.

Role - playing dimension


Role- playing dimension

Dimension having multiple valid relationship itself and other dimension as well call role playing dimension.

Dimensions are often recycled for multiple purposes within the same database. For instance, a “Date” dimension can be used for “Date of Sale”, as well as “Date of Delivery”, or “Date of Hire”. This is often referred to as a “role-playing dimension”.
Basically, if the same dimension is used more than once with different names in the cube then it is called the role- playing dimension

Cub VS DMR


Sl No.
Cube
DMR
1
Cognos 7 technology on words
Cognos 8 technology on words
2
Performance high
Performance Low
3
offline data
online - life data
4
Attributes nested within dimensional values
not possible with cubes
5
Cube does require a separate model/IQD
DMR does not require a separate model/IQD
6
Calculated categories creation - YTD, MTD
No Calculated categories creation
7
supported multiple environments/formats
Not supported multiple environments/formats
8
Not supported HUGE volume data
Supports HUGE volume data sets
9
Security in custom view and access manager
Security in Cognos server or FM
10
Custom view
No custom view
11
MDX
SQL
12
Support up to 2 GB
No Size limit
13
Manually maintain data in categories for data correction
Data correction only possible in database level not model / package level

Thursday, April 2, 2015

Single cognos report multiple data sources

Stpes

1.    Get ready with SQL query

2.    Open report studio with/without any package

3.    Go to query explorer

4.    Drag query1

5.    Drag SQL object from Toolbox to query explorer

6.    Click on SQL object

7.    Properties pan select data source (Which you should have to created data source before for given SQL)

8.    Double click on SQL object

9.    Copy query into SQL ojbect

10.  Validate SQL

11.  Click ok

12.  Now you can design report

13.  Same way you can develop multiple query with multiple data sources report

Wednesday, April 1, 2015

How cube is making join data source

How cube is making join in multiple data sources and building .mdc file and preparing package.

Cognos transformer has unique mechanism to gather multiple data sources (Reports, IQD's (Queries), model, packages) to build cube.

Question is how transformer doing magic
Are we define any join one IQD's to another IQD's ?
Are we define any join between two tables?
Are we define any join between two database?


After cube published .mdc file In power play studio we can do analysis using those all dimensions.
All dimensions made based on unlinked data sources, how this magic?

Answer : Cube machanism search in backgroud to join one table to anther by just finding common column, and same also doing in case for multiple databases. it will gather common column join to each other.


Thanks.

Conditional Bar Chat cognos report

Requirement : Cognos Bar chat report color with different contion.

  1. Create sting variable with different values (Drag data item month in string values like 'R','B','G','Y'
  2. Click on series
  3. Click  conditional pallet
  4. Select new conditional
  5. Select data item (Series data iteam)
  6. Select type = string
  7. Select option Enter string criteria
  8. Select contains from dropdown
  9. Enter  R
  10. Define the color 'Red'
  11. Select option Enter string criteria
  12. Select contains from dropdown
  13. Enter  B
  14. Define the color 'Blue'
  15. Repeate this steps 7-10 upto you like (you can define multiple number of color)
  16. ok
  17. ok
Thanks.






Cube package connection issue



Error code : 3000007

Problem : Analysis studio package / cube package connection issue / connection issue with data source
Solution :
  1. Go to cognos administration
  2. Click respctive data source (which connected to package)
  3. Action menu > click on test connection
  4. Check connection string properly without missing anything
  5. Select the correct dispatcher
  6. If you feel you need to correct connection string then, click on close to go back
  7. In action menu click on SetProperties
  8. Click on connection tab
  9. Correct the proper path of .mdc file or cube file and click on ok
Thanks