Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Vinni2000
Contributor III
Contributor III

Count of undelivered orders

I have orders data like this

Order_number.    Item_number.    Delivery_status

1011.                                 1.                          Delivered

1011.                                  2.                          Undelivered

1012.                                  1.                           Delivered

1013.                                  1.                            Delivered 

 

 

 

So here I want the count of orders that are undelivered , here we have 2 items in one order so the thing is we consider order is delivered even if one item is delivered , we want this at order level not at item level 

3 Replies
BrunPierre
Partner - Master
Partner - Master

Perhaps?

=Count(DISTINCT {<Order_number=P({1<Delivery_status={'Delivered'}>})>} Order_number)

Vinni2000
Contributor III
Contributor III
Author

Not it's giving the count of orders that are delivered but we want undelivered count 

BrunPierre
Partner - Master
Partner - Master

Hi, from your explanation, the output for the above sample will read zero count.

=Count(DISTINCT {<Order_number=E({1<Delivery_status={'Delivered'}>})>} Order_number)