ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula

fatihcilgin
Átomo

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 RESPUESTAS 4
caltang
17 - Castor
17 - Castor

Like so?

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
fatihcilgin
Átomo

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
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.

Etiquetas
Autores con mayor cantidad de soluciones