Hello, I have the following challenge that I have trouble scripting with.
My starting data table looks like below. I would like to multiply Xi backwards starting from col2 =0 as the criteria and put the new values in a new column.
col1 col2
X1 0
X2 y2
X3 y3
…
Xn yn
XX1 0
XX2 yy2
….
XXn yyn
….
….
My end data table would look like this:
col1 col2 col3
X1 0 Xn*Xn-1*……X3*X2*X1
X2 y2 Xn*Xn-1*…..X3*X2
X3 y3 Xn*Xn-1*….*X3
…
Xn yn Xn
XX1 0 XXn*XXn-1*…..XX2*XX1
XX2 yy2 XXn*XXn-1*…..XX2
….
XXn yyn XXn
….
….
Can someone please help out? Very much appreciated!