I want to group report results by a category code related to the sum of a field. Specifically, the query returns sales at a detail level. GF2 grouping is by Customer (with sum[sales]) I would like to have a GF1 grouping by volume category (0-100, 100-500, etc.). I have a formula which associates each customer with the range group:
IF Sum ({t1.sales}, {t1.customer})<100 then 1 else
IF Sum ({t1.sales}, {t1.customer})>=100 and Sum ({t1.sales}, {t1.customer})<=500 then 2 else
IF Sum ({t1.sales}, {t1.customer}) >500 and Sum ({t1.sales}, {t1.customer}) <=1000 then 3 else
etc....
But I can't use this to set up a grouping.
Is there anyway to do this?
Doug
IF Sum ({t1.sales}, {t1.customer})<100 then 1 else
IF Sum ({t1.sales}, {t1.customer})>=100 and Sum ({t1.sales}, {t1.customer})<=500 then 2 else
IF Sum ({t1.sales}, {t1.customer}) >500 and Sum ({t1.sales}, {t1.customer}) <=1000 then 3 else
etc....
But I can't use this to set up a grouping.
Is there anyway to do this?
Doug