Ok - I am getting frustrated with this. In my group footer ({Command.usr_id}) I have to group together the names and sum each of there columns if my parameter = No and they have more thatn one listing. ie.:
Doe 0 12 15 31
Smith 5 6 27 4
Mouse 0 0 0 5
Doe 5 20 0 0 I need Doe to group and sum his colums
Doe 5 32 15 31
Smith 5 6 27 4
Mouse 0 20 0 0
I am putting my formula in the group footer: On the SUM of the field I get a "Boolan is required here"; these fields are strings - Please help me to understand why and how to fix this -
WhilePrintingRecords;
If ({?p_Department}) = "Yes" then {?p_Excel}
else
(If (Count({Command.usr_id}))>1 then
Sum ({@BATSV}, {Command.usr_id})and
Sum ({@BERV}, {Command.usr_id}) and
Sum ({@BML}, {Command.usr_id}) and
Sum ({@BLUE}, {Command.usr_id}) and
Sum ({@DEMO}, {Command.usr_id}) and
Sum ({@FL}, {Command.usr_id}) and
Sum ({@HL}, {Command.usr_id}) and
Sum ({@HOLI}, {Command.usr_id})) and
Sum ({@INJRY}, {Command.usr_id}) and
Sum ({@JURY}, {Command.usr_id}) and
Sum ({@LTR HL}, {Command.usr_id}) and
Sum ({@M RENT}, {Command.usr_id}) and
Sum ({@NEW E}, {Command.usr_id}) and
Sum ({@AFA}, {Command.usr_id}) and
Sum ({@NPL}, {Command.usr_id}) and
Sum ({@PM}, {Command.usr_id}) and
Sum ({@PL}, {Command.usr_id}) and
Sum ({@PRT DR}, {Command.usr_id}) and
Sum ({@PERSL}, {Command.usr_id}) and
Sum ({@RECAP}, {Command.usr_id}) and
Sum ({@RESTK}, {Command.usr_id}) and
Sum ({@SFTY}, {Command.usr_id}) and
Sum ({@SALES}, {Command.usr_id}) and
Sum ({@ST}, {Command.usr_id}) and
Sum ({@SL}, {Command.usr_id}) and
Sum ({@SHOP M}, {Command.usr_id}) and
Sum ({@S TRNG}, {Command.usr_id}) and
Sum ({@SICK}, {Command.usr_id}) and
Sum ({@SPS}, {Command.usr_id}) and
Sum ({@STR HL}, {Command.usr_id}) and
Sum ({@SUP}, {Command.usr_id}) and
Sum ({@TIRE P}, {Command.usr_id}) and
Sum ({@TL SUP}, {Command.usr_id}) and
Sum ({@TRN}, {Command.usr_id}) and
Sum ({@USED E}, {Command.usr_id}) and
Sum ({@UTLTY}, {Command.usr_id}) and
Sum ({@VAC}, {Command.usr_id}) and
Sum ({@TotHours}, {Command.usr_id});
Doe 0 12 15 31
Smith 5 6 27 4
Mouse 0 0 0 5
Doe 5 20 0 0 I need Doe to group and sum his colums
Doe 5 32 15 31
Smith 5 6 27 4
Mouse 0 20 0 0
I am putting my formula in the group footer: On the SUM of the field I get a "Boolan is required here"; these fields are strings - Please help me to understand why and how to fix this -
WhilePrintingRecords;
If ({?p_Department}) = "Yes" then {?p_Excel}
else
(If (Count({Command.usr_id}))>1 then
Sum ({@BATSV}, {Command.usr_id})and
Sum ({@BERV}, {Command.usr_id}) and
Sum ({@BML}, {Command.usr_id}) and
Sum ({@BLUE}, {Command.usr_id}) and
Sum ({@DEMO}, {Command.usr_id}) and
Sum ({@FL}, {Command.usr_id}) and
Sum ({@HL}, {Command.usr_id}) and
Sum ({@HOLI}, {Command.usr_id})) and
Sum ({@INJRY}, {Command.usr_id}) and
Sum ({@JURY}, {Command.usr_id}) and
Sum ({@LTR HL}, {Command.usr_id}) and
Sum ({@M RENT}, {Command.usr_id}) and
Sum ({@NEW E}, {Command.usr_id}) and
Sum ({@AFA}, {Command.usr_id}) and
Sum ({@NPL}, {Command.usr_id}) and
Sum ({@PM}, {Command.usr_id}) and
Sum ({@PL}, {Command.usr_id}) and
Sum ({@PRT DR}, {Command.usr_id}) and
Sum ({@PERSL}, {Command.usr_id}) and
Sum ({@RECAP}, {Command.usr_id}) and
Sum ({@RESTK}, {Command.usr_id}) and
Sum ({@SFTY}, {Command.usr_id}) and
Sum ({@SALES}, {Command.usr_id}) and
Sum ({@ST}, {Command.usr_id}) and
Sum ({@SL}, {Command.usr_id}) and
Sum ({@SHOP M}, {Command.usr_id}) and
Sum ({@S TRNG}, {Command.usr_id}) and
Sum ({@SICK}, {Command.usr_id}) and
Sum ({@SPS}, {Command.usr_id}) and
Sum ({@STR HL}, {Command.usr_id}) and
Sum ({@SUP}, {Command.usr_id}) and
Sum ({@TIRE P}, {Command.usr_id}) and
Sum ({@TL SUP}, {Command.usr_id}) and
Sum ({@TRN}, {Command.usr_id}) and
Sum ({@USED E}, {Command.usr_id}) and
Sum ({@UTLTY}, {Command.usr_id}) and
Sum ({@VAC}, {Command.usr_id}) and
Sum ({@TotHours}, {Command.usr_id});