Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
How to get TOPN records in case of duplicates

I'm using Obiee 12.2.1.4.0. I've a requirement to display top 5 records based on "Balance" fact. For some customers the "Balance" Amount is same. When I use TopN /Rank function it assign same rank to all duplicate balance value as below and return more than 5 records.
Customer Balance Rank
Test1 $1000 1
Test2 $800 2
Test3 $500 3
Test4 $200 4
Test5 $200 4
Test6 $0 5
Test7 $0 5
Test8 $0 5
I can't use rowcount as this is a union report. Can someone please help?
Answers
-
That's exactly how the function works. If you had 10 records that were each $1000, which ones would be the top 5? You can add "By" clauses to the function, if there is some other attribute you want to qualify with.
0