We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

IF_Then malformed statement please help

Dupuy
7 - Meteor

Hello,

 

Can you help me with my condition loop please. It is impossible for me to close it.

Here is a capture:

Dupuy_0-1677581961016.png

 

For information, the column [package delivered within 3 months] is not a string.

Dupuy_1-1677582102831.png

 

Thanks in advance for your help.

4 REPLIES 4
ShankerV
17 - Castor

Hi @Dupuy 

 

This is because, the output is tried to store as VString.

 

But "appro" is String type, but when you do + floor(...)

Post that it is numeric type.

 

Please use "appro" + tostring(floor(...))

 

This will overcome the issue as it is converted to string.

 

Many thanks

Shanker V

Dupuy
7 - Meteor

Thanks SHANKERV, 

 

With your idea, my condition is good. But the result is not good because when I have 0 in my colomn "colis livré dasn les 3 mois", i need to have "appro SPCB " in the colomn "Appro PCB". But I have [Null] so it's mean my condition doesn't work. 

Dupuy_0-1677582718451.png

 

Do you have an idea ? 

Thanks in advance. 

 

Hugo

ShankerV
17 - Castor

Hi @Dupuy 

 

Please rearrange the formula like below.

 

ShankerV_0-1677583174848.png

 

 

Many thanks

Shanker V

Dupuy
7 - Meteor

Thanks Shanker v ! it's good ! 

Labels
Top Solution Authors