Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

ERROR in formula

Sa743liz-
8 - Asteroid

Hi I'm trying to do this formula but it doesn't work 

Sa743liz_0-1664406538532.png

The desire output need to look like this: 

Sa743liz_1-1664406595010.png

 

4 REPLIES 4
ChrisTX
16 - Nebula
16 - Nebula

In the THEN clause, you are outputting a string, the ELSE clause is outputting a number.

 

You'll need to convert the number to a string.  The same field cannot contain string and numeric data.

 

Sa743liz-
8 - Asteroid

V_WString

ChrisTX
16 - Nebula
16 - Nebula

If the field [12.31.21 MarketPriceBase] is a string, you can't use it in a calculation, like you're trying to do in the first part of the IF formula.

 

Look at the ToString function:  https://help.alteryx.com/20221/designer/functions

 

Can you post sample input data in a table (not a picture)?

Sa743liz-
8 - Asteroid

No problem I fix the problem using a select before the formula. Thank you

Labels
Top Solution Authors