I am attempting to get a total of production per each shift of work, which there are 3. The below expression works fine for Shift 1, but Shift 2 and 3 are showing blank values. I rearranged the expression, but then Shift 2 and 3 show the same duplicated value as Shift 1.
=IIf([Shift]="1",(Sum([qtyproduced]))/((Sum([qtyruntime]+[timedown])*[piecesperhour])))
=IIf([Shift]="2",(Sum([qtyproduced]))/((Sum([qtyruntime]+[timedown])*[piecesperhour])))
=IIf([Shift]="3",(Sum([qtyproduced]))/((Sum([qtyruntime]+[timedown])*[piecesperhour])))
When I take out the first "Sum", that is when I get duplicated values in Shift 2 and 3.
Any suggestions would be greatly appreciated. I'm very new to this type of work.
Thanks,
JLF
=IIf([Shift]="1",(Sum([qtyproduced]))/((Sum([qtyruntime]+[timedown])*[piecesperhour])))
=IIf([Shift]="2",(Sum([qtyproduced]))/((Sum([qtyruntime]+[timedown])*[piecesperhour])))
=IIf([Shift]="3",(Sum([qtyproduced]))/((Sum([qtyruntime]+[timedown])*[piecesperhour])))
When I take out the first "Sum", that is when I get duplicated values in Shift 2 and 3.
Any suggestions would be greatly appreciated. I'm very new to this type of work.
Thanks,
JLF
Comment