Categories
- All Categories
- 4 Oracle Analytics Sharing Center
- 12 Oracle Analytics Lounge
- 189 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.4K Oracle Analytics Forums
- 5.9K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 65 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Formula to get Top 5 categories based on a criteria

Summary:
Content (required):
Hi Experts,
We have a requirement to get Top 5 Expenses based on the balancing segment value. The Top 5 expenses can be obtained using the below Formula
TopN("Base"."Base Equivalent Period Net Activity" ,5)
In addition to the above we also want it to be grouped based on Balancing segment values.
Example - Top 5 expenses for BSV 1, Top 5 expenses for BSV 2 etc.
Please advise as to how this can be catered through the formula.
Thanks,
Vipusha
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
Answers
-
Hi @231094,
Please try below -
TopN("Base"."Base Equivalent Period Net Activity" ,5 BY "<Balancing segment column name>"). This should give you something like below -
0 -
Hi Amrita,
It worked. Thank you so much for the prompt response.
Thanks,
Vipusha
0 -
Thanks Vipusha
0