<?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 To find the Value based on the Inventory Closed Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/To-find-the-Value-based-on-the-Inventory-Closed-Month/m-p/704893#M254187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one requirement I have to find the Value of last month based on the Inventory Closed. The Scenario is as follows&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; two&amp;nbsp; tables in first table&amp;nbsp; Transtype field&amp;nbsp; which indicates the Inventory Closed&amp;nbsp; status where Transtype=7 which is not present in second table and now i have to find the value of Measure B which is present in the second Table B. I have to caluclate the value of Measure B&amp;nbsp; based on the Inventory Closed means last month Value of Mesure B becuase Current Month is always not Closed so we have to refer the value of Measure B of Previous Month where Inventory Status is Closed . If any Case the Previous Month&amp;nbsp; is also not Closed than i have to refer previous to previous Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have giving the table description below and I have tried i had used one variable tmp in the my test Qvw in which i used set analysis &lt;/P&gt;&lt;P&gt;variable defination(max({&amp;lt;TRANSTYPE={'7'}&amp;gt;}Month)) which indicates the Month Closing . In my Case when I select July it shows null value and not showing the Value of July i.e. Value of June in that Case In June Inventory is Closed. So,please help me to resolve the Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Please help me how we achieve that using set analyis.&lt;/P&gt;&lt;P&gt;Any Help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD ITEMID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DATEPHYSICAL, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Date(Floor(DATEPHYSICAL)) as [Trans Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;year(DATEPHYSICAL) as Year,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; num(Month(Floor(DATEPHYSICAL))) as&amp;nbsp; Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Month(Floor(DATEPHYSICAL)) as MonthName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; QTY, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; TRANSTYPE,&amp;nbsp;&amp;nbsp; //indicates the Inventory Closed Status where Transtype=7&lt;/P&gt;&lt;P&gt; TRANSREFID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INVOICEID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; VOUCHER &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)Where DATAAREAID=100 AND Year(DATEPHYSICAL)&amp;lt;&amp;gt;1900;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate &lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROMADDRESSSTATENAME as BName, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; FROMTALUKANAME as BFROMTALUKANAME, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; TOTALUKANAME as BTOTALUKANAME, &lt;/P&gt;&lt;P&gt; Date(Floor(EFFECTIVEDATETIME)) as [Trans Date],&lt;/P&gt;&lt;P&gt; Month(Floor(EFFECTIVEDATETIME)) as MonthName,&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;num(Month(Floor(EFFECTIVEDATETIME))) as&amp;nbsp; Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; year(EFFECTIVEDATETIME) as Year,&amp;nbsp; &lt;/P&gt;&lt;P&gt; DISTANCE as [Measure B] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)Where DATAAREAID=100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROMADDRESSSTATENAME as BName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROMTALUKANAME as BFROMTALUKANAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TOTALUKANAME as BTOTALUKANAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(EFFECTIVEDATETIME)) as [Trans Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Floor(EFFECTIVEDATETIME)) as MonthName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Month(Floor(EFFECTIVEDATETIME))) as&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(EFFECTIVEDATETIME) as Year,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISTANCE as [Measure B] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)Where DATAAREAID=100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 04:30:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-04T04:30:05Z</dc:date>
    <item>
      <title>To find the Value based on the Inventory Closed Month</title>
      <link>https://community.qlik.com/t5/QlikView/To-find-the-Value-based-on-the-Inventory-Closed-Month/m-p/704893#M254187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one requirement I have to find the Value of last month based on the Inventory Closed. The Scenario is as follows&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; two&amp;nbsp; tables in first table&amp;nbsp; Transtype field&amp;nbsp; which indicates the Inventory Closed&amp;nbsp; status where Transtype=7 which is not present in second table and now i have to find the value of Measure B which is present in the second Table B. I have to caluclate the value of Measure B&amp;nbsp; based on the Inventory Closed means last month Value of Mesure B becuase Current Month is always not Closed so we have to refer the value of Measure B of Previous Month where Inventory Status is Closed . If any Case the Previous Month&amp;nbsp; is also not Closed than i have to refer previous to previous Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have giving the table description below and I have tried i had used one variable tmp in the my test Qvw in which i used set analysis &lt;/P&gt;&lt;P&gt;variable defination(max({&amp;lt;TRANSTYPE={'7'}&amp;gt;}Month)) which indicates the Month Closing . In my Case when I select July it shows null value and not showing the Value of July i.e. Value of June in that Case In June Inventory is Closed. So,please help me to resolve the Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Please help me how we achieve that using set analyis.&lt;/P&gt;&lt;P&gt;Any Help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD ITEMID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DATEPHYSICAL, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Date(Floor(DATEPHYSICAL)) as [Trans Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;year(DATEPHYSICAL) as Year,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; num(Month(Floor(DATEPHYSICAL))) as&amp;nbsp; Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Month(Floor(DATEPHYSICAL)) as MonthName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; QTY, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; TRANSTYPE,&amp;nbsp;&amp;nbsp; //indicates the Inventory Closed Status where Transtype=7&lt;/P&gt;&lt;P&gt; TRANSREFID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INVOICEID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; VOUCHER &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)Where DATAAREAID=100 AND Year(DATEPHYSICAL)&amp;lt;&amp;gt;1900;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate &lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROMADDRESSSTATENAME as BName, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; FROMTALUKANAME as BFROMTALUKANAME, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; TOTALUKANAME as BTOTALUKANAME, &lt;/P&gt;&lt;P&gt; Date(Floor(EFFECTIVEDATETIME)) as [Trans Date],&lt;/P&gt;&lt;P&gt; Month(Floor(EFFECTIVEDATETIME)) as MonthName,&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;num(Month(Floor(EFFECTIVEDATETIME))) as&amp;nbsp; Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; year(EFFECTIVEDATETIME) as Year,&amp;nbsp; &lt;/P&gt;&lt;P&gt; DISTANCE as [Measure B] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)Where DATAAREAID=100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROMADDRESSSTATENAME as BName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROMTALUKANAME as BFROMTALUKANAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TOTALUKANAME as BTOTALUKANAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(EFFECTIVEDATETIME)) as [Trans Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Floor(EFFECTIVEDATETIME)) as MonthName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Month(Floor(EFFECTIVEDATETIME))) as&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(EFFECTIVEDATETIME) as Year,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISTANCE as [Measure B] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)Where DATAAREAID=100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 04:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/To-find-the-Value-based-on-the-Inventory-Closed-Month/m-p/704893#M254187</guid>
      <dc:creator />
      <dc:date>2014-08-04T04:30:05Z</dc:date>
    </item>
  </channel>
</rss>

