<?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: set analysis not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637387#M732376</link>
    <description>&lt;P&gt;Hi, may be this&lt;/P&gt;&lt;P&gt;FirstSortedValue({$&amp;lt;[GA LAST_UPDATED]={"&amp;lt;=$(=Date($(vDate),'MM/DD/YYYY hh:mm:ss TT'))"}&amp;gt;}[GA LAST_UPDATED], -[GA LAST_UPDATED], 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 20:53:32 GMT</pubDate>
    <dc:creator>vhespinog</dc:creator>
    <dc:date>2019-10-18T20:53:32Z</dc:date>
    <item>
      <title>set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637382#M732374</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;In my qvw, there are two fields, one is %REPORT_OUTPUT_ID, and one is "GA LAST_UPDATED". For each "%REPORT_OUTPUT_ID" field there could be more than one "GA LAST_UPDATED" data.&lt;/P&gt;&lt;P&gt;some examples in the data:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;%REPORT_OUTPUT_ID&lt;/TD&gt;&lt;TD&gt;GA LAST_UPDATED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;271&lt;/TD&gt;&lt;TD&gt;12/10/2016 3:45:12 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;271&lt;/TD&gt;&lt;TD&gt;10/22/2018 10:55:12 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;271&lt;/TD&gt;&lt;TD&gt;11/5/2018 6:08:39 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;284&lt;/TD&gt;&lt;TD&gt;8/9/2018 3:36:03 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;284&lt;/TD&gt;&lt;TD&gt;11/5/2018 6:07:28 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, I have a calendar object which points to a variable "vDate".&lt;/P&gt;&lt;P&gt;Now I want to find the most recent "GA LAST_UPDATED" that is smaller than vDate for each %REPORT_OUTPUT_ID,&lt;/P&gt;&lt;P&gt;here's my expression:&lt;/P&gt;&lt;P&gt;FirstSortedValue({$&amp;lt;[GA LAST_UPDATED]={"&amp;lt;=$(vDate)"}&amp;gt;}[GA LAST_UPDATED], -[GA LAST_UPDATED], 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but somehow it returns me nothing.&lt;/P&gt;&lt;P&gt;The [GA LAST_UPDATED] field has $numeric and $timestamp tags, and the vDate should be a number, why the set analysis is not working?&lt;/P&gt;&lt;P&gt;qvw is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637382#M732374</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2024-11-16T02:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637387#M732376</link>
      <description>&lt;P&gt;Hi, may be this&lt;/P&gt;&lt;P&gt;FirstSortedValue({$&amp;lt;[GA LAST_UPDATED]={"&amp;lt;=$(=Date($(vDate),'MM/DD/YYYY hh:mm:ss TT'))"}&amp;gt;}[GA LAST_UPDATED], -[GA LAST_UPDATED], 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 20:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637387#M732376</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2019-10-18T20:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637398#M732378</link>
      <description>&lt;P&gt;Hi Vhespinog,&lt;/P&gt;&lt;P&gt;Thanks a lot, it works!&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why the vDate has to be converted into date? "GA LAST_UPDATED" has a number tag anyway, why QV just does a number compare?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 22:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637398#M732378</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2019-10-18T22:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637399#M732380</link>
      <description>&lt;P&gt;Hi, Msmichael&amp;nbsp;&lt;/P&gt;&lt;P&gt;i agree with you but&amp;nbsp;&amp;nbsp;i only know you need to compare both dates in the same format when use set analysis.&lt;/P&gt;&lt;P&gt;When you don't need compare dates&amp;nbsp; with time is a good practice use "Floor" in your script, with this remove the time and all your dates are whole numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 22:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-working/m-p/1637399#M732380</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2019-10-18T22:25:59Z</dc:date>
    </item>
  </channel>
</rss>

