<?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 max graph date from variable period in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186246#M50411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend that you change this not in the expression, but in the variable. So put in something like this for the variable value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=rangemin(&lt;BR /&gt; date#('07/2009','MM/YYYY'),&lt;BR /&gt; if(len(trim(GetFieldSelections(MonthYear)))&amp;gt;0,date(max(MonthYear)))&lt;BR /&gt;)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;where 07/2009 is replaced by your manual maximum and MonthYear is replaced by the user date selection field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 16:52:50 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-09-03T16:52:50Z</dc:date>
    <item>
      <title>max graph date from variable period</title>
      <link>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186243#M50408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi is there a way to use a variable date as a max period on a graph ?&lt;/P&gt;&lt;P&gt;e.g. my expression below gives the 'Final Total' for months where the max Month is the variable &lt;B&gt;[vReportDate]&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;sum([vReportDate]=max(Month),GP_Wait_List_Plan)&lt;/P&gt;&lt;P&gt;But this doesnt work.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 15:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186243#M50408</guid>
      <dc:creator />
      <dc:date>2010-09-02T15:48:21Z</dc:date>
    </item>
    <item>
      <title>max graph date from variable period</title>
      <link>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186244#M50409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well your syntax won't work because you have a nested aggregation, plus it's not proper set analysis syntax. But something like this could work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum({&amp;lt;Month={"&amp;lt;=$(vReportDate)"}&amp;gt;}GP_Wait_List_Plan)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 06:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186244#M50409</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-03T06:57:21Z</dc:date>
    </item>
    <item>
      <title>max graph date from variable period</title>
      <link>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186245#M50410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad, thnks for your help the expression worked a treat.&lt;/P&gt;&lt;P&gt;Im just wondering if you can also help with the following in regards to the expression.&lt;/P&gt;&lt;P&gt;The expression works fine but it causes an issue when the user selects a period form the 'Month / Year' list box.&lt;/P&gt;&lt;P&gt;Basically although i want my expression to provide a maximum period for Actual &lt;B&gt;BUT&lt;/B&gt; if the user selects a period which falls before the maximum then it should use the earlier period.&lt;/P&gt;&lt;P&gt;E.g. the user has selected &lt;B&gt;April - 09 - Jul -2009&lt;/B&gt; from the list box. Therefore the graph maximum date should be &lt;B&gt;Jul - 09&lt;/B&gt;. As you can see the expression has made the graph show max date &lt;B&gt;Jul - 10&lt;/B&gt; (data points in Red Box shouldn't be shown).&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1018.untitled.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/1018.untitled.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe set analysis should be included in the dimension?&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 09:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186245#M50410</guid>
      <dc:creator />
      <dc:date>2010-09-03T09:41:06Z</dc:date>
    </item>
    <item>
      <title>max graph date from variable period</title>
      <link>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186246#M50411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend that you change this not in the expression, but in the variable. So put in something like this for the variable value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=rangemin(&lt;BR /&gt; date#('07/2009','MM/YYYY'),&lt;BR /&gt; if(len(trim(GetFieldSelections(MonthYear)))&amp;gt;0,date(max(MonthYear)))&lt;BR /&gt;)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;where 07/2009 is replaced by your manual maximum and MonthYear is replaced by the user date selection field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 16:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-graph-date-from-variable-period/m-p/186246#M50411</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-03T16:52:50Z</dc:date>
    </item>
  </channel>
</rss>

