<?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: Variable Value in Set analysis - Date Range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Value-in-Set-analysis-Date-Range/m-p/625312#M229987</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;Some possible problems: &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;01-2013 could be evaluated as 1 - 2013 = -2012&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;Month|Year contains text values and comparing text values using &amp;gt;= and &amp;lt;= won't work&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;Month|Year is a date field formatted as MM-YYYY, but the variables vTY_Start and vTY_End are string values. You'll need to use the date# function to make dates from them: date#(vTY_Start,'MM-YYYY')&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 17:20:34 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-02-24T17:20:34Z</dc:date>
    <item>
      <title>Variable Value in Set analysis - Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Value-in-Set-analysis-Date-Range/m-p/625311#M229986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know there are many examples of this on the forums, but can't get it to work in my enviroment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple, trying to sum Dollars based on input box variables...the field is Month|Year&lt;/P&gt;&lt;P&gt;vTY_Start and vTY_End&lt;/P&gt;&lt;P&gt;A sample value here is 01-2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i'm trying, but doesnt seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month|Year={'&amp;gt;=$(vTY_Start)&amp;lt;=$(vTY_End)'}&amp;gt;} Dollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Value-in-Set-analysis-Date-Range/m-p/625311#M229986</guid>
      <dc:creator />
      <dc:date>2014-02-24T17:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Value in Set analysis - Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Value-in-Set-analysis-Date-Range/m-p/625312#M229987</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;Some possible problems: &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;01-2013 could be evaluated as 1 - 2013 = -2012&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;Month|Year contains text values and comparing text values using &amp;gt;= and &amp;lt;= won't work&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;Month|Year is a date field formatted as MM-YYYY, but the variables vTY_Start and vTY_End are string values. You'll need to use the date# function to make dates from them: date#(vTY_Start,'MM-YYYY')&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Value-in-Set-analysis-Date-Range/m-p/625312#M229987</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-24T17:20:34Z</dc:date>
    </item>
  </channel>
</rss>

