<?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: Accumulate balance shown by date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108735#M633946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: I would like to be able to use a Calendar (based from the Date dimension preferably) and select on any day and it show the balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;- I select 6/3/16 on the calendar object and the balance shown is 73,017.956.&lt;/P&gt;&lt;P&gt;- I select 5/29/16 on the calendar object and the balance shown is 76,273.555 (from last balance at 5/27)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 12:56:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-22T12:56:00Z</dc:date>
    <item>
      <title>Accumulate balance shown by date</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108729#M633939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I would like to display the balance from the first dump to a specific date. Not every date has transactions. I want to look up the closest day before the date I enter in the selection in a report in QV and display the balance.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Example:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Date&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt; Balance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;5/5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;5/9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;5/18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;5/23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I want to enter date 5/12/16 and get the response $7,000, which was the balance on 5/9/16 when the item was last touched. Note - t&lt;/SPAN&gt;here were no changes for this item between 5/9/16-5/18/16.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108729#M633939</guid>
      <dc:creator />
      <dc:date>2016-06-01T20:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate balance shown by date</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108730#M633940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;Date = {"$(='&amp;lt;=' &amp;amp; vVariable)"}&amp;gt;}Balance, -Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here vVariable will be driven by an input box or calendar box object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108730#M633940</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T21:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate balance shown by date</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108731#M633942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample to take a look at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126580_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108731#M633942</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T21:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate balance shown by date</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108732#M633943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;Try this code, it will give what might look like an odd data model and you can tidy it up if you want but it's good to leave it as it is so you can get to understand how the IntervalMatch function works. &lt;/P&gt;&lt;P&gt;Add a listbox for Date and a text box with the formula =Only(Balance) and play around with it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balances:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, Balance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/5/2016, 9000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/9/2016, 7000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/18/2016, 4000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/23/2016, 5000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempMinDate: //Get the start date for making a calendar&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Min(Date) as StartDate&lt;/P&gt;&lt;P&gt;Resident Balances;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStartDate = PEEK('StartDate',0,'TempMinDate');// start date held in this variable&lt;/P&gt;&lt;P&gt;DROP Table TempMinDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Periods:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Date as From,&lt;/P&gt;&lt;P&gt;Date(RangeMin(Today(),Peek('Date',RecNo(),'Balances') -1)) as To, &lt;/P&gt;&lt;P&gt;//The above line peeks ahead one record in the Balances table to see the To Date and subtracts 1. &lt;/P&gt;&lt;P&gt;//If Peek does not return a value (when reading last record and there is no next record to peek) Today() is returned.&lt;/P&gt;&lt;P&gt;Balance&lt;/P&gt;&lt;P&gt;Resident Balances;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Balances;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar: // Make a simple calandar of dates from start to today&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Date(TempDate) as Date;&lt;/P&gt;&lt;P&gt;LOAD IterNo() + $(vStartDate) -1 as TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1 While IterNo() + $(vStartDate) -1 &amp;lt;= Today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch(Date) LOAD From, To Resident Periods; // This matches each date in the calendar to a time period&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 22:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108732#M633943</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-06-01T22:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate balance shown by date</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108733#M633944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. Unfortunately I cant get that to work. Not sure what I did wrong&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MetalBal.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128529_MetalBal.PNG" style="height: 185px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108733#M633944</guid>
      <dc:creator />
      <dc:date>2016-06-20T15:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate balance shown by date</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108734#M633945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share where you trying this and what is the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 21:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108734#M633945</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-20T21:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulate balance shown by date</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108735#M633946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: I would like to be able to use a Calendar (based from the Date dimension preferably) and select on any day and it show the balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;- I select 6/3/16 on the calendar object and the balance shown is 73,017.956.&lt;/P&gt;&lt;P&gt;- I select 5/29/16 on the calendar object and the balance shown is 76,273.555 (from last balance at 5/27)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 12:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulate-balance-shown-by-date/m-p/1108735#M633946</guid>
      <dc:creator />
      <dc:date>2016-06-22T12:56:00Z</dc:date>
    </item>
  </channel>
</rss>

