We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Grouping assistance

bvolles
8 - Asteroid

Hello,

I am hoping someone can help or at least lead me in the right direction.  My use case is I have a list of people and what I am wanting to show is if a person ONLY switches to a different package grouping.  For example if a person goes from 38PL to 38PP I would not want to see that because its within package 1 for 2016 but if a person goes from 38PL to 38PT I would want to see that because its a different package grouping as shown below.

    • 2016:
      • 1 package – 38PL, 38PP, 38PM, 38PQ, 38PN, 38PR, 38PO, 38PS
      • 2 package – 38PT, 38PX, 38PU, 38PY, 38PV, 38PZ, 38PW, 38P0
      • 3 package – 38P1, 38P2, 38P3, 38P4
    • 2017:
      • 1 package – 4EJA, 4EJC, 4EJD, 4EJE, 4EJF, 4EJG, 4EJH, 4EJI
      • 2 package – 4EJJ, 4EJK, 4EJL, 4EJM, 4EJN, 4EJO, 4EJP, 4EJQ
      • 3 package – 4EI5, 4EI6, 4EI8, 4EI9
    • 2018:
      • 1 package – 4EJJ, 4EJL, 4EJN, 4EJP
      • packages – 4EI5, 4EI6, 4EI8, 4EI9
6 REPLIES 6
Kenda
16 - Nebula
16 - Nebula

@bvolles Can you provide some sample rows of data so we can see how it is set up?

bvolles
8 - Asteroid
PersonOld PackageStartEndNew PackageStartEndDescription
1111111111138P4201601012016011938P3201601202016012670/30 package
2222222222238P3201601202016012638P4201601272016123170/30 package
3333333333338PW201601012016013138PV201602012016063080/20 package
4444444444438PW201601012016013138P3201607012016123180/20 package
5555555555538P4201601012016013138P3201602012016053170/30 package
        

 

Here is an example

Kenda
16 - Nebula
16 - Nebula

@bvolles See if the attached workbook accomplishes what you're looking for. It works for the sample data set you provided. I wasn't sure which field the years you provided in your question should match with, so I used the first start column. 

 

As you will see, I used some Find Replace tools and changed each of the packages' codes in a group to the same code. This way, you can just use a formula to check if they are the same or not. 

 

Hope this helps!

Kenda
16 - Nebula
16 - Nebula

@bvolles Attached is another way that should work using just a bunch of filters. These check if any of the values in each of the package groups is present in both the old and new columns. Here, you will want the F outputs.

bvolles
8 - Asteroid

Thank you...I am testing with the real data now...I will let you know once I validate

bvolles
8 - Asteroid

It looks like the last one is getting me what I need.  I appreciate the assistance!

Labels
Top Solution Authors