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

Alteryx Designer Desktop Discussions

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

Keep Rows based off value in another column

bchen1
6 - Meteoroid

Hi everyone,

 

I have a list of products and various "versions" associated with each. Some products have multiple versions and some only have 1 version. I want to have 1 row per product with the following priorities/rules:

 

Priority: Final > Second > First. Keep only 1 version of a product.

 

Current

Product NameVersion
Product ABCFirst
Product ABCFinal
Product AAFirst
Product AASecond
Product ABFinal
Product ACSecond

 

Desired Output

Product NameVersion
Product ABCFinal
Product AASecond
Product ABFinal
Product ACSecond

 

Any ideas on the best way to go about doing this? Thank you!!

4 REPLIES 4
OllieClarke
15 - Aurora
15 - Aurora

Hey @bchen1 

 

Here's how I'd do this:

OllieClarke_0-1664899149691.png

I've used a text input to set the desired order, but you could have this as an external lookup for ease of updating....

 

Ollie

 

binuacs
21 - Polaris

@bchen1 One option to use the summarise tool

 

binuacs_0-1664899455626.png

 

Emmanuel_G
13 - Pulsar

@bchen1 

 

One way of doing that in attachement.

Emmanuel_G_0-1664899981099.png

 

bchen1
6 - Meteoroid

Thanks everyone. All options work - appreciate the help!!

Labels