<?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 Date Range Selection and Sum of av. Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083720#M938342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a table which is shows inventory, sales and prodcuction issues by item and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date (daily update) | ItemNo | InventoryOnHandQTY | ProductionIssueQTY | SalesIssueQTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i would like to evaluate the a rolling average consumption by month (productionIssue + SalesIssues). The average should be calculated based on the past 12 months.&lt;/P&gt;&lt;P&gt;Additionally i like to go back to a specific date and see what the stock and average consumption was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i could find here in the forum is how to calculate the av. consumption&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I made a variable vInventoryMaxDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =max([Date process])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I made a straight table dimension ItemNo and expression for the InventoryOnHand and one for the calculation of the av. consumption&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ( {&amp;lt;Date ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}&amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eveerything is working fine and the figures are correct, as long im not going to select any date. If i select a date, just that specific day will be calculated as consumption, even my date range is 365 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i make that the consumption expression will ignore the date selection and go back to pick all the figures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i set the identifier to 1, then the item selection will not work anylonger... &lt;/P&gt;&lt;P&gt;Sum (&lt;STRONG&gt;1&lt;/STRONG&gt;{&amp;lt;Date ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}&amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk in advance for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2016 18:26:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-09T18:26:35Z</dc:date>
    <item>
      <title>Date Range Selection and Sum of av. Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083720#M938342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a table which is shows inventory, sales and prodcuction issues by item and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date (daily update) | ItemNo | InventoryOnHandQTY | ProductionIssueQTY | SalesIssueQTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i would like to evaluate the a rolling average consumption by month (productionIssue + SalesIssues). The average should be calculated based on the past 12 months.&lt;/P&gt;&lt;P&gt;Additionally i like to go back to a specific date and see what the stock and average consumption was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i could find here in the forum is how to calculate the av. consumption&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I made a variable vInventoryMaxDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =max([Date process])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I made a straight table dimension ItemNo and expression for the InventoryOnHand and one for the calculation of the av. consumption&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ( {&amp;lt;Date ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}&amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eveerything is working fine and the figures are correct, as long im not going to select any date. If i select a date, just that specific day will be calculated as consumption, even my date range is 365 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i make that the consumption expression will ignore the date selection and go back to pick all the figures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i set the identifier to 1, then the item selection will not work anylonger... &lt;/P&gt;&lt;P&gt;Sum (&lt;STRONG&gt;1&lt;/STRONG&gt;{&amp;lt;Date ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}&amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk in advance for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083720#M938342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T18:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Selection and Sum of av. Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083721#M938343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all you are the wrong placement of 1. You need it be between { and &amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum (&lt;SPAN style="color: #ff0000;"&gt;{1&amp;lt;&lt;/SPAN&gt;Date ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}&amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, are you making selection in Date field or another calendar field? If you are making in another field, you can add it to your set analysis so that it ignores any selection made in other calendar field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({&amp;lt;Date ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}&lt;SPAN style="color: #ff0000;"&gt;, Year, Month, Day, MonthYear, Quarter, QuarterYear&lt;/SPAN&gt;&amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083721#M938343</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-09T19:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Selection and Sum of av. Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083722#M938344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk first for support &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Yes, sorry forgot about that, the data is linked with the Date field to the calendar table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should the second expression look like? Do i need to enter all fields from the calendar table, or just one value? Did try just to pick en unspecific value, see expresion below... It doesnt work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114064_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Sum ( {&amp;lt;[Date process] ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}, [Month process] ={'*'}&amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083722#M938344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T20:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Selection and Sum of av. Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083723#M938345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wherever in the calendar table the user can make a selection in your application add that to your set analysis for the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083723#M938345</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-09T21:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Selection and Sum of av. Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083724#M938346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, need just to add the modifier without any condition &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thats easy... Now it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ( {&amp;lt;[Date process] ={"&amp;gt;=$(=vInventoryMaxDate-365)&amp;lt;$(=vInventoryMaxDate)"}, %QuarterProcess, [Year process], [Month process],[Week process] &amp;gt;} (#ProductionIssue + #SalesIssue)/12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i made like this&lt;/P&gt;&lt;P&gt;[Month process] ={'*'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct is like this&lt;/P&gt;&lt;P&gt;[Month process],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cool, thanks for you help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 09:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083724#M938346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-10T09:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Range Selection and Sum of av. Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083725#M938347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, not a problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 09:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Range-Selection-and-Sum-of-av-Sales/m-p/1083725#M938347</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-10T09:13:02Z</dc:date>
    </item>
  </channel>
</rss>

