mrmookster
Programmer
CR10 / SQL server (SP)
I am trying to group on a summary field as follows
G1 Financial Year Quarters
G2 Bill Value bands
G3 Bill Number
where G3 sums all the bills for that bill number, and G2 groups in bands based on the formula
select <BILL VALUE>
case 0 to 249.99 : "1. under £250"
case 250 to 999.99 : "2. £250 - £1k"
case 1000 to 4999.99 : "3. £1k - £5k"
case 5000 to 9999.99 : "4. £5k - £10k"
case 10000 to 49999.99 : "5. £10k - £50k"
case 50000 to 9999999999 : "6. over £50k"
Default: "Other"
the <BILL VALUE> needs to be the sum of G3 ie
Sum ({_SP_CR0009;1.TOTAL_BIL}, {_SP_CR0009;1.BILL_NUM})
However this throws up the error "Group specified on non recurring field)
How do i evaluate the bill sum before grouping level 2 ... is this possible?
I am trying to group on a summary field as follows
G1 Financial Year Quarters
G2 Bill Value bands
G3 Bill Number
where G3 sums all the bills for that bill number, and G2 groups in bands based on the formula
select <BILL VALUE>
case 0 to 249.99 : "1. under £250"
case 250 to 999.99 : "2. £250 - £1k"
case 1000 to 4999.99 : "3. £1k - £5k"
case 5000 to 9999.99 : "4. £5k - £10k"
case 10000 to 49999.99 : "5. £10k - £50k"
case 50000 to 9999999999 : "6. over £50k"
Default: "Other"
the <BILL VALUE> needs to be the sum of G3 ie
Sum ({_SP_CR0009;1.TOTAL_BIL}, {_SP_CR0009;1.BILL_NUM})
However this throws up the error "Group specified on non recurring field)
How do i evaluate the bill sum before grouping level 2 ... is this possible?