<?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: Formula Tool - Subtract Fields Question in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403699#M74367</link>
    <description>&lt;P&gt;Yeh, it's a bit weird. Usually you have to convert it all to however many decimal points you want and then the output needs to be in the same format otherwise you get really small value in scientific notation that don't technically equal 0. You can always round those values to 0 decimal places to get an integer 0 or to 2 decimal places to get 0.00. I do apologise if some of this doesn't make sense or confuses you as it's not the easiest thing to explain over text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I've attached a cleaner version of my workflow to this comment.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 05:24:04 GMT</pubDate>
    <dc:creator>nerces</dc:creator>
    <dc:date>2019-04-17T05:24:04Z</dc:date>
    <item>
      <title>Formula Tool - Subtract Fields Question</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403671#M74361</link>
      <description>&lt;P&gt;Hi! Just a quick question, it seems exceedingly basic but I cannot find anything from searching the community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I have a formula tool that creates a new Column. If the relevant fields of the incoming data&amp;nbsp;[Sum_Cash Amt], [Sum_Revenue Amt], and&amp;nbsp;[Sum_GST_IN Amt] is true in the following fashion:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-[Sum_Cash Amt] = [Sum_Revenue Amt] + [Sum_GST_IN Amt]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Sum_Cash Amt] + [Sum_Revenue Amt] + [Sum_GST_IN Amt] = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for that row, I want it to return "Risk Criteria 1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I cannot get either to work (only need one of the above, so no need for an actual OR formula, methinks). Even when I export into excel and add up the fields, they equal zero. However, the formula returns a null, as per the formula below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If -[Sum_Cash Amt] = [Sum_Revenue Amt] + [Sum_GST_IN Amt] Then "Risk Criteria 1" Else null() EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would not expect this to be the case, and hence am confused why it is not returning "Risk Criteria 1" for most of the rows. For an example, see Row 13 of the formula tool's output - although the figures add together to be nil/equal, "Risk Criteria 1" has not been returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 03:29:22 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403671#M74361</guid>
      <dc:creator>jfxh</dc:creator>
      <dc:date>2019-04-17T03:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Tool - Subtract Fields Question</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403682#M74362</link>
      <description>&lt;P&gt;Can you please post a copy of the Excel sheet. Or at least a sample of it.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 03:47:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403682#M74362</guid>
      <dc:creator>nerces</dc:creator>
      <dc:date>2019-04-17T03:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Tool - Subtract Fields Question</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403683#M74363</link>
      <description>&lt;P&gt;Hi Nerces,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you go - sorry about that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The excel sheet itself is from another work flow, which is a lot larger. Let me know if you need that too.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 03:49:29 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403683#M74363</guid>
      <dc:creator>jfxh</dc:creator>
      <dc:date>2019-04-17T03:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Tool - Subtract Fields Question</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403693#M74365</link>
      <description>&lt;P&gt;The issue is to do with your datatypes and rounding. Here is a solution. It's not the best solution but it should guide you to recognising where you went wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 04:08:11 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403693#M74365</guid>
      <dc:creator>nerces</dc:creator>
      <dc:date>2019-04-17T04:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Tool - Subtract Fields Question</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403695#M74366</link>
      <description>&lt;P&gt;Hi Nerces,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help - it works great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of curiosity, when I tried to use the select tool to convert all the fields into Fixed Decimal with 19 scale and 2 precision, and then kept my original formula it did not work like your solution did (for example, for those where the total was a small non-zero value i.e. 0.00000000001 it did not return "Risk Criteria 1").&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the sound of it, I cannot convert my fields to Fixed Decimals first, instead I need to calculate with fixed decimals as my output format and then use the formula to assess whether it is nil or not. Is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 04:50:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403695#M74366</guid>
      <dc:creator>jfxh</dc:creator>
      <dc:date>2019-04-17T04:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Tool - Subtract Fields Question</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403699#M74367</link>
      <description>&lt;P&gt;Yeh, it's a bit weird. Usually you have to convert it all to however many decimal points you want and then the output needs to be in the same format otherwise you get really small value in scientific notation that don't technically equal 0. You can always round those values to 0 decimal places to get an integer 0 or to 2 decimal places to get 0.00. I do apologise if some of this doesn't make sense or confuses you as it's not the easiest thing to explain over text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I've attached a cleaner version of my workflow to this comment.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 05:24:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403699#M74367</guid>
      <dc:creator>nerces</dc:creator>
      <dc:date>2019-04-17T05:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Tool - Subtract Fields Question</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403708#M74368</link>
      <description>&lt;P&gt;Thanks for that - I actually didn't notice you had changed the format on the multi-formula tool as well to make it fixed decimal. Will keep in mind in the future. Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 05:52:26 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-Tool-Subtract-Fields-Question/m-p/403708#M74368</guid>
      <dc:creator>jfxh</dc:creator>
      <dc:date>2019-04-17T05:52:26Z</dc:date>
    </item>
  </channel>
</rss>

