<?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: Data Load Editor Syntax for Calculations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-Syntax-for-Calculations/m-p/2046776#M86101</link>
    <description>&lt;P&gt;Beside catching NULL within the status you may also consider to use rangesum() instead of +- operators between the fields because each non-numeric value will cause NULL as result.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 12:41:43 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-03-08T12:41:43Z</dc:date>
    <item>
      <title>Data Load Editor Syntax for Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-Syntax-for-Calculations/m-p/2046532#M86083</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I'm trying to do a couple simple conditional calculations in the data load editor.&lt;BR /&gt;They work for some rows, but I'm finding if any of the values of calculation is blank / null, the whole calculation comes back as 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bookings:&lt;BR /&gt;Load&lt;BR /&gt;Deal_ID,&lt;BR /&gt;IF([Deal Status]='won',[Deal Total Value]+[Rebate],0) as 'Deal Bookings'&lt;BR /&gt;,IF(Status='won',Value_Of_Deal+Rebate-CostofGoods-,0) as 'Deal GM'&lt;BR /&gt;RESIDENT [Deals];&lt;/P&gt;
&lt;P&gt;Do I need to be casting the values as a certain data type? Or trying to convert the nulls?&lt;BR /&gt;Is there a better syntax I should be considering?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Andy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 04:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-Syntax-for-Calculations/m-p/2046532#M86083</guid>
      <dc:creator>AndyQuirin1</dc:creator>
      <dc:date>2023-03-08T04:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor Syntax for Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-Syntax-for-Calculations/m-p/2046551#M86084</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Are you looking, if Deal status is either WON or Null, do you want to do the logic instead of 0?&lt;/P&gt;
&lt;P&gt;If so, try like below&lt;/P&gt;
&lt;P&gt;If(Coalesce([Deal Status, 'won')&amp;nbsp; = 'won',&amp;nbsp;&lt;SPAN&gt;[Deal Total Value]+[Rebate],0) as 'Deal Bookings'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 05:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-Syntax-for-Calculations/m-p/2046551#M86084</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2023-03-08T05:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load Editor Syntax for Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-Editor-Syntax-for-Calculations/m-p/2046776#M86101</link>
      <description>&lt;P&gt;Beside catching NULL within the status you may also consider to use rangesum() instead of +- operators between the fields because each non-numeric value will cause NULL as result.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 12:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-Editor-Syntax-for-Calculations/m-p/2046776#M86101</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-08T12:41:43Z</dc:date>
    </item>
  </channel>
</rss>

