Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multi row function to find the previous month price and cogs

lintorrey
5 - Atom

Hi there,

 

I need to find the price/t and cogs/t from the previous months for the Year Period has volumes (column Volume Last Mith Mix).

I used Multi row function and wrote the expression as follows but it didn't work. please help and thank in advance!

 

IF NOT IsNull([Volume Last Mth Mix]) AND
IsNull([price/t])
THEN [Row-1:price/t]
ELSE [price/t]
ENDIF

2 REPLIES 2
Gaurav_Dhama_
12 - Quasar

Hi @lintorrey,

 

Use the below formula instead.

if !isnull([Volume Last Mth Mix]) and isnull([price/t]) then [Row-1:price/t] else [price/t] endif
Raj
16 - Nebula

@lintorrey 
replace "NOT" with "!" and this should work.

Labels
Top Solution Authors