<?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: Problems with setanalysis expression: show end-balance per year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271047#M496148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan Adhimulam and jagan mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your directions! Unfortunately (as far as I see now...) it is not a solution for me. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The aggr() function looked most promising to me but results in a chart displaying no values&lt;/LI&gt;&lt;LI&gt;the firstSortedValue seems to work in _exactly_ my example, but not in my project. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a testproject with some more data (don't worry, it is only 16 records x 4 columns). Here I have modeled both options you provided (aggr and firstSortedValue) and there it is visible that it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 12:10:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-10T12:10:59Z</dc:date>
    <item>
      <title>Problems with setanalysis expression: show end-balance per year</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271044#M496145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Hi there!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;I’m pretty new with Qlikview and tried a lot to get my following expression working. I hope you can give me some expalation / help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Situation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;What I would like to show in my “straight table chart” is that it –per year- presents me the end-balance (defined as the value of “balance” on the maximum date of that year).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;STRONG&gt;Source table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border-width: initial; border-style: initial; border-image: initial; border-color: currentcolor;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-image: initial; padding-left: 5.4pt; padding-right: 5.4pt; border-width: 1pt; border-color: windowtext; border-style: solid;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: 1pt; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Balance&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: 1pt; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: 1pt; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;1-1-2010&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;123&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: 1pt; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;1-11-2010&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;-100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: 1pt; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;31-12-2010&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;3900&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: 1pt; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;1-11-2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;-100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: 1pt; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;31-12-2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;-900&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 12pt; font-family: Calibri;"&gt;In my chart I have...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-indent: -18pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;a dimension YEAR (=year(date) )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -18pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;A few expressions showing me things per year&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -18pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;-&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;And the thing I cannot get working correctly: that is the end-balance per year&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;The result (based on the table above) should be like this&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border-width: initial; border-style: initial; border-image: initial; border-color: currentcolor;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-image: initial; padding-left: 5.4pt; padding-right: 5.4pt; border-width: 1pt; border-color: windowtext; border-style: solid;" valign="top" width="44"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Year&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: 1pt; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="188"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;End-balance&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: 1pt; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="44"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;2010&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="188"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;3900&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: 1pt; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="44"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top-width: initial; border-bottom-width: 1pt; border-left-width: initial; border-right-width: 1pt; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-top-color: #000000; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: #000000; padding-left: 5.4pt; padding-right: 5.4pt;" valign="top" width="188"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;-900&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;The best expression I have now is this one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Arial, sans-serif; font-size: 9pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: Arial, sans-serif; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: Arial, sans-serif; font-size: 9pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: Arial, sans-serif; font-size: 9pt;"&gt;={ '$(=Max(date))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: maroon; font-family: Arial, sans-serif; font-size: 9pt;"&gt;balance&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; font-family: Arial, sans-serif; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;But: this only returns the (correct!!) balance of the last year in my database. I want to have it for all years…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;H&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;ow can I get that right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;It is similar to &lt;A _jive_internal="true" href="https://community.qlik.com/thread/45942"&gt;this &lt;/A&gt;question &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;but even with reading this topic, I cannot get it right. I must overlook something &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;Roberto &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 09:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271044#M496145</guid>
      <dc:creator />
      <dc:date>2012-02-10T09:48:57Z</dc:date>
    </item>
    <item>
      <title>Problems with setanalysis expression: show end-balance per year</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271045#M496146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use this expression,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =FirstSortedValue(Balance,-Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271045#M496146</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-10T10:31:16Z</dc:date>
    </item>
    <item>
      <title>Problems with setanalysis expression: show end-balance per year</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271046#M496147</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;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get the Year dimension in script and then use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Year as Dimension and use the below expression&lt;/P&gt;&lt;P&gt;=Aggr(If(date = Max(date), balance), Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271046#M496147</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-10T10:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with setanalysis expression: show end-balance per year</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271047#M496148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan Adhimulam and jagan mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your directions! Unfortunately (as far as I see now...) it is not a solution for me. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The aggr() function looked most promising to me but results in a chart displaying no values&lt;/LI&gt;&lt;LI&gt;the firstSortedValue seems to work in _exactly_ my example, but not in my project. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a testproject with some more data (don't worry, it is only 16 records x 4 columns). Here I have modeled both options you provided (aggr and firstSortedValue) and there it is visible that it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271047#M496148</guid>
      <dc:creator />
      <dc:date>2012-02-10T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with setanalysis expression: show end-balance per year</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271048#M496149</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;Please check the attachment for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 13:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271048#M496149</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-10T13:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with setanalysis expression: show end-balance per year</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271049#M496150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me, Celambarasan Adhimulam's answer was the best answer: usage of FirstSortedValue( ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final expression I now use is: &lt;/P&gt;&lt;P&gt;FirstSortedValue(balance,-sequencenumber);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proposed solution with &lt;/P&gt;&lt;P&gt;FirstSortedValue(balance,-date);&lt;/P&gt;&lt;P&gt;did'nt work as expected, since the date column could have multiple records with the same value (like 4 records having value 31-12-2010). In that case, the "correct" record to pick is the one with the highest sequencenumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sequencenumber is a column that I now load additionally in the loadscript...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 13:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-setanalysis-expression-show-end-balance-per-year/m-p/271049#M496150</guid>
      <dc:creator />
      <dc:date>2012-02-16T13:13:35Z</dc:date>
    </item>
  </channel>
</rss>

