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.

Data set should process per grouping

Myusrename001
8 - Asteroid

Team,

Below is the input and output reference provided on data set -requires modification on grouping based on below criteria.

 ***Since we have same Group, the 2nd line or subsequent line should show always 3 digits if length is 6

 ***Since we have same Group, the 2nd line should show always 3 digits if length is 6, the corresponding grouplenth should           also change

*** Since we have 2 grouping tx ref counter 3,4 - the limit of the count of grouplegnth should not cross 25 character at the             same time should not break the grouping txn ref counter

also provided the screenshot referencing on the changes. 

 

Input Data
tx ref counterCom-1CountOutputLengthGroupLength
11195894966
***221957219612
11195718366
***221957192612
222196315
223198318
224203321
31195718766
31219139
313194312
314199315
421957184621
422957189-1901010
423200313
511957186619
512195322
51319733
51420136
621957185612
622188315
623193318
624202321

 

Expected output
tx ref counterCom-1CountOutputLengthGroupLength
11195894966
22121939
11195718366
22119239
222196312
223198315
224203318
31195718766
31219139
313194312
314199315
42195718466
422957189-1901016
423200319
51195718666
51219539
513197312
514201315
62195718566
62218839
623193312
624202315

 

Myusrename001_0-1650773595790.png

Thank you,

 

2 REPLIES 2
JarekSkudrzyk
11 - Bolide

@Myusrename001 hi, could you please specify which column indicates the change of "Group"?

If it Is "tx ref counter" could you please explain why "957192" in the 4th row should be changed to "192" given this is a new group?


JarekSkudrzyk
11 - Bolide

@Myusrename001 please take a look at my proposed solution (it assumes the group is defined by column "tx ref counter")

Labels
Top Solution Authors