Alteryx Designer Desktop Discussions

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

Multi Row Formula Help

WestonProhaska
8 - Asteroid

Hi Everyone, I'm back with a question about the multi row formula tool. 

So, I have data that looks like this that I've used a find replace to set up and see if its even possible to do. 

AccountAccount descXYZAcct2 Account desc2x2y2z2
32KS64012ABCISMKTG2700null null nullnull null
32KS64209DEFISMKTG720032KS6420DEGISMKTG4500
32KS64012GHIISMKTG1200nullnullnullnullnull

 

The information starting at Acct2 and onward is appended based on similarity because they are new accounts. I want to keep the ordering of my data on the left but add the new information in rows below where the Account is similar. So the new information would look like this essentially. 

 

AccountAccount descXYZAcct2 Account desc2x2y2z2
32KS64012ABCISMKTG2700null null nullnull null
32KS64209DEFISMKTG720032KS6420DEGISMKTG4500
32KS6420DEGISMKTG4500nullnullnullnullnull
32KS64012GHIISMKTG1200null null nullnullnull

 

What is left over on the last fields from acct2 and on doesn't matter to me as I won't need them after adding it to the row below.

I can provide you examples of the data sets before appending them if you think using something other than a multi row formula tool would be better suited. 

 

Thank you in advance!!

11 REPLIES 11
Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @WestonProhaska ,

 

An example of the data before appending would be useful if you can provide it.

 

Also, how do you characterise the "similarities" ? On a particular field ?

 

Kind regards,

 

Jean-Baptiste

fmvizcaino
17 - Castor
17 - Castor

Hi @WestonProhaska ,

 

Attached is an example showing how to get the result you want from the appended data you shared.

 

I'm not sure it is the easiest way, but it does the job.

Let me know if that works for you.

Best,

Fernando Vizcaino

WestonProhaska
8 - Asteroid

@Jean-Balteryx

 

This is Data set one thats in the order I want to keep

 

Account

Account descXYZ
32KS64012005ABCISMKTG2700
32KS64209003DEFISMKTG7200
32KS64012001GHIISMKTG1200

This is the data I've appended.

I basically want every new record appended into a position relative to the old. I appended based on similar beginnings in Account. 

 

Account

Account descXYZnew or old
32KS64209017ABCISMKTG2700new
32KS64209100DEFISMKTG7200new
32KS64209101GHIISMKTG1200new
Jean-Balteryx
16 - Nebula
16 - Nebula

@WestonProhaska ,

 

I attached a workflow doing what I think may solve your problem.

 

Basically it unions your data in a single table then sort on the account description alphabetically.

 

Don't hesitate if you have questions or want more details.

 

Kind regards,

 

Jean-Baptiste

WestonProhaska
8 - Asteroid

 

@Jean-Balteryx , @fmvizcaino 

First, thank you both for taking the time, but it doesn't quite achieve what I want. 

I'll clarify. 

 

My data currently looks like this. 

 

Set 1

AcctAcct Descbs/islevel balance
800xxxx
601xxxx
700xxxx
603xxxx
500xxxx

Set 2

AcctAcct Descbs/islevel balancenew or old
501xxxxnew
602xxxxnew
701xxxxnew
604xxxxnew
502xxxxnew

My desired end data 

AcctAcct Descbs/islevel balancenew or old
800xxxx 
601xxxx 
602xxxxnew
700xxxx 
701xxxxnew
603xxxx 
604xxxxnew
500xxxx 
501xxxxnew
502xxx new

 

I should have layed this out clearer. I absolutely have to keep the ordering from the original data and just add the new accts based upon that ordering. Sorting will mess it up. 

Thanks again for helping out guys. Hopefully we can find a solution

fmvizcaino
17 - Castor
17 - Castor

Hi @WestonProhaska ,

 

Can you share some real accounts? Because it's possible to develop something that simplifies your problem.

Do the accounts have the same number os characters or could be more or less?

 

Best,

Fernando Vizcaino

WestonProhaska
8 - Asteroid

@fmvizcaino 

Here's some from real account numbers where order needs to stay the same

32KS64209014
32KS64209016
32KS64002003
32KS64001011
32KS64011012
32KS64209002
32KS64001002
32KS64209012

Here's some of the new ones that need to be added where the length differs 

32KS6420
32KS64209017
32KS64209100
32KS64209101
32KS64209102
fmvizcaino
17 - Castor
17 - Castor

@WestonProhaska ,

Sorry, would you be able to explain a little more? 

 

It would be nice if you could show in different color new accounts being inserted, as below, but also varying the string size

fmvizcaino_0-1576107076242.png

 

Thank you!

WestonProhaska
8 - Asteroid

@fmvizcaino 

 

The end data would look like this. From the originals above. 

 

32KS6420
32KS64209014
32KS64209016
32KS64209017
32KS64209100
32KS64209101
32KS64002003
32KS64001011
32KS64011012
32KS64209002
32KS64001002
32KS64209012

 

71008348
72008500
71008450
70008210
53007000
53007200
52007000
52007200
52207000
52207200
90009050
90009010
54007000
54007200
71008365

Could also look like this as my end goal

71008348
71008365
72008500
71008450
70008210
54007000
54007200
53007000
53007200
52007000
52007200
52207000
52207200
90009050
90009010
Labels