Free Trial

Alteryx Designer Desktop Discussions

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

Evaluate a series of IDs within a group and flag when any of the IDs Repeats.

JPSeagull
8 - Asteroid

I am trying to resolve a challenge given me.

 

I have a series of Tasks with lines tracking actions on kits that are used which is straightforward. However, when within the same Task ID, we want to know if any of the Kits are repeated. That is, if the kits used are cycled through and then one used earlier in the series is brought back, we need to flag that. What compounds this we have NULLs which I can filter out. 


I tried to use the Multi-row formula, but I get the error that the Kit ID is an unknown variable.

 

JPSeagull_1-1643740514526.png

 

In the end, I am trying to build out a summary view like below either in Alteryx or take the pre-summarized data over to Tableau to do this.

Task IDTotal EntriesKit Repeated after Break?
10015Yes
10024No
10038No
10049Yes
100511No
10064No
100714Yes
13 REPLIES 13
atcodedog05
22 - Nova
22 - Nova

Hi @JPSeagull 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1643741276693.png

 

Hope this helps : )

 

JPSeagull
8 - Asteroid

atcodedog05 

 
Thanks for the quick reply, but this doesn't result as expected. If you look in the Kit Repeated after Break? column in the results, the 5th row with #93 is now repeated and should be 'Yes." Everything above it should N/A. However, this column header would be for a summary. So, what I looking for is only populate something in the column once that Kit number repeats within the same Task ID and that repeating means only if there is a Kit between it.
atcodedog05
22 - Nova
22 - Nova

Hi @JPSeagull 

 

Is this the expected output if not please provide the expected output.

 

atcodedog05_0-1643742964565.png

 

Hope this helps : )

 

JPSeagull
8 - Asteroid

@atcodedog05

Having a by line list helps the evaluation and this would be the results as I am looking for if a Kit ID repeated within the Task ID set (not over the entire data set).

 

Task ID Entry IDKit IDKit Repeated after Break?
1001193No
1001293No
10013241No
10014241No
1001593Yes
1002117No
1002217No
1002318No
1002484No
1003117No
1003217No
1003417No
1003517No
1003617No
1003723No
1003826No
1004122No
1004222No
100437No
1004456No
1004556No
100477Yes
100487Yes
100497Yes
1005193No
1005293No
1005393No
1005493No
1005555No
1005655No
1005741No
1005841No
1005941No
10051041No
10051141No
1006152No
1006252No
1006352No
1006421No
1007112No
1007212No
1007312No
1007412No
1007562No
1007662No
1007778No
1007878No
10071062Yes
10071112Yes
10071279No
10071412Yes

 

And a Summary View would look like this (the blank/Nulls are counted in total line entries):

 

Task IDTotal EntriesKit Repeated after Break?
10015Yes
10024No
10038No
10049Yes
100511No
10064No
100714Yes
atcodedog05
22 - Nova
22 - Nova

Hi @JPSeagull 

 

Please find the updated workflow.

 

Hope this helps : )

gabrielvilella
14 - Magnetar

Why the first two KitID 93 are set to No when you have the same 93 within the same TaskID 1001? Same question for the KitID 241.

Task ID Entry IDKit IDKit Repeated after Break?
1001193No
1001293No
10013241No
10014241No
1001593Yes
JPSeagull
8 - Asteroid

Thanks, atcodedog05 - it's close, but it helps build on it. Still looking to figure out how to evaluate each row within the Task ID group if it repeated not on itself, but only after a break. 

gabrielvilella
14 - Magnetar

Hey @JPSeagull, for the error you are getting, this is related to the field names, you have leading and trailing spaces there which are not present on your multi row. I added a dynamic rename and removed those spaces. Second issue I was able to locate was your IFF expressing had the true and false statements swapped. Lastly I added a summarize to get that final table you mentioned.

gabrielvilella_0-1643745593884.png

 

JPSeagull
8 - Asteroid

@gabrielvilella 

You asked: Why the first two KitID 93 are set to No when you have the same 93 within the same TaskID 1001? Same question for the KitID 241.

 

 Task ID  Entry ID Kit IDKit Repeated between Kit(s)?
1001193No
1001293No
10013241No
10014241No
1001593Yes

 

What we are trying to identify is if a Kit is used within an Task ID and put away that it is not brought out again after different Kit ID in the same event. That is, if 93 is used over two entries and put away for 241, then we expect not to see 93 returned to use in the same Task ID. We are not looking for how many lines in a row a kit is used. We are looking to see if a kit is repeated between other kits in the same Task. Does this explanation help?

Labels
Top Solution Authors