<?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: Filtering a Chart by Date Selection Stored in a Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987812#M527655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 19:43:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-12T19:43:20Z</dc:date>
    <item>
      <title>Filtering a Chart by Date Selection Stored in a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987808#M527651</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;&lt;/P&gt;&lt;P&gt;I have an issue getting a date variable that's being fed it's value through a calendar object to filter charts by it's value. The variables are vMinDate and vMaxDate. This is the calculated dimension i'm using to filter the chart by the vMinDate information (the chart is titled Make__c. Screen shot attached):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if(SnapshotDate = date($(vMinDate)) , SnapshotDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the below screenshot, this is causing a null value to be returned. &lt;/P&gt;&lt;P&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;Any suggestion on filtering a chart by passing the value stored in a variable into a field selection?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 17:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987808#M527651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a Chart by Date Selection Stored in a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987809#M527652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=If(Num(SnapshotDate) = Num(Floor($(vMinDate)), SnapshotDate)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your vMinDate is actually a timestamp which probably isn't matching with SnapshotDate. But Floor will remove the time part and will just match them on the Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 17:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987809#M527652</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-12T17:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a Chart by Date Selection Stored in a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987810#M527653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Num(SnapshotDate) = Num(Floor($(vMinDate))&lt;STRONG&gt;)&lt;/STRONG&gt;, SnapshotDate) still returns null. I did see that the value of the variable is not formatted as a date, like the SnapshotDate field. I was hoping to fix that by using Date() in the declaration. It doesn't seem to want to take.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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, 12 Nov 2015 17:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987810#M527653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T17:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a Chart by Date Selection Stored in a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987811#M527654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date() function just changes the representation of the field, but it won't change the underlying value. To change the underlying value, you need to use Floor function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about this -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=If(Num(Floor(SnapshotDate)) = Num(Floor($(vMinDate))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;, SnapshotDate)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that does not work either, would you be able to share a small sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 17:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987811#M527654</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-12T17:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a Chart by Date Selection Stored in a Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987812#M527655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-Chart-by-Date-Selection-Stored-in-a-Variable/m-p/987812#M527655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T19:43:20Z</dc:date>
    </item>
  </channel>
</rss>

