<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using formula tool to produce text, currently only showing 0 in output column. in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259064#M313862</link>
    <description>&lt;P&gt;That's done it thank you very much!&lt;/P&gt;</description>
    <pubDate>Sat, 06 Apr 2024 10:38:40 GMT</pubDate>
    <dc:creator>Deano_280</dc:creator>
    <dc:date>2024-04-06T10:38:40Z</dc:date>
    <item>
      <title>Using formula tool to produce text, currently only showing 0 in output column.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259058#M313858</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to produce a text output which is based off comparing two numeric columns. Formula I'm using below however the output only shows 0 instead of the text shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Age, Comments and Commentary columns all set to V_String.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF&lt;BR /&gt;[AGE]&amp;lt;[Comments] then [Commentary] = "within policy"&lt;BR /&gt;elseif [AGE]&amp;gt;=[Comments] then [Commentary] = "outside of policy"&lt;BR /&gt;ELSE&lt;BR /&gt;Null()&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 10:17:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259058#M313858</guid>
      <dc:creator>Deano_280</dc:creator>
      <dc:date>2024-04-06T10:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using formula tool to produce text, currently only showing 0 in output column.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259059#M313859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/479046"&gt;@Deano_280&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;IF ToNumber([AGE])&amp;lt;ToNumber([Comments])&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;THEN "within policy"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;ELSEIF ToNumber([AGE])&amp;gt;=ToNumber([Comments])&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;THEN "outside of policy"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;ELSE Null()&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;ENDIF&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Shanker V&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 10:25:18 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259059#M313859</guid>
      <dc:creator>ShankerV</dc:creator>
      <dc:date>2024-04-06T10:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using formula tool to produce text, currently only showing 0 in output column.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259061#M313860</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/479046"&gt;@Deano_280&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Result for Formula tool.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/348666i490DDE85AE335452/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Result for Formula tool.png" alt="Result for Formula tool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have done the modification in the formula shared,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Added tonumber() this helps to convert string to number checking age &amp;gt; comments&lt;/P&gt;&lt;P&gt;2. After THEN removed the column name, as it is given at the top&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Shanker V&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 10:29:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259061#M313860</guid>
      <dc:creator>ShankerV</dc:creator>
      <dc:date>2024-04-06T10:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using formula tool to produce text, currently only showing 0 in output column.</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259064#M313862</link>
      <description>&lt;P&gt;That's done it thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 10:38:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Using-formula-tool-to-produce-text-currently-only-showing-0-in/m-p/1259064#M313862</guid>
      <dc:creator>Deano_280</dc:creator>
      <dc:date>2024-04-06T10:38:40Z</dc:date>
    </item>
  </channel>
</rss>

