Try nvl({quantityshiprecv},0)
# suiteanalytics
k
Try nvl({quantityshiprecv},0)
c
thanks for the reply, but still same error
k
You might have to push your sums inside your case statement
Also the count distinct thing looks wrong