Free Trial

Alteryx Designer Desktop Discussions

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

Multi Field Formula issue

wonka1234
10 - Fireball

Hi,

 

I am trying to do multi field formula but I don't want to adjust the first row. It shouldn't be 0.

 

wonka1234_0-1654179702930.png

wonka1234_1-1654179721282.png

wonka1234_2-1654179811493.png

 

 

 

I want to update all the rows but the first one. Anyone know how I can do this?

5 REPLIES 5
messi007
15 - Aurora
15 - Aurora

@wonka1234,

 

You can create a new column with multirow formula :

 

messi007_0-1654180251960.png

 

Then you rename the new column :

 

messi007_1-1654180306157.png

 

Attached the workflow,

Regards

IraWatt
17 - Castor
17 - Castor

Hey @wonka1234,

I like to use this logic if your column doesn't contain NULLs:

 

IraWatt_1-1654180252461.png

Make the rows that dont exist eg. the row above the first row NULL from the dropdown. Then use a formula like this:

 

 

IF [Row-1:No of Days] = NULL() THEN 0 ELSEIF

 

 

This will trigger on the first row then you can apply all the logic for the next rows after it. If do have NULLs you can use a sample tool to take the first row.

 

wonka1234
10 - Fireball

Sorry , let me clarify, The first row should not be null or 0. it should be what is previously was.

 

See Im trying to update this column, everything below the first row.

 

wonka1234_0-1654180651772.png

 

IraWatt
17 - Castor
17 - Castor

Hey @wonka1234, what do you mean by the row previous to the first row ? If you mean the row after the first row then its [Row+1:Example]. The row previous to the first row can be  set to 0 or NULL. If you want to apply some specific logic to only the first row you can use the formula I suggested.

For instance:

 

IF [Row-1:No of Days] = NULL() THEN [No of Days] ELSE [Row-1:No of Days] ENDIF

 

ChrisTX
16 - Nebula
16 - Nebula

Add a RecordId tool, then with the Multi-Row tool use a formula like

 

If [RecordID] = 1 THEN [CLOSE BAL]

ELSE [Row-1:CLOSE BAL]

ENDIF

 

Chris

Labels
Top Solution Authors