Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula

fatihcilgin
5 - Atom

Hello,

I want to make this formula for horizontal change, is it possible ?

 

IF IsEmpty([Column Name])
THEN [Row-1:Column Name]
ELSE [Column Name]
ENDIF

 

For instance,   

 Column Name: A      B     C     D      E    F

                        100, null, null, 200, null, null,

 

these are my column name,  I want is to if B column is null or empty take data from column A. 

As a result I want to see "100" in column B.

4 REPLIES 4
caltang
17 - Castor
17 - Castor

Like so?

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
fatihcilgin
5 - Atom

Yes I want like this and I know this method but ı am looking for easiest way, I thought that maybe there is a just one specific tool for this purpose. But thanks a lot

caltang
17 - Castor
17 - Castor

The way I showed is the most dynamic as it takes in new columns. If your data is fixed, then you could use a formula tool, but the IF statement will be a nightmare. 

 

If it helps, kindly mark it as an accepted solution to close the thread. Thanks.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
flying008
15 - Aurora

Hi, @fatihcilgin 

 

Maybe you can building a UDF tool for your requirement by yourself.

Case: If the selected fileds [C] and [F] are null, then return value of left 2nd column. (Like [A] and [D])

 

录制_2023_10_30_10_09_56_747.gif

 

******

Due to security policies, I am unable to upload any .yxm* files. So you need DIY.

Labels
Top Solution Authors