Sort Chart by Descending order

Use this board to ask questions or have discussions with other Genie users.
Post Reply
FoxBill
Profound User
Posts: 40
Joined: Mon Jun 20, 2011 11:44 am
First Name: Bill
Last Name: Streit
Company Name: Fox Metro WRD
Contact:

Sort Chart by Descending order

Post by FoxBill »

I have a chart that I want to display the last x number of records for a customer. I just need to sort by date but I need to in descending order not ascending order. Due to the large number of records for each customer I am only doing x number of records so my chart does not become unreadable. Is there a way to sort in descending order? I have a logical file that sorts in descending order but the chart just sorts it back to ascending order.
FoxBill
Profound User
Posts: 40
Joined: Mon Jun 20, 2011 11:44 am
First Name: Bill
Last Name: Streit
Company Name: Fox Metro WRD
Contact:

Re: Sort Chart by Descending order

Post by FoxBill »

I was able to figure it out I just used standard SQL logic and added DESC to the field order by.
Carrie67
New User
Posts: 1
Joined: Mon Sep 08, 2025 12:24 am
First Name: Wong
Last Name: Fann
Company Name: Drift Boss
Address 1: 1687 Circle Drive Houston, TX 77032
City: San Francisco
State / Province: California
Zip / Postal Code: 12345
Country: United States
Contact:

Re: Sort Chart by Descending order

Post by Carrie67 »

Interesting challenge! Have you tried specifying the descending sort within the chart's configuration itself? Sometimes the chart engine overrides the logical file's order. Also, consider if your data source is inherently sorting ascending. If all fails, perhaps pre-sorting the data with a CTE or subquery before feeding it to the chart, for better Drift Boss like control.
Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests