<?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 Set Analysis and Selecting Max Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Selecting-Max-Date/m-p/191658#M53652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Hello!&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I was hoping that you could help me - I am trying to write a line of script for the use within a chart, which currently uses set analysis to show the results for the last and next 13 weeks. What I am now trying to achieve, is by expanding on the originally script, show the minimum value on the max day within the week. I.e.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Week No. Date. Closing Balance&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 01/02/2010 100&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 04/02/2010 600&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 06/02/2010 300&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 06/02/2010 500&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 06/02/2010 400&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;2 10/02/2010 1000&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;2 10/02/2010 200&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Using the above example, for week 1, I would want the chart to take the value 300, as this is the minimum value on the last day of the week available.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;My original script for the 13 weeks is:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Min({&amp;lt;[BOM Chart - Date] = {"&amp;lt;=$(=date(only(today())+91))&amp;gt;=$(=date(only(today())-91))"}&amp;gt;} [BOM Chart - Balance])&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;And my attempt to achieve the above was:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;max(aggr([BOM Chart - Date]),(Minstring({&amp;lt;[BOM Chart - Date] = {"&amp;lt;=$(=date(only(today())+91))&amp;gt;=$(=date(only(today())-91))"}&amp;gt;} [BOM Chart - Balance])))&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If you could help with the above, it would be most appreciated!! As I am really starting to struggle.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Kind Regards,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 22:35:24 GMT</pubDate>
    <dc:creator>Dayna</dc:creator>
    <dc:date>2009-12-17T22:35:24Z</dc:date>
    <item>
      <title>Set Analysis and Selecting Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Selecting-Max-Date/m-p/191658#M53652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Hello!&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I was hoping that you could help me - I am trying to write a line of script for the use within a chart, which currently uses set analysis to show the results for the last and next 13 weeks. What I am now trying to achieve, is by expanding on the originally script, show the minimum value on the max day within the week. I.e.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Week No. Date. Closing Balance&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 01/02/2010 100&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 04/02/2010 600&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 06/02/2010 300&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 06/02/2010 500&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;1 06/02/2010 400&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;2 10/02/2010 1000&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;2 10/02/2010 200&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Using the above example, for week 1, I would want the chart to take the value 300, as this is the minimum value on the last day of the week available.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;My original script for the 13 weeks is:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Min({&amp;lt;[BOM Chart - Date] = {"&amp;lt;=$(=date(only(today())+91))&amp;gt;=$(=date(only(today())-91))"}&amp;gt;} [BOM Chart - Balance])&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;And my attempt to achieve the above was:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;max(aggr([BOM Chart - Date]),(Minstring({&amp;lt;[BOM Chart - Date] = {"&amp;lt;=$(=date(only(today())+91))&amp;gt;=$(=date(only(today())-91))"}&amp;gt;} [BOM Chart - Balance])))&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If you could help with the above, it would be most appreciated!! As I am really starting to struggle.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Kind Regards,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 22:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Selecting-Max-Date/m-p/191658#M53652</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2009-12-17T22:35:24Z</dc:date>
    </item>
  </channel>
</rss>

