Crystal XI
Hi
I'm trying to group my data into premium bands, ie 0-1000, 100-2000, etc, etc.
In my details i have all the transactions for each client, this grouped by client and the transactions are summed in this group. From this sum i've created a formula to put them into bands with the following:
//{@Prem Band}
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) < 5000 then "0 - 5k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 5000 to 9999 then "5k - 10k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 10000 to 14999 then "10k - 15k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 15000 to 24999 then "15k - 25k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 25000 to 49999 then "25k - 50k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) > 50000 then "50k+"
This is fine, however, i would now like to group by this formula, but it doesn't give me the option in the insert group menu. Any help or ideas? Hope this makes sense
Cheers
Hi
I'm trying to group my data into premium bands, ie 0-1000, 100-2000, etc, etc.
In my details i have all the transactions for each client, this grouped by client and the transactions are summed in this group. From this sum i've created a formula to put them into bands with the following:
//{@Prem Band}
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) < 5000 then "0 - 5k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 5000 to 9999 then "5k - 10k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 10000 to 14999 then "10k - 15k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 15000 to 24999 then "15k - 25k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) in 25000 to 49999 then "25k - 50k" else
if Sum ({ANALYSIS.GrossPremium}, {CLIENT.ClientNo}) > 50000 then "50k+"
This is fine, however, i would now like to group by this formula, but it doesn't give me the option in the insert group menu. Any help or ideas? Hope this makes sense
Cheers