<?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 Using Dates to filter table box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Dates-to-filter-table-box/m-p/369739#M1178695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is helpful, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my expression to:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;({$&amp;lt;&lt;/SPAN&gt;PostDate&lt;SPAN class="s1"&gt;={&lt;/SPAN&gt;"&amp;gt;=$(Date(vStartDate))&amp;lt;=$(Date(vEndDate))"&lt;SPAN class="s1"&gt;}&amp;gt;} &lt;/SPAN&gt;Amount&lt;SPAN class="s1"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;and now I'm getting the table filled in, but it's filling in on the basis of all the records - it's ignoring the date constraints.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PostDate is a SQL Server field of type smallDateTime. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 17:32:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-26T17:32:28Z</dc:date>
    <item>
      <title>Using Dates to filter table box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dates-to-filter-table-box/m-p/369737#M1178693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data source with several fields including a date field (mm/dd/yyyy).&amp;nbsp; I want to create a table box that shows the sum of an amount for fieldA vs. FieldB but only for a date range that is entered by the user in variables vStartDate and vEndDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to follow the examples in the community, but the table keeps coming up empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I'm using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;({$&amp;lt;&lt;/SPAN&gt;PostDate&lt;SPAN class="s1"&gt;={&lt;/SPAN&gt;"&amp;gt;$(vStartDate)&amp;lt;=$(vEndDate)"&lt;SPAN class="s1"&gt;}&amp;gt;} &lt;/SPAN&gt;Amount&lt;SPAN class="s1"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;So, I would have expected seeing the sum of amount for all records that have a postdate between vstartdate and venddate for fieldA vs FieldB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;vStartDate and VEndDate are defined as numbers of type Date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Is there anything obvious that I'm doing wrong?&amp;nbsp; Thanks for any help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 14:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dates-to-filter-table-box/m-p/369737#M1178693</guid>
      <dc:creator />
      <dc:date>2012-03-26T14:48:46Z</dc:date>
    </item>
    <item>
      <title>Using Dates to filter table box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dates-to-filter-table-box/m-p/369738#M1178694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hope I understood ur prblm correctly!!&lt;/P&gt;&lt;P&gt;vStartDate and vEndDate should be in smae format as of PostDate.&lt;/P&gt;&lt;P&gt;If Postdate is dd/mm/yyyy then&amp;nbsp; the two variables should also return the same format date .&lt;/P&gt;&lt;P&gt;Convert vStartDate and vEndDate into Date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 16:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dates-to-filter-table-box/m-p/369738#M1178694</guid>
      <dc:creator />
      <dc:date>2012-03-26T16:54:07Z</dc:date>
    </item>
    <item>
      <title>Using Dates to filter table box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Dates-to-filter-table-box/m-p/369739#M1178695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is helpful, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my expression to:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;({$&amp;lt;&lt;/SPAN&gt;PostDate&lt;SPAN class="s1"&gt;={&lt;/SPAN&gt;"&amp;gt;=$(Date(vStartDate))&amp;lt;=$(Date(vEndDate))"&lt;SPAN class="s1"&gt;}&amp;gt;} &lt;/SPAN&gt;Amount&lt;SPAN class="s1"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;and now I'm getting the table filled in, but it's filling in on the basis of all the records - it's ignoring the date constraints.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PostDate is a SQL Server field of type smallDateTime. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 17:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Dates-to-filter-table-box/m-p/369739#M1178695</guid>
      <dc:creator />
      <dc:date>2012-03-26T17:32:28Z</dc:date>
    </item>
  </channel>
</rss>

