Hey Mortaza,
Thanks for the quick response. Maybe there is another way we could approach this request. I think it is a pretty good idea and that other users may find it useful as well. Here is the objective: To categorize our customers into groups based on their order history. Example: Category 1 Customers order frequently and have higher dollar orders.
To achieve this, we could apply logic to a combination of the code you already presented to create a new field:
Category 1 = (Number of Invoices > 2) and (Days since last order < 200) and (Sales Volume > $1,000)
Category 2 = (Number of Invoices > 1) and (Days since last order < 300) and (Sales Volume > $1,000)
Category 3 = (Number of Invoices > 1) and (Days since last order < 600) and (Sales Volume > $750)
Category 4 = (Number of Invoices > 1) and (Sales Volume > $500)
Then we could simply sort the Category column ascending or descending. This gives our sales person a wonderfully prioritized current list.
What do you think?
Thanks again, Ben