I need to show 12 month data for top 100 sales in a crosstab and i have 6 such crosstabs for different measures. I need to sort sales in desc order starting from current month. But when i sort the data, i dont get proper sorting order. I tried through query panel as well as through formatting. Any kinda help would be appreciated.
Thanks
Look for Custom Sorts:
Select your month column, go to Format| Sortsā¦, check the radio button labeled āCustomā, click on values, and arrange the sort order to your liking.
Looks like all you need to do is verify that there are no other sorts/breaks in your report and that you are sorting by CODE in Desc order. The Slice and Dice panel will make this visually apparent.
You may also want to verify what āFormatā your Months are in. If they are returned as Dates, you will be fine, but if they are character you will need a custom format to āfixā this.
Thanks Dyane
I 'm getting sorted results for one dimensions but when i try to restrict rows to top 100 through options in the Query panel, i get truncated results i.e. instead of getting 12 month data, i 'm getting data for a month only. Any clues?
The Query panel is restricting your return dataset to 100 rows of data. Unless you have some sorting occurring in the database, that 100 rows may be randomly selected based on the fetch sequence.
If you want the top 100 ranked, then you need to actually create a ranking object and then filter that. This can be done using a DRANK function in Oracle, though you may have to create the report in Freehand SQL if you want to control the context. I believe you will also need to rank in a sub-select so that you can restrict on it.