<?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: Pivot Table - Start Of Month Warehouses Balance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667908#M1078476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mantan,&lt;/P&gt;&lt;P&gt;You have to use Peek function in script bashed on the date and derive the previous values of the field to be used in the expression and then use it .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2014 08:10:54 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2014-07-14T08:10:54Z</dc:date>
    <item>
      <title>Pivot Table - Start Of Month Warehouses Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667905#M1078471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;Please look on the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this file I have: Parts, Orders for parts, current warehouse balance for each part, due-date calendar, and table with accumulated order quantity for each part for each order-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the warehouses balance on the start of the month, i.e - i need to "Copy" the previous 'EOM Warhs Balance' column,&lt;/P&gt;&lt;P&gt;But&amp;nbsp; - &lt;SPAN style="text-decoration: underline;"&gt;without use functions like - "Before" &amp;amp; "After"&lt;/SPAN&gt;, so if user select a specific months, he will get real data (n&lt;SPAN class="hps"&gt;ot&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;depend&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;on the previous &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps" style="font-size: 10pt; line-height: 1.5em;"&gt;columns&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The 'EOM Warhs Balance' expression is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14053246412662792" jivemacro_uid="_14053246412662792"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sum(WarehousesBalance.Balance) - FirstSortedValue(AccumulateBalanceOpenOrders.AccTBalance, -1 * AccumulateBalanceOpenOrders.RowNo)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Short:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="62351" alt="WarhouseBalance_StartOfMonth1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/62351_WarhouseBalance_StartOfMonth1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;and when c&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;hoosing&lt;/SPAN&gt; YM =&amp;nbsp; '2014-10' the table will show:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="62352" alt="WarhouseBalance_StartOfMonth2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/62352_WarhouseBalance_StartOfMonth2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that a combination of 'Firstsortedvalue()' and 'Aggr()' functions will solve this problem but I don't know how....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hope I was able&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to clearly explain&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the problem...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any help -&lt;/P&gt;&lt;P&gt;Matan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 07:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667905#M1078471</guid>
      <dc:creator>matancha</dc:creator>
      <dc:date>2014-07-14T07:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Start Of Month Warehouses Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667906#M1078474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matan ,&lt;/P&gt;&lt;P&gt;It is just due to the scene that you have only one expression giving value for a time period&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 08:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667906#M1078474</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-07-14T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Start Of Month Warehouses Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667907#M1078475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the sample you have posted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 08:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667907#M1078475</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-07-14T08:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Start Of Month Warehouses Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667908#M1078476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mantan,&lt;/P&gt;&lt;P&gt;You have to use Peek function in script bashed on the date and derive the previous values of the field to be used in the expression and then use it .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 08:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667908#M1078476</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-07-14T08:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Start Of Month Warehouses Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667909#M1078477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sujeetsingh - thanks for your quick answers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i didn't see any changes in my expressions.&lt;/P&gt;&lt;P&gt;I only saw change in table type (pivot --&amp;gt; straight).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 08:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667909#M1078477</guid>
      <dc:creator>matancha</dc:creator>
      <dc:date>2014-07-14T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table - Start Of Month Warehouses Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667910#M1078478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show me an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I couldn't understand&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what you're saying.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Note that the time dimension is cyclic: YM | YQ | Year | Date ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again...&lt;/P&gt;&lt;P&gt;Matan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 08:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Start-Of-Month-Warehouses-Balance/m-p/667910#M1078478</guid>
      <dc:creator>matancha</dc:creator>
      <dc:date>2014-07-14T08:17:58Z</dc:date>
    </item>
  </channel>
</rss>

