Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Custom Formula Functions

jboschee
Astéroïde

Hi all,

 

I'm trying to create a formula that will pull numbers from certain fields and multiply them.   Something like this:

 

If X = Y then (Price*Pack*Units in Pack)

If X = Z then (Price*Pack)

 

Any help would be appreciated.

 

Thanks!

4 RÉPONSES 4
gnans19
Bolide

@jboschee

 

Should be straight formula using If

 

If X=Y THEN [Price]*[Units in Pack] ELSE [Price]*[Pack] ENDIF

 

4.png

 

 

jboschee
Astéroïde

That's what I originally went with, but I'm getting an error for unknown variable for Y

gnans19
Bolide

May be you have space in column name. Try to use square bracket [Y]

jboschee
Astéroïde

I think I need it to say if column X contains Y then 

Étiquettes