how to create average on totals of different departments
employees salary...? consider we have 3 dept and in each
dept 10-15 workers i need to get the totals separately for
each dept and average of there totals..help me pls

Answers were Sorted based on User's Feedback



how to create average on totals of different departments employees salary...? consider we have 3 de..

Answer / chiru

Apart from SQL Queries... When we need to generate a report
as per above requirement, first of all drag and drop deptno
(lets assume having deptno=10, 20, 30), After that drag and
drop "workers" Query item.... After that apply grouping on
deptno Query Item.... If u apply grouping on deptno.. it
automatically gets totals of all workers group by deptno...
But as per our requirement go to cummary and apply total icon
on workers Query item...
after that again apply average option from summary on workers
Query Item...
Now u can get both average and summary for deptno wise.. i.e
when u run the report......

Is This Answer Correct ?    2 Yes 0 No

how to create average on totals of different departments employees salary...? consider we have 3 de..

Answer / lakshmi reddy

select avg(depttotal) from (select sum(sal) as depttotal
from emp group by deptno)

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Cognos Interview Questions

pls ans what are the filters we have in framework manager? filters in report studio?

3 Answers   IBM,


Hi Cognos Experts,I am Having DatePrompt In My Report.I want to display The Report Between Twodates Like jan-SEP How can We Achieve This one?PLS Expain Me With Ex:

3 Answers  


in which scenario we go for views in cognos or oracle?

1 Answers  


How do you test the performance of a report?

3 Answers   TCS,


Main Differnce between Cognos7 and Cognos8

1 Answers   IBM,






Can any one give the example for slicing and dicing of data ?(with simple query)

3 Answers   Cognos,


what are burst options you have?

2 Answers   HCL, IBM, TCS,


what is drill down and slicing and dicing what are the difference between them?

5 Answers   IBM,


suppose there are 15 countries like (US, UK, ENGLAND,INDIA,JAPAN.......)i want a value prompt in the report and this value prompt should contain groups like group1(US,UK,ENG), group2(INDIA,US,UK), group3 (ENG,JAPAN,INDIA)and in the value prompt the values should be group1,group2,group3 how can we do this?

4 Answers  


What is a Query Subject?

0 Answers  


what are typees of dimensions

5 Answers   HCL,


What is an open session command in cognos connection?what is it meant for?

1 Answers   Infosys,


Categories