GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Cognos
Go To First  |  Previous Question  |  Next Question 
 Cognos  |  Question 3 of 180    Print  
How to show the data reported horizontally:
(For example:)
employee skill
1 a
1 b
1 c
2 d
2 e
2 f

Report result:
1 abc
2 def
Assuming 3 records per grouped item:

1. Group on employee
2. Create a running count based on the skill field.
3. Create 3 calculated columns based on the count field.
Call them skill1, skill2, skill3:

if (count = 1) then (skill) else null
if (count = 2) then (skill) else null
if (count = 3) then (skill) else null

4. Create 3 more calculated columns using the maximum function. Call them maxskill1, maxskill2, maxskill3

maximum (skill1)
maximum (skill2)
maximum (skill3)

5. Group on employee on maxskill1 on maxskill2 on maxskill3
6. report employee axskill1 maxskill2 maxskill3



  
Total Answers and Comments: 3 Last Update: April 01, 2009     Asked by: Jagan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 09, 2007 11:43:29   #1  
abc        

RE: How to show the data reported horizontally:(...

concatenate skills on the basis of employee


 
Is this answer useful? Yes | No
November 01, 2007 15:40:20   #2  
Cognos        

RE: How to show the data reported horizontally:(...
Concatenating is the best solution. Create a calculated field. Get the values related to Skill type 1 and concatenate them with required spaces inbetween.

1 a b c
2 d e f

 
Is this answer useful? Yes | No
March 31, 2009 05:54:52   #3  
prabakar.bi Member Since: March 2009   Contribution: 1    

RE: How to show the data reported horizontally:(For example:)employee skill1 a1 b1 c2 d2 e2 fReport result:1 abc2 def
I feel we can use the tool functionality to achieve this as follows.

1. Create a list report having employee column
2. Create a cross tab - contains emp in row and skill in column
3. Provide Master Detail relationship between 'emp' of list & CT
4. Hide emp of CT and format appropriately

You can see the result as

1 abc
2 def


 
Is this answer useful? Yes | No


 
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