Thank you for the reply. Unfortunately I can't use groupson this report.
I have continued to tinker with the formula and the following formula comes close but it sums the total for all items:
If {ProductNumber.ProductNumber}='100049'
then sum({LineItem.Quantity}) else 0
The problem with the above formula is that it SUMS all the Quantity for all items but I only want it to SUM the Quantity if the roductNumber=100049.
I think the formula should be like (doesn't work):
Sum({LineItem.Quantity}) where {ProductNumber.ProductNumber}='100049'
But I get the error message " The remaining text does not appear to be part of the formula" right before "where".
Does anyone know the syntax for a conditional SUM where it only SUMs the items the condition is based on?
Thanks,
Richard Scott