Alteryx Designer Desktop Discussions

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

Create column based on title within data

jill
5 - Atom

Hi,

I don't know how to describe this so I created an example below. My data is run from an accounting report and isn't very clean. The company name is listed and then the data below that company name are sales related to that company until the next company name. I would like to create a column for company name within the data so I can eliminate those rows and have a nice clean data table. In this example c123 and b832 should have "company 1" listed in the new column, company, and d822 should have "company 2" listed. I'm not sure how to write this formula as there is a varying quantity of data under each company. I would appreciate any help. Thanks!

 

IDREFDateAmount
Name:

Company 1

  
c123c1231/1/2020100
b832b8322/4/2020350
NameCompany 2  
d822d8223/16/2020500
NameCompany 3  
l986l9866/1/2020210
v687v6874/13/202010
4 REPLIES 4
MichaelLaRose
10 - Fireball

Hi @jill 

 

See attached.

 

Best,

Michael

smoskowitz
12 - Quasar

Hi @jill 

 

See if this works for you.

 

Seth

jill
5 - Atom

Thank you that worked perfectly!

smoskowitz
12 - Quasar

@jill 

 

Glad to help! Please mark whoever's you used as the solution when you have a chance. Have a great weekend!

 

Thanks,

Seth

Labels