Alteryx Designer Desktop Discussions

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

Mark orders with a value

ulysses_no
7 - Meteor

Hi all!

I have a dataset that contains ORDERS with SKU and BRAND. 

 

I want to:

- IF a ORDER contains BRAND = Philips Hue THEN I want to MARK all the lines within the order with "YES"

 

For example:

ORDERNO  | BRAND | SKU

1  | Philips Hue | 200

1  | Apple | 300

1  | Microsoft | 400

 

Wanted result:

ORDERNO  | BRAND | SKU | HUE FILTER

1  | Philips Hue | 200 | YES

1  | Apple | 300 | YES

1  | Microsoft | 400 | YES

 

I have tried but only manage to mark the Philips Hue line and not every line 🙂

 

 

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @ulysses_no 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1641291597991.png

 

1. Using filter tool to filter only rows with Brand Philips Hue

2. Using count record to get count of record with Brand Philips Hue

3. Using find and replace tool to map the count to order

4. Using formula if count>0 (I,e at least one row Brand is Philips Hue) the Flag HUE FILTER as yes

 

Hope this helps : )

RolandSchubert
16 - Nebula
16 - Nebula

Hi @ulysses_no ,

 

you can select the oder lines cvontaining "Philis Hue", create a list of orderno and Join this list to the complete orders list:

 

2022-01-04_11-13-05.jpg

 

Let me know if it works for you.

 

Best,

 

Roland

ulysses_no
7 - Meteor

Both solutions works, but Rolands was easier for me. Thank you both for using your time to help me ❤️ 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @ulysses_no 

Cheers and have a nice day!

Labels