<?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, Dates and Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72694#M12045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if the set analysis is even working &lt;A href="https://community.qlik.com/people/digvijay"&gt;digvijay&lt;/A&gt;‌, you seem to have an extra parenthesis before $(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=max({$&amp;lt;DateExport={"&lt;STRONG style="color: #ff0000;"&gt;=&lt;/STRONG&gt;$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;DateExport))"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;} &amp;gt;} Ratio)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 16:19:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-04-20T16:19:25Z</dc:date>
    <item>
      <title>Set Analysis, Dates and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72690#M12041</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;I want to use Set Analysis on a date but I seem to miss the correct formatting.&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 load something like this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(@1) as DateExport, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ratio&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;(bla,bla...)&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;In my load script, I calculate the max value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET vMaxDate = max({1} DateExport );&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;Later on in my charts I want to use this&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;=max({$ &amp;lt; DateExport={'$(vMaxDateVisites)'} &amp;gt;} Ratio)&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;which fails miserably but the following line works like a charm&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;=max({$ &amp;lt; DateExport={'19/04/2018'} &amp;gt;} Ratio)&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;What am doing wrong with my vMaxDate variable or Set Analysis syntax?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72690#M12041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Dates and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72691#M12042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;i think that you are not using the same variable that u did declare no?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72691#M12042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T15:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Dates and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72692#M12043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis doesn't work in script. You can use Max function directly in the measure expression something like this - &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=max({$ &amp;lt; DateExport={"=$(=Max(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateExport))"&lt;/SPAN&gt;} &amp;gt;} Ratio)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72692#M12043</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-04-20T15:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Dates and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72693#M12044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72693#M12044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T16:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Dates and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72694#M12045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if the set analysis is even working &lt;A href="https://community.qlik.com/people/digvijay"&gt;digvijay&lt;/A&gt;‌, you seem to have an extra parenthesis before $(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=max({$&amp;lt;DateExport={"&lt;STRONG style="color: #ff0000;"&gt;=&lt;/STRONG&gt;$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;DateExport))"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;} &amp;gt;} Ratio)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Dates-and-Variables/m-p/72694#M12045</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-20T16:19:25Z</dc:date>
    </item>
  </channel>
</rss>

