<?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 Use condition inside Sum() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-condition-inside-Sum/m-p/1304354#M406137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to display the savings value corresponding to a particular date using an expression.&lt;/P&gt;&lt;P&gt;I tried using the below expression but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;date(TimeStamp#([processed_date],'YYYY-MM-DD hh:mm:ss.s'),'DD/MM/YYYY')))= date(TimeStamp#('2017-01-02 00:00:00.0','YYYY-MM-DD hh:mm:ss.s'),'DD/MM/YYYY'))),&lt;/P&gt;&lt;P&gt;[Savings],&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help on this pls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2017 15:56:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-13T15:56:08Z</dc:date>
    <item>
      <title>Use condition inside Sum()</title>
      <link>https://community.qlik.com/t5/QlikView/Use-condition-inside-Sum/m-p/1304354#M406137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to display the savings value corresponding to a particular date using an expression.&lt;/P&gt;&lt;P&gt;I tried using the below expression but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;date(TimeStamp#([processed_date],'YYYY-MM-DD hh:mm:ss.s'),'DD/MM/YYYY')))= date(TimeStamp#('2017-01-02 00:00:00.0','YYYY-MM-DD hh:mm:ss.s'),'DD/MM/YYYY'))),&lt;/P&gt;&lt;P&gt;[Savings],&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help on this pls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 15:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-condition-inside-Sum/m-p/1304354#M406137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-13T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use condition inside Sum()</title>
      <link>https://community.qlik.com/t5/QlikView/Use-condition-inside-Sum/m-p/1304355#M406138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the time of the particular date is of no interest, I would suggest to floor (removing the time portion) the date before comparing. See also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-condition-inside-Sum/m-p/1304355#M406138</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2017-07-13T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use condition inside Sum()</title>
      <link>https://community.qlik.com/t5/QlikView/Use-condition-inside-Sum/m-p/1304356#M406139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faris,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;TimeStamp#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[processed_date]&lt;/SPAN&gt;,'YYYY-MM-DD hh:mm:ss.f'),'DD/MM/YYYY')&lt;BR /&gt; = date(TimeStamp#('2017-01-02 00:00:00.0','YYYY-MM-DD hh:mm:ss.f'),'DD/MM/YYYY'),&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;[Savings]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; )) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-condition-inside-Sum/m-p/1304356#M406139</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-07-13T16:11:17Z</dc:date>
    </item>
  </channel>
</rss>

