Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

[Help] Convert Excecl formula into Alteryx Friendly Code

Arcane
7 - Meteor

Hi Folks,

 

Can someone help me convert this into Alteryx friendly code? Tried two versions of my conversion into Alteryx friendly. But, looks like I am messing up some loop.


=if(
and(
Sheet1[sheetname]="yt_a",
Sheet1[PYValue]<Sheet1[YValue]
),
if(
Sheet1[level]="7Z",
Sheet1[YValue],
if(
and(
value(Sheet1[level])>=42,
value(Sheet1[level])<=84),
Sheet1[YValue],
if(
and(
Sheet1[S_Validation]="Yes",
or(
value(Sheet1[level])=50,
and(
value(Sheet1[level])>=14,
value(Sheet1[level])<=18
)
)
),
Sheet1[PYValue],
if(
Sheet1[RecFlag]="Yes",
Sheet1[YValue]-1,
Sheet1[PYValue]
)
)
)
),
Sheet1[PYValue]
)

 

Thanks in advance. :)

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Arcane 

Can you provide some sample input and expected output It will help us get a better understanding of the usecase.

We will be happy to help : )

Arcane
7 - Meteor

Not sure if I can get a sample.

danilang
19 - Altair
19 - Altair

Hi @Arcane 

 

Can you at least post your two attempts and we'll see if we can figure out where you went wrong.

 

Also: are you getting field conversion errors or is the output not correct?

 

Dan

Labels