Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sorting Summary Field returns

Featured Replies

Hi Everyone,

Is there a way to sort the return from a summary query? My data base has more than 9,000 orders in it, and what I would like to do is get a display for how many times a customer has placed an order.

I can use count of records which gives me a return of how many times a particular customer has placed an order and display it in the summary preview mode, but I can not figure out how to then sort the list by number of orders, so I kow which customers are placing the larges volume of orders.

Any suggestions...This owuld be very helpful to me.

Thanks,

Steve

Hi Steve,

There are probably other ways, but one way would be to create a self-join, joining the CustomerID on both sides. Create a calculation called cCountOrders (number) with:

Count(SelfJoin::OrderID)

Then create a Columnar/List report with Grouped data. Select cCountOrders and CustomerID or CustomerName. Categorize by cCountOrders and also sort by this field in descending order. You can even move the CustomerName up to the Count line and delete the body. This would give you a list of each Customer and their total order count only. smile.gif

LaRetta

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.