<?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: QlikView and set analysis syntax (indirect date search) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068425#M357068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max date by Key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max({&amp;lt; DateNum={"&amp;gt;=$(=Date(vMinDateCal))&amp;lt;=$(=Date(vMaxDateCal))"} &amp;gt;} DateNum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second expression, you have two statuses for the same day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2016 17:27:34 GMT</pubDate>
    <dc:creator>luciancotea</dc:creator>
    <dc:date>2016-03-14T17:27:34Z</dc:date>
    <item>
      <title>QlikView and set analysis syntax (indirect date search)</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068424#M357067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm fighting with QlikView Syntax &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select a date interval with two variables (date min / date max) (this point is ok)&lt;/P&gt;&lt;P&gt;Then in a table, I want to get the status corresponding to the max available date in the date intervals (between two variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it was easy (at least not really hard &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm fighting with the Set Analysis syntax&lt;/P&gt;&lt;P&gt;Can you please help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I've attached a sample example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 16:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068424#M357067</guid>
      <dc:creator>bertrand_herard</dc:creator>
      <dc:date>2016-03-14T16:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and set analysis syntax (indirect date search)</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068425#M357068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max date by Key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max({&amp;lt; DateNum={"&amp;gt;=$(=Date(vMinDateCal))&amp;lt;=$(=Date(vMaxDateCal))"} &amp;gt;} DateNum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second expression, you have two statuses for the same day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 17:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068425#M357068</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2016-03-14T17:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and set analysis syntax (indirect date search)</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068426#M357069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 2nd xpression can be:&lt;/P&gt;&lt;P&gt;FirstSortedValue({&amp;lt;DateNum={"&amp;gt;=$(=Date(vMinDateCal))&amp;lt;=$(=Date(vMaxDateCal))"}&amp;gt;} Status, -DateNum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But (as said by Lucian) there are different values for the same day and key, so it will return null() in that conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 17:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068426#M357069</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-03-14T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and set analysis syntax (indirect date search)</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068427#M357070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks Lucian and Ruben,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;that's a good start : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I forgot an important point :&amp;nbsp; If two different status are available, take the one with the biggest field Flag value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(I've edited the qvw with a new "Flag" field").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Best regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 21:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068427#M357070</guid>
      <dc:creator>bertrand_herard</dc:creator>
      <dc:date>2016-03-14T21:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and set analysis syntax (indirect date search)</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068428#M357071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bertrand, you can try with:&lt;/P&gt;&lt;P&gt;Aggr(If(DateNum=Max(TOTAL &amp;lt;KEY&amp;gt; {&amp;lt;DateNum={"&amp;gt;=$(=Date(vMinDateCal))&amp;lt;=$(=Date(vMaxDateCal))"}&amp;gt;} DateNum) and Flag=Max(TOTAL &amp;lt;KEY, DateNum&amp;gt; Flag), Status), KEY, DateNum, Flag)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 22:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-and-set-analysis-syntax-indirect-date-search/m-p/1068428#M357071</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-03-14T22:23:39Z</dc:date>
    </item>
  </channel>
</rss>

