<?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 Sum with variable dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292983#M108727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make a list box on [Complaints Weekend], what format are you seeing? The format is not on variable settings but should be acheived with date# &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2011 04:24:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-03T04:24:28Z</dc:date>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292977#M108721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to convert other answers to my file - I am new to QV, so am hoping someone can help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a straight table showing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date1&lt;/P&gt;&lt;P&gt;Date2&lt;/P&gt;&lt;P&gt;Difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created variables for Date1 and Date2 to create a calendar for both, hoping to sum the number of complaints per area within a certain week: [Complaint_Weekend].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is someone able to help with the Syntax for this, it would be much appreciated! So it should look something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum of number of Complaints with [Complaints Weekend] = vDate1 &lt;/P&gt;&lt;P&gt;Sum of number of Complaints with [Complaints Weekend] = vDate2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the difference between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 01:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292977#M108721</guid>
      <dc:creator />
      <dc:date>2011-11-03T01:18:50Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292978#M108722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="2011-11-03 12h47_14.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8397_2011-11-03+12h47_14.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 01:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292978#M108722</guid>
      <dc:creator />
      <dc:date>2011-11-03T01:50:25Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292979#M108723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you a field for number of complaints the following would work:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Complaints Weekend] = {"$(vDate1)"}&amp;gt;} numberofComplaints). Like wise for vDate2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292979#M108723</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:05:33Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292980#M108724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The complaints are given a value of one, and use [Complaints_Counter], however this brought through 0's, with the variables, do i need to give this a format in the variable settings so it matches the complaints_weekend field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292980#M108724</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:14:01Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292981#M108725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Your variables output and [Complaints Weekend]'s format should match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292981#M108725</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:17:00Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292982#M108726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Are you able to tell me how it should look in the variable settings, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292982#M108726</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:20:50Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292983#M108727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make a list box on [Complaints Weekend], what format are you seeing? The format is not on variable settings but should be acheived with date# &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292983#M108727</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:24:28Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292984#M108728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I was hoping to avoid having a list box and a calendar box - when i look in the variable settings after putting in a value in to the calendar it appears in number format, even though I have formatted the calendar as D/MM/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292984#M108728</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:28:39Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292985#M108729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasnt asking to have a list box. For set analysis to work the format should match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your Variable returns number add date function around it. Like date($(vDate1)). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292985#M108729</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:33:50Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292986#M108730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sorry Kiran, Excuse my ignorance, do you mean to put the date($(vDate1)) in the variable settings, or the expression in the straight chart or someone else..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, sorry for my ignorance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292986#M108730</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:43:03Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292987#M108731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is nothing to be sorry for. QV is easy to learn just give it some time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format is to be added to the expression. For instance my original post&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Complaints Weekend] = {"$(vDate1)"}&amp;gt;} numberofComplaints)&lt;/P&gt;&lt;P&gt;should be changd to&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Complaints Weekend] = {"$(=date(vDate1))"}&amp;gt;} numberofComplaints)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem persists can you share your qvw for us to debug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292987#M108731</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:51:20Z</dc:date>
    </item>
    <item>
      <title>Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292988#M108732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks so much for you help Kiran!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 04:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292988#M108732</guid>
      <dc:creator />
      <dc:date>2011-11-03T04:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with variable dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292989#M108733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent post. Very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 16:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-variable-dates/m-p/292989#M108733</guid>
      <dc:creator />
      <dc:date>2012-11-19T16:57:11Z</dc:date>
    </item>
  </channel>
</rss>

