Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
djbloiss
Contributor III
Contributor III

Count if Order sum of cases shipped = sum of cases on order

I need to create an expression that counts any perfect orders, any orders that are not short shipped.

This is the expression I am trying:

=Count({$<[Order Number]={"=Sum({$<SO_Closed={1}>} [SO Order Quantity])-Sum({$<SO_Closed={1}>} [Actual Quantity])>0"} [Order Number])

Sum({$<SO_Closed={1}>} [SO Order Quantity]) gives the cases on an order

Sum({$<SO_Closed={1}>} [Actual Quantity]) gives the cases that shipped

This is giving me an 'Error in set modifier expression' error.

All the fields are in the same table in Qlikview.

What am I missing?

2 Replies
vishsaggi
Champion III
Champion III

can you try this?

=Count(Aggr(IF(Sum({$<SO_Closed={1} >} [SO Order Quantity])-Sum({$<SO_Closed={1}>} [Actual Quantity]) > 0, [Order Number]), [Order Number]))

djbloiss
Contributor III
Contributor III
Author

It is not giving me an error but I need to check if the numbers are accurate; thank you