<?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: Calculating stock rotation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-stock-rotation/m-p/1031607#M924183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you need either a date field or a serial numeric month field that increases by 1 for each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a date field it would be something like sum({&amp;lt;Year=,Month=,MyDate={"&amp;gt;$(=Date(MonthStart(max(MyDate),-12)))&amp;lt;=&lt;SPAN style="font-size: 13.3333px;"&gt;$(=Date(MonthStart(max(MyDate))))&lt;/SPAN&gt;"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a month serial it would be something like &lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year=,Month=,_MonthSerial={"&amp;gt;$(=max(_MonthSerial)-12)&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(max(_MonthSerial))&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"}&amp;gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 08:58:20 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-04-14T08:58:20Z</dc:date>
    <item>
      <title>Calculating stock rotation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-stock-rotation/m-p/1031605#M924181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For calculating stock rotation, we want to take into account the sales of the last 12 months, which are not necessarily the sales of last year. So, when calculating stock rotation in april 2016, we want to take into account sales from april 2015-march 2016.&lt;/P&gt;&lt;P&gt;Anyone any suggestion on how to calculate this ?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-stock-rotation/m-p/1031605#M924181</guid>
      <dc:creator>petermoyaert</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating stock rotation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-stock-rotation/m-p/1031606#M924182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that MonthYear field is calculated as &lt;STRONG&gt;&lt;EM&gt;MonthName(Date) as MonthYear&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;MonthYear ={"&amp;gt;=$(=addmonths(max(MonthYear),-11))&amp;lt;=&lt;SPAN style="font-size: 13.3333px;"&gt;$(=max(MonthYear))&lt;/SPAN&gt;"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 08:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-stock-rotation/m-p/1031606#M924182</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-14T08:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating stock rotation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-stock-rotation/m-p/1031607#M924183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you need either a date field or a serial numeric month field that increases by 1 for each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a date field it would be something like sum({&amp;lt;Year=,Month=,MyDate={"&amp;gt;$(=Date(MonthStart(max(MyDate),-12)))&amp;lt;=&lt;SPAN style="font-size: 13.3333px;"&gt;$(=Date(MonthStart(max(MyDate))))&lt;/SPAN&gt;"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a month serial it would be something like &lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Year=,Month=,_MonthSerial={"&amp;gt;$(=max(_MonthSerial)-12)&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(max(_MonthSerial))&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"}&amp;gt;}sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 08:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-stock-rotation/m-p/1031607#M924183</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-14T08:58:20Z</dc:date>
    </item>
  </channel>
</rss>

