<?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: Calculate sum if field exists in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312225#M28067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback Mary!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 17:46:43 GMT</pubDate>
    <dc:creator>joshakehurst</dc:creator>
    <dc:date>2017-08-01T17:46:43Z</dc:date>
    <item>
      <title>Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312218#M28060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to update my load script to perform the following.&amp;nbsp; I have two fields one which is always assigned to a record (Time) and a second field (compressedTime) which could exist on the record.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Check if a field exists (compressedTime) on the record and calculate the sum.&amp;nbsp; &lt;/P&gt;&lt;P&gt;2)&amp;nbsp; If the field DOES NOT exist on the record then calculate the sum of another field (Time).&amp;nbsp; &lt;/P&gt;&lt;P&gt;3)&amp;nbsp; Sum of the two fields based on the above criteria.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 16:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312218#M28060</guid>
      <dc:creator>joshakehurst</dc:creator>
      <dc:date>2017-07-28T16:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312219#M28061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In both fields - is the non exists values defined as NULL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 16:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312219#M28061</guid>
      <dc:creator>sonkumamon</dc:creator>
      <dc:date>2017-07-28T16:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312220#M28062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately no - we use a non-relational DB, so the field either exists on the record or not.&amp;nbsp; We don't insert this field on every record and then assign a NULL value if empty.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 16:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312220#M28062</guid>
      <dc:creator>joshakehurst</dc:creator>
      <dc:date>2017-07-28T16:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312221#M28063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't understand your data structure, are the fields in different tables? &lt;/P&gt;&lt;P&gt;Can you please share your original table so I can help more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 19:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312221#M28063</guid>
      <dc:creator>sonkumamon</dc:creator>
      <dc:date>2017-07-28T19:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312222#M28064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the fields are in the same table.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 22:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312222#M28064</guid>
      <dc:creator>joshakehurst</dc:creator>
      <dc:date>2017-07-31T22:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312223#M28065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ISNULL(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;compressedTime&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Time, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;compressedTime) AS CurrectTime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;AND then you can sum the calculated&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;field &lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CurrectTime)&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312223#M28065</guid>
      <dc:creator>sonkumamon</dc:creator>
      <dc:date>2017-08-01T13:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312224#M28066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is what you want.&amp;nbsp; If the compressed time is there you want to sum record time and compressed time otherwise just sum the record time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TimeProblem:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;rtime, compressedTime&lt;/P&gt;&lt;P&gt;02:35:00, 01:30:00&lt;/P&gt;&lt;P&gt;10:00:00,&lt;/P&gt;&lt;P&gt;03:30:30, 00:15:00&lt;/P&gt;&lt;P&gt;04:45:00, 02:20:00&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TimeProblem.JPG" class="jive-image image-1" height="134" src="https://community.qlik.com/legacyfs/online/172092_TimeProblem.JPG" style="height: 133.747px; width: 248px;" width="248" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Time2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/172093_Time2.JPG" style="height: 155px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312224#M28066</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-08-01T17:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum if field exists</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312225#M28067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback Mary!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-sum-if-field-exists/m-p/1312225#M28067</guid>
      <dc:creator>joshakehurst</dc:creator>
      <dc:date>2017-08-01T17:46:43Z</dc:date>
    </item>
  </channel>
</rss>

