<?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: Sum Between Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741615#M1043171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giacomo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one further question.... I want to add a further condition, where ChargeableYN=1. Where do I put this in the expression? I can add 'and' statements to text field conditions using *, but it doesn't appear to work here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2014 11:25:38 GMT</pubDate>
    <dc:creator>ndeeleysww</dc:creator>
    <dc:date>2014-11-28T11:25:38Z</dc:date>
    <item>
      <title>Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741609#M1043165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this has been asked before but I cannot get any of the answers to work!&lt;/P&gt;&lt;P&gt;I'm using QlikSense and need to sum the values of a column TimeTaken where the column CompletionDate is between two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CompletionDate={"&amp;gt;='01/04/2014'&amp;lt;='30/04/2014'"}&amp;gt;} [AmountCharged])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a test, so that eventually I can replace the hard coded values with variables I have created in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it's not working. If someone can tell me why it would stop me from pulling my hair out! (what little there is of it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay, first issue resolved - I hadn't removed the timestamp from my CompletionDate, When I did that using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(CompletionDate, 'DD/MM/YYYY') as CompletionDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then altered my expression to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CompletionDate={"&amp;gt;=01/04/2014&amp;lt;=30/04/2014"}&amp;gt;} [AmountCharged])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked. I now need to replace the hard coded values with variables, if anyone can help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Neil Deeley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 09:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741609#M1043165</guid>
      <dc:creator>ndeeleysww</dc:creator>
      <dc:date>2014-11-28T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741610#M1043166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you forgot the $ sign and you put extra ' surrounding the dates.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;sum({$ &amp;lt;CompletionDate={"&amp;gt;=01/04/2014&amp;lt;=30/04/2014"}&amp;gt;} [AmountCharged])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741610#M1043166</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-11-28T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741611#M1043167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers Giacomo! I was (slowly) getting there! If I want to add a variable rather than a hard coded date, do I just swap it out like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;sum({$ &amp;lt;CompletionDate={"&amp;gt;=StartDate&amp;lt;=EndDate"}&amp;gt;} [AmountCharged])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Neil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741611#M1043167</guid>
      <dc:creator>ndeeleysww</dc:creator>
      <dc:date>2014-11-28T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741612#M1043168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;CompletionDate={"&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)"}&amp;gt;} [AmountCharged])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The variables should have values in the same date format as CompletionDate or just numeric values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741612#M1043168</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-28T10:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741613#M1043169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you have to use the dollar-sign expansion like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum({$ &amp;lt;CompletionDate={"&amp;gt;=&lt;STRONG&gt;$(#StartDate)&lt;/STRONG&gt;&amp;lt;=&lt;STRONG&gt;$(#EndDate)&lt;/STRONG&gt;"}&amp;gt;} [AmountCharged])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741613#M1043169</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-11-28T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741614#M1043170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both. It didn't work at first, but then I changed my SET variable to LET and it worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741614#M1043170</guid>
      <dc:creator>ndeeleysww</dc:creator>
      <dc:date>2014-11-28T10:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741615#M1043171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giacomo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one further question.... I want to add a further condition, where ChargeableYN=1. Where do I put this in the expression? I can add 'and' statements to text field conditions using *, but it doesn't appear to work here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741615#M1043171</guid>
      <dc:creator>ndeeleysww</dc:creator>
      <dc:date>2014-11-28T11:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741616#M1043172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can list additional conditions inside the &amp;lt; &amp;gt; brackets separating them by the comma sign ',' like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum({$ &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;STRONG&gt;ChargeableYN={1}&lt;/STRONG&gt;, &lt;/SPAN&gt;CompletionDate={"&amp;gt;=$(#StartDate)&amp;lt;=$(#EndDate)"}&amp;gt;} [AmountCharged])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741616#M1043172</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-11-28T11:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741617#M1043173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant, thanks for your help - very much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741617#M1043173</guid>
      <dc:creator>ndeeleysww</dc:creator>
      <dc:date>2014-11-28T11:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741618#M1043174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome! I'm glad I could help.&lt;/P&gt;&lt;P&gt;If you want to know more about Set Analysis in more depth you can find useful information in the Reference Manual here &lt;A class="loading" href="https://drive.google.com/file/d/0BxOg0amRzk9vTDVpVzFYaUlGVFE/edit?pli=1" title="https://drive.google.com/file/d/0BxOg0amRzk9vTDVpVzFYaUlGVFE/edit?pli=1"&gt;https://drive.google.com/file/d/0BxOg0amRzk9vTDVpVzFYaUlGVFE/edit?pli=1 &lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(page 807).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Giacomo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 11:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Between-Dates/m-p/741618#M1043174</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-11-28T11:46:23Z</dc:date>
    </item>
  </channel>
</rss>

