<?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 qty for max date &amp;lt;= end date variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345079#M127556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I was given this, and it works!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 14pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;inv_cal_dt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;"&amp;lt;=$(EndDate)"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;oh_qty&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;inv_cal_dt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2012 17:10:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-10T17:10:47Z</dc:date>
    <item>
      <title>qty for max date &lt;= end date variable</title>
      <link>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345075#M127552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;help with the below set analysis. i'm looking for the qty for the max date, less than or equal to the user defined date. i'm using a end date variable as the user defined date.&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;﻿the qvw doesn't seem to like the second {, its red underlined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum &lt;SPAN style="font-size: 14pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;inv_cal_dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;)=&lt;SPAN style="color: #ff0000;"&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;$(=$(EndDate))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;﻿&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 19:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345075#M127552</guid>
      <dc:creator />
      <dc:date>2012-05-09T19:15:11Z</dc:date>
    </item>
    <item>
      <title>qty for max date &lt;= end date variable</title>
      <link>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345076#M127553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM({&amp;lt;&lt;SPAN style="color: #800000; font-family: Arial; font-size: 19px; background-color: #eef4f9;"&gt;inv_cal_dt={$(=Max(&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM style="font-size: 14pt; color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 14pt;"&gt;EndDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;))}&lt;/SPAN&gt;&amp;gt;}VALOR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 19:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345076#M127553</guid>
      <dc:creator />
      <dc:date>2012-05-09T19:22:00Z</dc:date>
    </item>
    <item>
      <title>qty for max date &lt;= end date variable</title>
      <link>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345077#M127554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; tried this, did not work. it still doesnt like the second {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;inv_cal_dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;)={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;$(=$(EndDate))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM style="font-size: 14pt;"&gt;}&amp;gt;}oh_qty &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&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;EM style="color: #808080; font-size: 14pt;"&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 19:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345077#M127554</guid>
      <dc:creator />
      <dc:date>2012-05-09T19:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: qty for max date &lt;= end date variable</title>
      <link>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345078#M127555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not think you can use max() in the first part of set analysis. I believe it needs to be a field.&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set this as a new field in the script using a resident load with a group by function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 19:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345078#M127555</guid>
      <dc:creator />
      <dc:date>2012-05-09T19:59:52Z</dc:date>
    </item>
    <item>
      <title>qty for max date &lt;= end date variable</title>
      <link>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345079#M127556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I was given this, and it works!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 14pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;inv_cal_dt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;"&amp;lt;=$(EndDate)"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;oh_qty&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 14pt;"&gt;inv_cal_dt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 14pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 17:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qty-for-max-date-lt-end-date-variable/m-p/345079#M127556</guid>
      <dc:creator />
      <dc:date>2012-05-10T17:10:47Z</dc:date>
    </item>
  </channel>
</rss>

