Alteryx Designer Desktop Discussions

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

Change the TRUE in a column to the Column Title word

Motivator
7 - Meteor

High, I am trying to change the "TRUE" (Bool) return in a column to show the Column Heading/title word such as "Residential"

 

I am using a formula, 

 

Motivator_0-1632243552030.png

 

But the last part says "Malformed IF statement"

 

Please can I have some help?

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

_

Luke_C
17 - Castor

Hi @Motivator 

 

Your statement looks to be incomplete. The syntax is IF ... Then... Else... Endif

 

So with your example: (using null as the else clause but you can put anything)

IF [Residential] = "TRUE"

Then "Residential"

Else null() 

Endif

Motivator
7 - Meteor

HI, When I use that I get "Invalid type in operator ==" for the = sign

atcodedog05
22 - Nova
22 - Nova

Hi @Motivator 

 

1st use select tool to convert it to v_string with length 20

2nd As @Luke_C mentioned. use above formual in a formula tool. 

 

Like below

atcodedog05_0-1632244505591.png

 

Hope this helps : )

 

Motivator
7 - Meteor

Luke_C and atcodedog05,

Thanks for that, I didn't have the Select change, all Working fine now.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Motivator 

Cheers and have a nice day!

Labels