The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Iterating to Find Combinations

mystasz
Asteroide

Hello Community,

 

In the attached document, I have a dataset (CombinationsData tab) which is just a reference table to find all the different combinations. Then I have my data (ActualData tab) which displays my raw data. For each combination of SecurityPoint1 and SecurityPoint2, I have to look it up in the ActualData to see if both points exist AND the JobRole matches. 

 

If they match, I need to take the Violation from CombinationsData tab and apply it to my output. 

 

Example:

Under CombinationsData for Templates ID T00379 and T10101, JobRole Clinical Staff and Surgeon, Security Point 1 = 124 and Security Point 2 = 33 exists

Under ActualData Security Points column 124 and 33 exist for Clinical Staff only (highlighted in yellow)

In the Expected Output, only the Clinical Staff row should populate

 

Any idea how I can approach this? I have about 60k combinations and 5 million rows of data in my actual dataset. 

10 RESPUESTAS 10
ShankerV
Cástor

Hi @mystasz 

 

Yes, its possible via Filter tool, Join and Multi row formula..

 

Please find the solution below.

 

Shanker V

mystasz
Asteroide

Thank you. I don't see a solution, can you try reattaching?

ShankerV
Cástor

Hi @mystasz 

 

Seems some issue during the post. 

 

Few sec, pasting the solution once again.

 

Shanker V

ShankerV
Cástor

Hi @mystasz 

 

Solution attached below:

 

ShankerV_0-1668191584541.png

 

 

Shanker V

mystasz
Asteroide

Would you be able to attach your workflow so I can see whats in the joins and the formulas?

ShankerV
Cástor

Step 1: Insert Combination data 

 

ShankerV_0-1668191950747.png

 

 

Step 2: Use filer to include only Clinical staff

 

ShankerV_1-1668191988853.png

 

 

Step 3: Use the Record ID tool 

 

ShankerV_2-1668192003298.png

 

ShankerV
Cástor

Step 4: Input Actual data

 

ShankerV_0-1668192072892.png

 

Step 5: Use the join L node from Record ID

R node from Actual data

 

ShankerV_1-1668192138121.png

 

Step 6: Create one more join with same L and R node

But join by specific fields will be different

 

ShankerV_3-1668192198107.png

 

 

 

 

 

ShankerV
Cástor

Step 8: Formula tool

 

ShankerV_0-1668192264495.png

 

 

Next join both formula tools

 

ShankerV_1-1668192303735.png

 

 

Next comes the last formula tool

 

ShankerV_2-1668192329769.png

 

Used Select tool to remove the unwanted columns

 

ShankerV_3-1668192358545.png

 

 

 

 

ShankerV
Cástor

Hi @mystasz 

 

I have explained the solution, can you please replicate the same in your Alteryx.

 

Sorry couldn't attach the workflow as my Alteryx version is not updated, so couldn't save the workflow.

 

ShankerV_0-1668192497113.png

 

Etiquetas
Autores con mayor cantidad de soluciones