Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 42 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 278 Oracle Analytics and AI News
- 54 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 19 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
top 10 and rest others in union report
Hi,
I have a requirement to have Top 10 and rest others in a union Report with their totals(Top 10 total, grand total). I have used the rank on metrics to have the top 10 and rest others (eg case when rank(sales)<=10 then "Customer.Cname" else "Others" end). But i cannot put subtotal on a metric in pivot table. Selection steps is not enabled in the union report.
Is there any way to acheive the top 10 and rest others in a union report ?
Thanks
Kalpana
Answers
-
My Advice is to try to create this using Advanced Logical SQL. The trick in the 2nd query will be to remove those items that get into the top 10 in the first query. This could also be achieved by using a nested union, where the 2nd row is a union minus.
0 -
Hi Adrian,
In my union report, the first report only has the top 10 and rest others in first report and the second one. can you please let me know in detail of achieving this please.
Thanks,
Kalpana
0 -
In the advanced SQL you can use standard SQL Syntax for out er joins, e.g. you can use LEFT OUTER JOIN
(Sorry it took so long to reply!)
0