How to create a dynamic column name in Cognos?

Answer Posted / lakshmi

We can use variables for dynamically displaying column name.
In our project we given three dimensions in the prompt
value, user can switch to the dimension that they want to
see in the report.
Consider 3 dimensions A, B and C, Users want to see
measures in the report based on what is the dimension they
have selected in the report prompt having A, B and C
dimensions.

By using the Case Statement we can switch between the
dimensions
Create Dataitem as follows
Case
When ?p_Dimension?=A Then [A] (Directly take from
model)
When ?p_Dimension?=B Then [B] (Directly take from model)
When ?p_Dimension?=C Then [C] (Directly take from model)
End
This will automatically pick up the Dimension query item
names from the model based on User’s selection to display
as column name.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

New coloums are added in database, then how you know in report level

1254


can anyone let me know some tips or interview questions on framework manager metadata modeling, creating joins, and all other aspects related to Cognos 8 framework mgr

1670


How to Reset Pagenumbers in one report.

2299


What is the difference between set functions and filter function in dimensional data?

2597


How can I test reports in cagonos?

652






------------- How to identify the Revenue Column in Report?

1929


How can you link a query to a data container manually in Report Studio?

2021


what are the dimensions that you have in your current project?list them?

1732


What is called cognos reporting tool?

685


what is catalog and types of catalogs in cagnos and which is better?

789


What do you understand by the term 'aggregate cache'?

651


What are the batches and it’s details?

635


What do you understand by the cognos?

620


what is power prompt in cognos ep7series?what is the use of this?

3298


Cleared COG-112 with 100% score today. What next certification should i go for?

1513