<?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: Set Analysis Expression For Balance Sheet Accounts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828843#M291806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My 2 cents...&amp;nbsp; actually only 1 cent:&lt;/P&gt;&lt;P&gt;Set analysis is "format-sensitive".&amp;nbsp; In the example from Stefan the MonthStart field is in the date format, but max(MonthStart) will be integer.&amp;nbsp; To make it work, a small change is needed:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Year=, Month=, MonthStart = {"&amp;lt;=$(=&lt;STRONG&gt;date(&lt;/STRONG&gt;Max(MonthStart)&lt;STRONG&gt;)&lt;/STRONG&gt;)"}&amp;gt;} TransactionAmount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 May 2015 22:19:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-10T22:19:45Z</dc:date>
    <item>
      <title>Set Analysis Expression For Balance Sheet Accounts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828841#M291804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression for YTD sum.&amp;nbsp; The issue is that I need to sum account transactions from the beginning of time to the current Year-Month selection for a Balance Sheet report.&amp;nbsp; Balance Sheets are an accumulating financial report that maintains a running total from the beginning of time.&amp;nbsp; I'm not sure how to alter the expression below to start the summation from the beginning of time (i.e. 2007) up to and including the Year-Month selection.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for assistance with this question.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year))},Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}TransactionAmount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 21:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828841#M291804</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-05-10T21:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression For Balance Sheet Accounts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828842#M291805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier to create a field containg the Year-Month, i.e. the Monthstart date showing unique values for every combination of Year and Month (I assume Year and Month fields have a numeric representation in your data model):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Makedate(Year, Month) as MonthStart&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Year=, Month=, MonthStart = {"&amp;lt;=$(=Max(MonthStart))"}&amp;gt;} TransactionAmount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 21:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828842#M291805</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-10T21:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression For Balance Sheet Accounts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828843#M291806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My 2 cents...&amp;nbsp; actually only 1 cent:&lt;/P&gt;&lt;P&gt;Set analysis is "format-sensitive".&amp;nbsp; In the example from Stefan the MonthStart field is in the date format, but max(MonthStart) will be integer.&amp;nbsp; To make it work, a small change is needed:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Year=, Month=, MonthStart = {"&amp;lt;=$(=&lt;STRONG&gt;date(&lt;/STRONG&gt;Max(MonthStart)&lt;STRONG&gt;)&lt;/STRONG&gt;)"}&amp;gt;} TransactionAmount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 22:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828843#M291806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-10T22:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression For Balance Sheet Accounts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828844#M291807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you swuehl.&amp;nbsp; That did the trick!!!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 00:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828844#M291807</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-05-11T00:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression For Balance Sheet Accounts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828845#M291808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the change.&amp;nbsp; Thank you!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 00:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression-For-Balance-Sheet-Accounts/m-p/828845#M291808</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-05-11T00:51:20Z</dc:date>
    </item>
  </channel>
</rss>

