Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Join Tool - 2 Criteria's in File B

EmilAlteryx01
8 - Asteroid

Help to create a workflow that compares File A and File B — and outputs only those records where File A has the same brand ID and quantity that is either the same or less than the quantity in File B (Only Out)

 

Match records from File A to File B where:

File A’s Brand ID matches File B’s Brand, and
File A’s Quantity is ≤ File B’s Quantity.

 

File A
Shoe IDShow Quantity Type
4274M1012497SHOE
1111S25185000SHOE
1111S2519587SHOE
4274M1014677SHOE
4274M101847SHOE
4274M10113550SHOE
1111S25125000SHOE
4274M10112199SHOE
4274M1012711SHOE
4274M1011586SHOE
4274M10121295SHOE
4274M10161099SHOE
4274M1015836SHOE

 

File B
Shoe IDIn/OutQuantity
4274M101I0
4274M101O0
4274M101I-83000
4274M101O83000
1111S251I-2000
1111S251O2000
4274M101I0
4274M101O0
4274M101I-114700
4274M101O114700
4274M101I-110500
4274M101O110500
4274M101I-143000
4274M101O143000
4274M101I-263300
4274M101O263300
1111S251I-8000
1111S251O8000


Expected Output - : 1 Worksheet Label Shoe Check (2 Tabs labelled - WareHouse OK and - To Be ReChecked)
4274M101 (126297 ≤ 714500) →  WareHouse OK
1111S251 (126297 > 10000) → To Be ReChecked

 

 

5 REPLIES 5
alexnajm
18 - Pollux
18 - Pollux

I think you highlighted to logic pretty well, so I would just start with each part and work through it

 

  • "Only Out" --> filter the data down on [In/Out]="O"
  • Aggregate the data on each side to the summed amounts per Shoe ID - Summarize tools
  • Join on Shoe ID
  • Formula to calculate column based on summed show quantity versus summed quantity to split into "Warehouse Ok" versus "To be Rechecked"

Try it out and let us know what questions you have!

EmilAlteryx01
8 - Asteroid

Thanks Alex - how do i incorporate the below check thou - outputs only those records where File A has the same brand ID and quantity that is either the same or less than the quantity in File B 


4274M101 (126297 ≤ 714500) → WareHouse OK
1111S251 (126297 > 10000) → To Be ReChecked

EmilAlteryx01
8 - Asteroid

EmilAlteryx01_0-1749666669413.png

 

alexnajm
18 - Pollux
18 - Pollux

Great job so far!

 

As mentioned, a Formula to calculate column based on summed show quantity versus summed quantity to split into "Warehouse Ok" versus "To be Rechecked". You can't apply this with a join tool, so you need to calculate it and either use that column to split to your two outputs or filter on it and output from there

Qiu
21 - Polaris
21 - Polaris

@EmilAlteryx01 
I think this is what @alexnajm means. 😁

0610-EmilAlteryx01.png

Labels
Top Solution Authors