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.
SOLVED

Multi Row Formula not working?

HW1
9 - Comet

I want the date value to move up 3 places but the formula is not giving any output

I need the date value to move up 3 places e.g. Date value in RecordID 21 should be at RecordID 18

RecordIDDate
1 
3 
4 
6 
8 
10 
12 
14 
16 
17 
18 
19 
20 
2131/03/2021
22 
23 
24 
2531/03/2021
26 
27 
28 
2931/03/2021
30 
31 
32 
3331/03/2021
34 
35 
36 
3731/03/2021
38 
39 
40 
4131/03/2021
42 
43 
44 
4531/03/2021
46 
47 
48 
4931/03/2021
50 
51 
52 
53 
5531/03/2021
57 
58 
60 
6231/03/2021
64 
65 
67 
6931/03/2021
71 
72 
74 
7631/03/2021
78 
79 
81 
8331/03/2021
85 
86 
88 
9031/03/2021
92 
93 
95 
9731/03/2021
99 
100 
102 
10431/03/2021
106 
107 
109 
11131/03/2021
113 
114 
116 
11831/03/2021
120 
121 
123 
12531/03/2021
127 
128 
130 
13231/03/2021
134 
135 
137 
13931/03/2021
140 
141 
142 
143 
14431/03/2021
145 
146 
147 
14831/03/2021
149 
150 
151 
152 
153 
154 
155 
156 
157 
158 
159 
160 
161 
162 
163 
164 

 

The multi row formula I am using is:

 

IF !ISEMPTY([DATE])
THEN [Row-3:Date]
ELSE NULL()
ENDIF

 

HW1_0-1620263447980.png

 

 

However I am not getting any output.

 

Why is it so?

 

Please find example workflow attached

1 REPLY 1
fmvizcaino
17 - Castor
17 - Castor

Hi @HW1 ,

 

You need to build your expression thinking about the current row, so translating your expression, it would mean:

If the current row is not empty, then I get the data 3 rows above and copy it.

IF !ISEMPTY([DATE])
THEN [Row-3:Date]
ELSE NULL()
ENDIF

 

The expression should look like this.

IF !ISEMPTY([Row+3:Date])
THEN [Row+3:Date]
ELSE NULL()
ENDIF

 

 

Best,

Fernando V,

Labels
Top Solution Authors