how do u implement dense rank in bo reports?

Answers were Sorted based on User's Feedback



how do u implement dense rank in bo reports?..

Answer / shikha

The DENSE_RANK function computes the rank of a row in an
ordered group of rows.Rows with equal values for the
ranking criteria receive the same rank.

For eg.

To Show the set of sales people who make the top 3
salaries - that is, find the set of distinct salary
amounts, sort them, take the largest three, and give me
everyone who makes one of those values.

SELECT * FROM (
SELECT deptno, ename, sal,
DENSE_RANK()
OVER (
PARTITION BY deptno ORDER BY sal desc
) TopN FROM emp
)
WHERE TopN <= 3
ORDER BY deptno, sal DESC
/

DEPTNO ENAME SAL TOPN
---------- ---------- ---------- ----------
10 KING 5000 1
CLARK 2450 2
MILLER 1300 3

20 SCOTT 3000 1 <--- ! (in
case of rank
JONES will have
3 and dense
rank will have 2)
FORD 3000 1 <--- !
JONES 2975 2
ADAMS 1100 3

30 BLAKE 2850 1
ALLEN 1600 2
30 TURNER 1500 3

Is This Answer Correct ?    11 Yes 6 No

how do u implement dense rank in bo reports?..

Answer / nareshkumar

Dense Rank is used for assigning a precedence or rank to
each row in the result set relative to other rows in the
result set.

Is This Answer Correct ?    5 Yes 9 No

Post New Answer

More Business Objects Interview Questions

What is #DATASYNC error how to remove it?

2 Answers   IBM, TCS,


How to create a new calendar in CMC? Can u please tell me the process to create the required calendar. Ex:- Year of that calendar to start with Jan-15 and ends with Jan -30 and the Next month to start with Feb-31 and ends with Feb-14.

0 Answers  


how can we join two classes with full outer join.in join dialog box only one outer join check box is checked another on e gone .for this any property is there in universe designer?

2 Answers   TCS,


Difference between Decode and Case?

8 Answers   Polaris, TCS, Wipro,


what are slowly changing dimensions, confirm dimensions?

1 Answers   Wipro,






Pls Explain about the different between 6.5 & Xi R2

2 Answers   IBM,


how to creat 2 way drilling mode.can any one know this

0 Answers  


WHAT TYPE OF JOINS RETURNS INCORRECT RESULTS?

2 Answers  


How many universes are required for a single project,and how many reports are required for a single Universe.

2 Answers  


what is a Micro cube?

5 Answers   TCS,


1. can we create report using multiple universes and how ? 2. how can we move the objects from universe A to universe B in report ? 3. how can we create aggregate table at universe level ? 4. if there is only one fact table in that universe, what happens if we get fan trap ?

1 Answers   Virtusa,


Its regarding Javascript coding for customization in BI4 reports. We need to have all the options disabled in the report except the option to Export(save the report in computer in Excel/pdf formats). I am able to hide TopBar,TabBar,Left Navigation etc but I need "Export" option to be displayed to the users in Read mode. Can this selective "hiding" be achieved?

0 Answers  


Categories