Alteryx Designer Desktop Discussions

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

Match values or group of values for 2 different columns

McFly
5 - Atom

Hello everyone.

I would like to match any single value from column A that would match to a group of several values in column B and vice versa.


I suppose I need multi-row formula and probably an iterrative macro since I need to check each row for each column but I might be wrong.

Here is an exemple :

 

chrome_reaNSy1bwA.png

Thanks a lot for your help!

2 REPLIES 2
Yoshiro_Fujimori
15 - Aurora

@McFly ,

To make it simple, I would pick all the combinations of "3" numbers from Value B. (Not 2, 4...)

Then compare the sum of the 3 numbers with Value A.

If you want to check 2 or 4 or more numbers, you may modify the macro.

( It might be possible to parameterize the number 2/3/4..., but I would stop here as it takes more time...)

 

Main flow

Yoshiro_Fujimori_0-1678284999006.png

Macro

Yoshiro_Fujimori_1-1678285016686.png

Good night. 😪

McFly
5 - Atom

Hello Yoshiro. This is a great start, thank you for the time you put into this.

I'll start from your proposition and iterate now.

Have a great day

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels