<?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: Limiting the date as a calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387720#M491195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have replicated the table in another test app which i have attched. In this instance it will be the field 'Natural_Month' where I would like to limit the first 7 dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Sep 2012 12:37:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-09T12:37:32Z</dc:date>
    <item>
      <title>Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387713#M491188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I currently have a calculated dimension which returns me all the possible issue dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(ISSUE_DATE,'dd MM YYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I limit this to only show the last 13 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387713#M491188</guid>
      <dc:creator />
      <dc:date>2012-09-07T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387714#M491189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, rms,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use every function, p.e. Min() and Max(), AddMonths() etc. and ofcourse you can add dates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Num(ISSUE_DATE)-13 &amp;lt;= Num(ISSUE_DATE), Date(ISSUE_DATE,'DD MM YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings from Munich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 14:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387714#M491189</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2012-09-07T14:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387715#M491190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If(Num(ISSUE_DATE) &amp;gt;= Num(Max(total ISSUE_DATE))-13, Date(ISSUE_DATE,'DD MM YYYY'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 15:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387715#M491190</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-08T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387716#M491191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the expressions you suggested but still having no luck as when certain products that are selected the pivot table still displays more than 13 issue dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 09:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387716#M491191</guid>
      <dc:creator />
      <dc:date>2012-09-09T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387717#M491192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide a small sample (.qvw or excel input data)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 10:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387717#M491192</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-09T10:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387718#M491193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As its customer data I am unable to attach the app. In other charts there is the option to change the dimension limits but as this is a pivot there isn't the option to do that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I need to display is the 13 latest most recent 'ISSUE_DATE' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried creating a variable: vMaxIssueDate = Max(date(ISSUE_DATE))-13 and using that in the expression but no luck with that either. As it just gets the date and subtracts 13 days from it not 13 whole ISSUE_DATES from the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 12:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387718#M491193</guid>
      <dc:creator />
      <dc:date>2012-09-09T12:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387719#M491194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as calculated dimension:&lt;/P&gt;&lt;P&gt;=aggr(If(Num(ISSUE_DATE) &amp;gt;= Num(Max(total ISSUE_DATE))-13, Date(ISSUE_DATE,'DD MM YYYY'), null()), ISSUE_DATE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 12:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387719#M491194</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-09T12:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387720#M491195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have replicated the table in another test app which i have attched. In this instance it will be the field 'Natural_Month' where I would like to limit the first 7 dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 12:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387720#M491195</guid>
      <dc:creator />
      <dc:date>2012-09-09T12:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387721#M491196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this expression as calculated dimension (second):&lt;/P&gt;&lt;P&gt;=aggr(If(Natural_Month &amp;gt;= Max(total Natural_Month)-7, Natural_Month, null()), Natural_Month)&lt;/P&gt;&lt;P&gt;and toggle 'Supress when value is null' check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use setanalysis in your expression instead:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Natural_Month={"=Natural_Month&amp;gt;=Max(total Natural_Month)-7"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;the first 7 dates&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;if you mean the first from the lowest one then use this:&lt;/P&gt;&lt;P&gt;=aggr(If(Natural_Month &amp;lt;= Min(total Natural_Month)+7, Natural_Month, null()), Natural_Month)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Natural_Month={"=Natural_Month&amp;lt;=Max(total Natural_Month)+7"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;correspondingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 13:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387721#M491196</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-09T13:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387722#M491197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 11:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387722#M491197</guid>
      <dc:creator />
      <dc:date>2012-09-20T11:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting the date as a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387723#M491198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you mark the answer as right and close the question ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 13:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-the-date-as-a-calculated-dimension/m-p/387723#M491198</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-20T13:15:20Z</dc:date>
    </item>
  </channel>
</rss>

