The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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

IF formula within IF formula

Barclaysusercds
Asteroide

Hi, I am trying to re-create this excel formula =IF(C2="",IF(D2="",E2,D2),C2) in Alteryx.

I wrote the below but the formula is only giving me stage 1. The second IF is not working. No error messages appear.

I tried both these formulae

Please can you help. Thanks in advance.

 

IF [Stage 1 DataLens Trade ID matched]="" THEN (IF [Stage 2
Business mapping]="" THEN [Stage 3 Assumption based] ELSE [Stage 2
Business mapping] ENDIF) ELSE [Stage 1 DataLens Trade ID matched] ENDIF

 

IF [Stage 1 DataLens Trade ID matched]="" THEN IF [Stage 2
Business mapping]="" THEN [Stage 3 Assumption based] ELSE [Stage 2
Business mapping] ENDIF ELSE [Stage 1 DataLens Trade ID matched] ENDIF

16 RESPUESTAS 16
binu_acs
Polaris

@Barclaysusercds Can you try 

IIF(IsEmpty([Stage 1 DataLens Trade ID matched]), IIF(IsEmpty([Stage 2 Business mapping]), [ Stage 3 Assumption based], [Stage 2 Business mapping]), [ Stage 3 Assumption based])
grazitti_sapna
Cástor

Hi @Barclaysusercds , try this 

grazitti_sapna_0-1652797751186.png

IIF([Stage 1 DataLens Trade ID matched]="",IIF([Stage 2 Business mapping]="",[Stage 3 Assumption based],[Stage 2 Business mapping]),[Stage 1 DataLens Trade ID matched])

 

I hope this works!

 

Thanks!

Sapna Gupta
Barclaysusercds
Asteroide

No it did not work. It did not pick up stage 1.

binu_acs
Polaris

@Barclaysusercds can you try this

IIF(IsEmpty([Stage 1 DataLens Trade ID matched]), IIF(IsEmpty([Stage 2 Business mapping]), [ Stage 3 Assumption based], [Stage 2 Business mapping]), [Stage 1 DataLens Trade ID matched])

  

Barclaysusercds
Asteroide

No it did not work. It did not consider stage 2 or stage 3

binu_acs
Polaris

@Barclaysusercds Can you provide some sample data?

binu_acs
Polaris

@Barclaysusercds The formula I provided working fine for me. May be if you can provide some data we will check

 

binuacs_0-1652799218159.png

 

grazitti_sapna
Cástor

@Barclaysusercds  could you provide us some input and output required, as per my screenshot row 3 returned the value of the stage 1 result.

The other thing could be instead of empty the fields have null values. Give this a try

IIF(ISNULL([Stage 1 DataLens Trade ID matched]),IIF(ISNULL([Stage 2 Business mapping]),[Stage 3 Assumption based],[Stage 2 Business mapping]),[Stage 1 DataLens Trade ID matched])

 

Thanks!

Sapna Gupta
Barclaysusercds
Asteroide

I am trying to upload an example but it's not allowing me to upload excel. It's taking a very long time.

Etiquetas
Autores con mayor cantidad de soluciones