<?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 Sales Orders to show on the last two weeks info in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647871#M677734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i would create it in variable that holds &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(Date) , note it important to use the = sign &lt;/P&gt;&lt;P&gt;so the variable will be calculated once in the model &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't want to use variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try to use &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;(if(Date &amp;gt;= ( $(=max(Date))-14), *))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;while this is an expression the result will be the same as , the $(=) also calls for calculating the expression at model level , disregarding the chart dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 08:21:51 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2014-06-10T08:21:51Z</dc:date>
    <item>
      <title>Limiting Sales Orders to show on the last two weeks info</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647868#M677731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could you help me with a method to restrict sales Orders tyo show on the last two weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using ORDDATE to try do this, I have restricted them to look at last two months before but for weeks it not the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= ( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vMaxMonthIndex&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; -1), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Order Quantity Backordered]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Component Qty]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;is what i used for Months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you for any assitance you may have.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647868#M677731</guid>
      <dc:creator />
      <dc:date>2014-06-10T06:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Sales Orders to show on the last two weeks info</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647869#M677732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can use the function week() which returns the week number in a year ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use a similar method to the one you used in month but this method don't support weeks from to different years&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your other option is something like &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &amp;gt;= ( &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-14), &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Order Quantity Backordered]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Component Qty]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647869#M677732</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-06-10T07:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Sales Orders to show on the last two weeks info</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647870#M677733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liron, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if(Date &amp;gt;= ( vMaxDate-14), *))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is looking good, but we have not created vMaxDate – did you create this in variable overview, if so what was your script for that, or how would I word that.&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;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew Raschke&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;Email: matthew.raschke@ellies.co.za&lt;/P&gt;&lt;P&gt;Tel:  +27 11 490 3893&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cell: +27 82 318 5051&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;www.ellies.co.za &amp;lt;http://www.ellies.co.za&amp;gt;  &amp;lt;http:// &amp;lt;http://&amp;gt; www.ellies.co.za/&amp;gt; &lt;/P&gt;&lt;P&gt;94 Eloff Street Ext, Village Deep,&lt;/P&gt;&lt;P&gt;Johannesburg,2001, South Africa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only place success comes before work is in the dictionary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P please consider the environment before printing this email&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647870#M677733</guid>
      <dc:creator />
      <dc:date>2014-06-10T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Sales Orders to show on the last two weeks info</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647871#M677734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i would create it in variable that holds &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(Date) , note it important to use the = sign &lt;/P&gt;&lt;P&gt;so the variable will be calculated once in the model &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't want to use variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try to use &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;(if(Date &amp;gt;= ( $(=max(Date))-14), *))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;while this is an expression the result will be the same as , the $(=) also calls for calculating the expression at model level , disregarding the chart dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Sales-Orders-to-show-on-the-last-two-weeks-info/m-p/647871#M677734</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-06-10T08:21:51Z</dc:date>
    </item>
  </channel>
</rss>

