I have a report that looks at the following table (simplified).
Date Customer Visits Number of Sales
Jan 05 Smith 4 2
Jan 05 Jones 8 3
Jan 05 Brown 6 4
Feb 05 Smith 6 2
Feb 05 Jones 7 5
Feb05 Brown 2 2
Etc.
The report is grouped by customer
I have a formula, @SalesRatio, that displays the ratio of sales per visit per customer.
@SalesRatio
Sum ({Visits}, {Customer}) / iif(Sum ({Number of Sales}, {Customer})= 0, 1, Sum ({Number of Sales}, {Customer}))
However when I try to sort the report by @SalesRatio it does not appear on the list of fields that can be sorted.
I would really appreciate any help on this!!
Date Customer Visits Number of Sales
Jan 05 Smith 4 2
Jan 05 Jones 8 3
Jan 05 Brown 6 4
Feb 05 Smith 6 2
Feb 05 Jones 7 5
Feb05 Brown 2 2
Etc.
The report is grouped by customer
I have a formula, @SalesRatio, that displays the ratio of sales per visit per customer.
@SalesRatio
Sum ({Visits}, {Customer}) / iif(Sum ({Number of Sales}, {Customer})= 0, 1, Sum ({Number of Sales}, {Customer}))
However when I try to sort the report by @SalesRatio it does not appear on the list of fields that can be sorted.
I would really appreciate any help on this!!