<?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 date comparison in set analysis does not work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-comparison-in-set-analysis-does-not-work/m-p/116947#M18007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure of my raw data is like below,&lt;/P&gt;&lt;P&gt;Component_ID, Env, Last Updated&lt;/P&gt;&lt;P&gt;1, UDB, '2018-1-1 12:25AM'&lt;/P&gt;&lt;P&gt;1, TST, '2018-2-1 00:15AM'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2, ABC, '2018-10-1 13:15'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calendar on my dashboard so users can select a date and get the latest Env for each component before the selected date.&lt;/P&gt;&lt;P&gt;I created a straight table, the dimension is "Component_ID", added one expression like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue( {&amp;lt;[Report Component Audit Last Updated]={"&amp;lt;=$(=vDate)"}&amp;gt;} [Report Component Audit ENV], -[Report Component Audit Last Updated])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the vDate is a variable I created and linked to the calendar.&lt;/P&gt;&lt;P&gt;However, this gives me nothing in the table. Am I doing anything wrong?&lt;/P&gt;&lt;P&gt;I attached my qvw file. Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2018 16:13:40 GMT</pubDate>
    <dc:creator>msmichael</dc:creator>
    <dc:date>2018-11-07T16:13:40Z</dc:date>
    <item>
      <title>date comparison in set analysis does not work</title>
      <link>https://community.qlik.com/t5/QlikView/date-comparison-in-set-analysis-does-not-work/m-p/116947#M18007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure of my raw data is like below,&lt;/P&gt;&lt;P&gt;Component_ID, Env, Last Updated&lt;/P&gt;&lt;P&gt;1, UDB, '2018-1-1 12:25AM'&lt;/P&gt;&lt;P&gt;1, TST, '2018-2-1 00:15AM'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2, ABC, '2018-10-1 13:15'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calendar on my dashboard so users can select a date and get the latest Env for each component before the selected date.&lt;/P&gt;&lt;P&gt;I created a straight table, the dimension is "Component_ID", added one expression like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue( {&amp;lt;[Report Component Audit Last Updated]={"&amp;lt;=$(=vDate)"}&amp;gt;} [Report Component Audit ENV], -[Report Component Audit Last Updated])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the vDate is a variable I created and linked to the calendar.&lt;/P&gt;&lt;P&gt;However, this gives me nothing in the table. Am I doing anything wrong?&lt;/P&gt;&lt;P&gt;I attached my qvw file. Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-comparison-in-set-analysis-does-not-work/m-p/116947#M18007</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2018-11-07T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: date comparison in set analysis does not work</title>
      <link>https://community.qlik.com/t5/QlikView/date-comparison-in-set-analysis-does-not-work/m-p/116948#M18008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the reason is that your vDate variable date format and your fie;d format are not same.&lt;IMG alt="images.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217789_images.jpg" style="height: 277px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-comparison-in-set-analysis-does-not-work/m-p/116948#M18008</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-11-07T16:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: date comparison in set analysis does not work</title>
      <link>https://community.qlik.com/t5/QlikView/date-comparison-in-set-analysis-does-not-work/m-p/116949#M18009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neelam,&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;I changed my expression like below, and it works now.&lt;/P&gt;&lt;P&gt;=FirstSortedValue( {&amp;lt;[Report Component Audit Last Updated]={"&amp;lt;=$(=&lt;STRONG&gt;timestamp&lt;/STRONG&gt;(vDate))"}&amp;gt;} [Report Component Audit ENV], -[Report Component Audit Last Updated])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still confused though, my field type is numeric and timestamp. the vDate should be a date which is numeric also, right? and I'm using "smaller than" (&amp;lt;=) in my expression to compare two numeric values, why it does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-comparison-in-set-analysis-does-not-work/m-p/116949#M18009</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2018-11-07T16:51:18Z</dc:date>
    </item>
  </channel>
</rss>

