GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Cognos
Next Question 
 Cognos  |  Question 1 of 180    Print  
How can I create a dynamic column name in Cognos
1.Create a calculated column which contains the information that the header is to contain, such as "Report for year 1999" (concatenated text and date to string sub string extraction).
2.Highlight the report, and then right-click.
3.Select Properties, and then click the Headers/Footers tab.
4.Clear the Column Title Header check box. This will remove the headers from your columns.
5.Reinsert the rest of the column headers; insert text will work. For the dynamic column, from the Insert menu, click Data and select the calculated column you created and insert it into the report.



  
Total Answers and Comments: 11 Last Update: May 29, 2009     Asked by: Jagan 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: moissi
 
1. add a data item to the query(the query on which the report is based)
2. define an expression which u want to use for the dynamic column label
3. from the report page click on the column label
4. from properties pane look for "column label" the default would be "data item label/name" change that to "data item value"
5. in the same pane change the "data item" property to have the data item that u created for the column label.

Above answer was rated as good by the following members:
Khushboo Kapadia, blm.swapna, ashwin.vk21, sandeep8000861
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
October 17, 2005 08:45:19   #1  
Vishwas Gupta        

RE: How can I create a dynamic column name in Cognos

Hi

As you said

.Select Properties and then click the Headers/Footers tab.

I didnt find the option Headers/Footers tab.

Which version you are talking about ??

Thanks in advance

Vishwas


 
Is this answer useful? Yes | No
November 29, 2005 00:31:58   #2  
Rup        

RE: How can I create a dynamic column name in Cognos
use nested if/else or case structure in calculated columns or use conditional formating to show dynamically the column names
 
Is this answer useful? Yes | No
February 16, 2006 09:04:18   #3  
Mehul@DWH Member Since: February 2006   Contribution: 6    

RE: How can I create a dynamic column name in Cognos

Hi

What do you exectly mena by Dynamic column do you mean dynamicaly calculated column.


 
Is this answer useful? Yes | No
April 13, 2007 07:03:13   #4  
rkiranbedi        

RE: How can I create a dynamic column name in Cognos
Hi
Mr. Jagan
We can create Dynamic columns in both level like frame work manager level and Report level also

Using Macros we can create in Frame Work Manager Level
Using QueryCalculations we can create in Report Level
ok

 
Is this answer useful? Yes | No
August 22, 2007 22:49:03   #5  
mgani        

RE: How can I create a dynamic column name in Cognos
We can create dynamic columns in two ways

1. by changing sql query

2. using macromacro use the perameter map to create column dynamically

 
Is this answer useful? Yes | No
October 15, 2007 10:57:09   #6  
JOYDEEP MUKHERJEE        

RE: How can I create a dynamic column name in Cognos
For making a column dynamic you have to insert layout calculations from the objects pane in COGNOS 8 report studio. I was a bit confused with the previous answers from different ppl.
 
Is this answer useful? Yes | No
November 03, 2007 23:29:10   #7  
moissi        

RE: How can I create a dynamic column name in Cognos
1. add a data item to the query(the query on which the report is based)
2. define an expression which u want to use for the dynamic column label
3. from the report page click on the column label
4. from properties pane look for "column label" the default would be "data item label/name" change that to "data item value"
5. in the same pane change the "data item" property to have the data item that u created for the column label.

 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    
January 23, 2008 23:38:03   #8  
binay.bk Member Since: January 2008   Contribution: 4    

RE: How can I create a dynamic column name in Cognos
Hi Dear

Dynamic column is same as Hiding of a column.

Select the required column in your report.
Go to it's property.
Set the Box Type as "None"

Then you can see that the selected column is hidden.

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
May 13, 2008 15:58:46   #9  
reddy_143 Member Since: March 2008   Contribution: 4    

RE: How can I create a dynamic column name in Cognos
Create dataitem by using cast function and use that data item value for the dynamic column name by changing the source value (name under properties) for the column you need.
 
Is this answer useful? Yes | No
April 17, 2009 05:35:59   #10  
ps77322 Member Since: April 2009   Contribution: 3    

RE: How can I create a dynamic column name in Cognos

The requirement was some thing like the heading's of a list report is
supposed to be dynamic. Column Name should be in the format as shown: Total
Budget XXXX where XXXX represents year like next year or previous year etc. (ie.
XXXX can be 2009 2008..)


1. Add a data item to the query (the query on which the report is based)

2. Define an expression which u want to use for the dynamic column name

3. Go to the report page and then unlock the lock at the top menu.

3. On report page click on the Source Type and change that to the data item
value

5. In the same pane change the Data Item Label property to have the data item
that was created for the column label.


Expression that i used was: (to get next year)

TO_CHAR(_add_years(TO_DATE(TO_CHAR({SYSDATE} 'YYYY') 'YYYY') 1) 'YYYY')


Hope that was helpful !!


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape