<?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: Inventory Calculation expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inventory-Calculation-expression/m-p/452966#M169032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow.&amp;nbsp; I would seriously look at reworking your data model to allow a simpler calculation!&amp;nbsp; Can help with that if you like - please post the data model and some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 10:08:41 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2013-04-15T10:08:41Z</dc:date>
    <item>
      <title>Inventory Calculation expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Inventory-Calculation-expression/m-p/452965#M169031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(AGGR(if(date(vSelectDate)-max({$&amp;lt;[Inv Flag]={1}&amp;gt;}[Posting Date])&amp;gt;=181 ,&lt;/P&gt;&lt;P&gt;((SUM({$&amp;lt;FinancialYear=,Quarter=,MonthName=,FiscalYear={$(=max(FiscalYear))},[Posting Date] ={"&amp;lt;=$(=MonthEnd(Max([Posting Date])))&amp;gt;=01/04/2012"},[Inv Flag]={0,1,3,5}&amp;gt;}QTY_SIGNED) /* Closing Qty of prev month*/&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FinancialYear=,Quarter=,MonthName=,FiscalYear={$(=max(FiscalYear))},[Posting Date] ={"&amp;lt;=$(=MonthEnd(Max([Posting Date])))&amp;gt;=01/04/2012"}&amp;gt;}[Sales Invoice Qty]) /*sales Qty from 1/4/12 till date*/&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FinancialYear=,Quarter=,MonthName=,[Posting Date] ={"&amp;lt;=$(=MonthEnd(Max([Posting Date])))&amp;gt;=01/04/2012"}&amp;gt;}[Sales Bonus Qty]) /*sales Bon Qty from 1/4/12 till date*/&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FinancialYear=,Quarter=,MonthName=,[Posting Date] ={"&amp;lt;=$(=MonthEnd(Max([Posting Date])))&amp;gt;=01/04/2012"},[Sales Return Type Code]={0}&amp;gt;}[Sales Return Qty]) /*sales Ret Qty from 1/4/12 till date*/&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FinancialYear=,Quarter=,MonthName=,[Posting Date] ={"&amp;lt;=$(=MonthEnd(Max([Posting Date])))&amp;gt;=01/04/2012"},[Sales Return Type Code]={0}&amp;gt;}[Sales Return Bonus Qty]) /*sales Ret Bon Qty from 1/4/12 till date*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;*avg([Stat Rate Inv]))/100000),[Product Batch Code],[Location Code],[Product Code],[Expiry Date])) &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; The above is the excisting expression where i get inventory from 1-4-2012 ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i am intoducing financial year , suppose i select 2013-2014 it should only show this years inventory rather then from 1-4-2012&amp;nbsp; where do i change this expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rohit Yadav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 06:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inventory-Calculation-expression/m-p/452965#M169031</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2013-04-15T06:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory Calculation expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Inventory-Calculation-expression/m-p/452966#M169032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow.&amp;nbsp; I would seriously look at reworking your data model to allow a simpler calculation!&amp;nbsp; Can help with that if you like - please post the data model and some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 10:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inventory-Calculation-expression/m-p/452966#M169032</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-04-15T10:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory Calculation expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Inventory-Calculation-expression/m-p/452967#M169033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;Yes the logic has to be changed i have realised that but i am not allowed to share any info in my company sorry..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for your reply.....If possible would mail u my logic if give ur email id..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Rohit Yadav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 09:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inventory-Calculation-expression/m-p/452967#M169033</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2013-04-17T09:38:13Z</dc:date>
    </item>
  </channel>
</rss>

