Alteryx Designer Desktop Discussions

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

Replacing data on one row, with the information from the row above

DaleN24
6 - Meteoroid

Hello 

 

I have data imported to Alteryx with the following detail

AccountDescriptionDebitCredit
966Called up share capital  
/1Share capital 1
968Profit and loss account  
/1Brought forward326102.3 

 

In the account column, where the detail is shown as "/1" i need to replace that with the data from the row above in each case. This affects multiple lines but in every case just requires that data to be replaced with the data from one row up in the same column. 

It can also be different numbers such as "/2" or "/3", which isn't determined by the number above.

 

Is this something simple to do in Alteryx with a formula or tool im unaware of. The replace tools appear to require a second input showing what to replace the data with, which wouldn't work in my case.

2 REPLIES 2
DavidP
17 - Castor
17 - Castor

Hi @DaleN24 

 

You can use a multi-row formula tool to update [Account] with the following formula:

 

if contains([Account],"/") then [Row-1:Account] else [Account] endif

DaleN24
6 - Meteoroid

Thanks David

 

That works great

 

 

Labels