<?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 INVENTORY RUNNING BALANCES (INITIAL/ENDING) - multiple period selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163099#M36329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose I need to get the Initial Balance for the "Date=Min(Date)" where "Min(Date)" is the smaller date in the current selection. I tried with Min(Date) but while it returns the correct results when used as separate expression when trying to incorporate it in SUMIF condition it fails. (Sum (IF (Date=Min(Date), [Initial Balance], 0))&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mangas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2009 12:11:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-21T12:11:50Z</dc:date>
    <item>
      <title>INVENTORY RUNNING BALANCES (INITIAL/ENDING) - multiple period selection</title>
      <link>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163098#M36328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody.&lt;/P&gt;&lt;P&gt;I have to prepare lot of reports for Warehouse movements and Accounting (Debits/Credits). All these reports need initial/ending balances for the selection : Daily/Weekly/Monthly etc.&lt;/P&gt;&lt;P&gt;I get the transactions in a table, I use aggregate functions per day/product and I get the movements. I use "Autogenerate" to create all Year dates, so my balances to not have gaps if there are no transactions for a given day. I take the initial balances from the ending balance of the previous day with the " above() " function. Then I export the calculated table and reload it. I read in the forum that the same could be done with resident table in the phase of loading but I couldn't find good example.&lt;/P&gt;&lt;P&gt;Anyway, In the attached example the data is loaded with the balances already calculated. What I needed to do is to prepare Weekly/Monthly reports from the daily balances. I've got it using the "WeekStart" and "Monthstart" functions. Though, my application is not working if I select more than one Week/Month. Can you please assist? If anybody wants to provide sample application I would be grateful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mangas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 01:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163098#M36328</guid>
      <dc:creator />
      <dc:date>2009-08-21T01:28:18Z</dc:date>
    </item>
    <item>
      <title>INVENTORY RUNNING BALANCES (INITIAL/ENDING) - multiple period selection</title>
      <link>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163099#M36329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose I need to get the Initial Balance for the "Date=Min(Date)" where "Min(Date)" is the smaller date in the current selection. I tried with Min(Date) but while it returns the correct results when used as separate expression when trying to incorporate it in SUMIF condition it fails. (Sum (IF (Date=Min(Date), [Initial Balance], 0))&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mangas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 12:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163099#M36329</guid>
      <dc:creator />
      <dc:date>2009-08-21T12:11:50Z</dc:date>
    </item>
    <item>
      <title>INVENTORY RUNNING BALANCES (INITIAL/ENDING) - multiple period selection</title>
      <link>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163100#M36330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So my dearest frineds, I foubnd the sollution and I would like to share with you:&lt;/P&gt;&lt;P&gt;When selecting more than one week in order to get the INITIAL_BALANCE only for the first day of teh SELECTION I use condition as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( If( Min(TOTAL Date)=Date,INITIAL_BALANCE, 0) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mangas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 16:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163100#M36330</guid>
      <dc:creator />
      <dc:date>2009-08-24T16:23:53Z</dc:date>
    </item>
    <item>
      <title>INVENTORY RUNNING BALANCES (INITIAL/ENDING) - multiple period selection</title>
      <link>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163101#M36331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, your post helped me on a similar issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 15:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163101#M36331</guid>
      <dc:creator>iuliancres</dc:creator>
      <dc:date>2010-02-17T15:10:49Z</dc:date>
    </item>
    <item>
      <title>INVENTORY RUNNING BALANCES (INITIAL/ENDING) - multiple period selection</title>
      <link>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163102#M36332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is nice. I'm glad to hear that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the way you CALCULATE the balances (daily, weekly or monthly?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally I think there are two ways:&lt;/P&gt;&lt;P&gt;COMPLICATED ONE:&lt;/P&gt;&lt;P&gt;1.1) Load MM data (or accounting whatsoever)&lt;/P&gt;&lt;P&gt;1.2) Make flat table with all transactions, dimension the TIME you wish (lets say week)&lt;/P&gt;&lt;P&gt;1.3) Export the already calculated table&lt;/P&gt;&lt;P&gt;1.4) Reload data again, taking as new input the calculated table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIMPLE ONE:&lt;/P&gt;&lt;P&gt;Making use of functions PEEK during the load and pre-calculate everything on the fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the fisrt method ;-), but I'd like to see a file with the second method implemented. If you have something, please share!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 15:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVENTORY-RUNNING-BALANCES-INITIAL-ENDING-multiple-period/m-p/163102#M36332</guid>
      <dc:creator />
      <dc:date>2010-02-17T15:15:52Z</dc:date>
    </item>
  </channel>
</rss>

