Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

If Statement, Count, and Group By

ashleyinman
8 - Asteroid

This is the data set I have

OrderStatusType
1 Ship
1ClosedReturn
1ClosedShip 3PL
1ClosedReturn 3pl
2ClosedShip
2ClosedReturn
2ClosedShip 3PL
2ClosedReturn 3pl
3ClosedShip
3ClosedReturn
4 Ship
4ClosedReturn

 

I would like to be able to add a new column that would count the orders that have all Status "Closed" for the order.

So Order 2 and 3 are the only ones that would be counted.

Order 1 and 4 would not count because there are statuses with nothing.

5 REPLIES 5
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @ashleyinman,

 

Not sure exactly what you want the output to look like for the example?

 

Kind regards,

Jonathan

Emmanuel_G
13 - Pulsar

Hi @ashleyinman ,

 

Here's an attached solution which keep only orders without occurrences of null status.

 

Let me know if it works as you want.

 

Cheers !

Emmanuel_G_0-1657555845109.png

 

DataNath
17 - Castor
17 - Castor

Here's one way if you want to keep all records but only show a count of 100% closed orders:

 

DataNath_0-1657555983991.png

 

Another option with reduced tools (v2):

 

DataNath_0-1657556797898.png

Amol_Telore
11 - Bolide

Hey @ashleyinman 

 

Here is my solutions. If i am not wrong, you need 1 and 4 as well in the output without count. Is it correct?

 

Amol_Telore_0-1657555997381.png

 

binuacs
21 - Polaris

@ashleyinman one way of dong this

 

binuacs_0-1657556119143.png

 

Labels
Top Solution Authors