<?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: Opening Balance and Date Change Issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979986#M644918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My calendar and periodindex are connnected howvever my calendar is based on FY and Periods and PeriodIndex is just a list of numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you select a different year my number for opening balance reverts to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can get it to incorporate a previous year figure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 11:51:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-25T11:51:17Z</dc:date>
    <item>
      <title>Opening Balance and Date Change Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979984#M644916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to change an expression for an opening balance figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It currently works by summing up all previous periods I have which I have tied to a field called PeriodIndex, which is just numbers from 1-180.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now trying to change that to work by a calendar format, i.e Periods 1-12 and Years. I have managed to tie these to PeriodIndex so they do change accordingly, i.e 2016, Period 6 will relate to the correct PeriodIndex number out 1-180.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am unable to get my opening balance figures correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My original code to sum up all previous periods and to use the minimum selected &lt;STRONG&gt;Periodindex&lt;/STRONG&gt; number in a selection was: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;PeriodIndex={"&amp;lt;$(=Min(PeriodIndex))"},..........Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ideal world I could surely transform this code already to select the minimum &lt;STRONG&gt;Fiscal Year and Period&lt;/STRONG&gt; to make it something like this i.e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;FY={"&amp;lt;$(=Min(FY))"},&lt;/SPAN&gt;{&amp;lt;Period={"&amp;lt;$(=Min(Period))"},..........Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However this expression or versions I've been trying always starts the years first month at 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;To perhaps somewhat complicate the matter the opening balance figure is then used to create a closing balance figure for the Period and then in turn this closing balance figure becomes the opening of the next period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help on the matter would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;James &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979984#M644916</guid>
      <dc:creator />
      <dc:date>2015-11-25T10:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Balance and Date Change Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979985#M644917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thinkk if your calendar is further connected to the PeriodIndex you didn't need to change your approach - you couldn't make it easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 11:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979985#M644917</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-11-25T11:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Balance and Date Change Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979986#M644918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My calendar and periodindex are connnected howvever my calendar is based on FY and Periods and PeriodIndex is just a list of numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you select a different year my number for opening balance reverts to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can get it to incorporate a previous year figure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 11:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979986#M644918</guid>
      <dc:creator />
      <dc:date>2015-11-25T11:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Balance and Date Change Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979987#M644919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It there is the right connection a PeriodIndex should work - it starts by 1 parallel to your calendar (financial calendar meant only a certain offset) and adds each month with 1. I use sometimes a similar aproach with a MonthCounter: &lt;A href="https://community.qlik.com/message/563904"&gt;Re: Howto make a variable to calculate quarters regarding year changes?&lt;/A&gt; And this is maybe also helpful for you: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-Balance-and-Date-Change-Issues/m-p/979987#M644919</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-11-25T13:10:23Z</dc:date>
    </item>
  </channel>
</rss>

