Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Iterating to Find Combinations

MysticalAz
8 - Asteroid

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 REPLIES 10
ShankerV
17 - Castor

Hi @MysticalAz 

 

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

 

Please find the solution below.

 

Shanker V

MysticalAz
8 - Asteroid

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

ShankerV
17 - Castor

Hi @MysticalAz 

 

Seems some issue during the post. 

 

Few sec, pasting the solution once again.

 

Shanker V

ShankerV
17 - Castor

Hi @MysticalAz 

 

Solution attached below:

 

ShankerV_0-1668191584541.png

 

 

Shanker V

MysticalAz
8 - Asteroid

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

ShankerV
17 - Castor

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
17 - Castor

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
17 - Castor

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
17 - Castor

Hi @MysticalAz 

 

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

 

Labels