Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Workflow Query

clarrock
8 - Asteroid

Hi 

 

How do I clean this Data? Where there are 3 Mechanics

Mechanic ID # - DateLength of Assignments
1|1/09/201951
1|10/09/201959,46
1|11/09/201946,55,67,49,60
1|13/09/201971,62
1|14/09/201940,61,65
1|16/09/201970,31,61
1|17/09/201957,58,41
1|18/09/201962,43
1|19/09/201967,32
1|2/09/201943,46
1|29/09/201942,70,47
1|3/09/201951
1|4/09/201965,75,33,53,58
1|5/09/201932,56,63
1|6/09/201941,34,62
1|7/09/201949,74,73
1|9/09/201947,36
2|1/09/201968,37,58
2|10/09/201932
2|11/09/201965,46,32,42
2|12/09/201975
2|13/09/201950,36,39
2|14/09/201959,63
2|15/09/201944
2|16/09/201962
2|17/09/201950,62,55,71
2|18/09/201942,37,33
2|19/09/201948,50,32
2|2/09/201962
2|20/09/201974,49
2|21/09/201947,52
2|22/09/201946,60,38,45
2|23/09/201954,66,69
2|25/09/201975,34,47,53,52
2|26/09/201958,63,53
2|27/09/201957
2|8/09/201927,67,73
2|9/09/201949,31,44
3|1/09/201960,37,71,74,37
3|11/09/201975,28
3|12/09/201973,48
3|13/09/201943
3|15/09/201935
3|16/09/201971
3|17/09/201971,59,30,70
3|18/09/201944
3|19/09/201942
3|2/09/201931,74,72
3|21/09/201955
3|22/09/201955,39
3|23/09/201928,43,65
3|25/09/201942,41,36,38
3|26/09/201971
3|27/09/201931,48
3|28/09/201942,47

How do I get the average assignment Length for the Mechanic with the Longest Average assignments?

 

 

 

 

2 REPLIES 2
jrgo
14 - Magnetar

@clarrock 

 

This looks pretty similar to a question on the core certification 🙂😉

 

You'll need to text to columns the first column then another text to columns on the second, but using the split to rows option. From there, use the Summarize tool to get the answer.

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @clarrock,

 

You'll need to use two text to column tools to separate out the fields and summarize the results, grouping by mechanic ID and averaging time.

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

Labels