<?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 expression for compute the Balance sheet. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049342#M641882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set expressions are just displaying the result for the max selected year and all the months up until the selected month for the max selected year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 09:22:00 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-29T09:22:00Z</dc:date>
    <item>
      <title>SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049340#M641880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some time back my below expression will compute the BS figure for me , out of sudden this expression refuse to work :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Exec P&amp;amp;L Level] = 's','',Sum({$&amp;lt;year = {$(=max(year))}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}[Amount]*-1)/1000/$(ColumnDim98))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to figure where go wrong , i need to know what are the above SET expression did ? Hope some one can share with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049340#M641880</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-29T09:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049341#M641881</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 like this&lt;/P&gt;&lt;P&gt;&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;if([Exec P&amp;amp;L Level] = 's','',Sum({$&amp;lt;year =, month =, DateFieldName {"&amp;lt;=$(=max(DateFieldName))}&amp;gt;} [Amount]*-1)/1000/$(ColumnDim98))&lt;/SPAN&gt;&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;&lt;BR /&gt;&lt;/SPAN&gt;&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;Hope this helsp you.&lt;/SPAN&gt;&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;&lt;BR /&gt;&lt;/SPAN&gt;&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;Regards,&lt;/SPAN&gt;&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;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049341#M641881</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-29T09:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049342#M641882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set expressions are just displaying the result for the max selected year and all the months up until the selected month for the max selected year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049342#M641882</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T09:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049343#M641883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if my raw data is as following :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;31/12/15&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;31/12/15&amp;nbsp;&amp;nbsp; -55&lt;/P&gt;&lt;P&gt;31/1/16&amp;nbsp;&amp;nbsp; 70&lt;/P&gt;&lt;P&gt;31/1/16&amp;nbsp;&amp;nbsp; -35&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;29/2/16&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;29/2/16&amp;nbsp;&amp;nbsp; -5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it will display 5. ( Assume now us Feb 29 ) , it will only sum up Feb 2016 raw data which is 10 and -5 right ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049343#M641883</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-29T09:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049344#M641884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the expression use &amp;lt;= for Month's set analysis it might be using Jan and Feb. (Although the current structure will only work if Month is in number because max() will output a number and you need to have same formats on the LHS and RHS of&amp;nbsp; set analysis).&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;&lt;STRONG&gt;if([Exec P&amp;amp;L Level] = 's','',Sum({$&amp;lt;year = {$(=max(year))}, month = {"&lt;SPAN style="color: #ff0000;"&gt;&amp;lt;=&lt;/SPAN&gt;$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}[Amount]*-1)/1000/$(ColumnDim98))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting just Feb, may be this:&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;&lt;STRONG&gt;if([Exec P&amp;amp;L Level] = 's','',Sum({$&amp;lt;year = {$(=max(year))}, month = {"$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;}[Amount]*-1)/1000/$(ColumnDim98))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049344#M641884</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049345#M641885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your detail explanation, it help a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049345#M641885</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-29T09:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049346#M641886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi sunny&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;One more related question to SET , but i use the expression P&amp;amp;L instead of balance sheet.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum({$&amp;lt;year = {$(=max(year))}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} Amount/1000/$(ColumnDim98))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can i said the above expression will sum up all amount for the 2016 from jan till feb ? if user select year =2016 month =2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum({$&amp;lt;year = {$(=max(year))}, Month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} Month))&amp;gt;$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} Month)-1)"}&amp;gt;}&amp;nbsp;&amp;nbsp; Amount/1000/$(ColumnDim98))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The above expression will sum only Feb if user click on year=2016 &amp;amp; month =2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Am i right ?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 10:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049346#M641886</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-29T10:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049347#M641887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I believe both the expressions are doing what you mentioned, but why are you doing &amp;lt;=2&amp;gt;1? why not just =2 for your second expression? Both means the same thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;year = {$(=Max(year))}, month = {"$(=Max({&amp;lt;year={$(=Max(year))}&amp;gt;} month))"}&amp;gt;} Amount/1000/$(ColumnDim98))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 10:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049347#M641887</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T10:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049348#M641888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is compute YTD Jan till Feb , another one is compute Feb amount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both expression look the same to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 11:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049348#M641888</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-29T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: SET expression for compute the Balance sheet.</title>
      <link>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049349#M641889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean, but you can use this for YTD:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;year = {$(=Max(year))}, month = {"&amp;lt;=$(=Max({&amp;lt;year={$(=Max(year))}&amp;gt;} month))"}&amp;gt;} Amount/1000/$(ColumnDim98))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this for the max month selected in the max year selected&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;year = {$(=Max(year))}, month = {"$(=Max({&amp;lt;year={$(=Max(year))}&amp;gt;} month))"}&amp;gt;} Amount/1000/$(ColumnDim98))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 12:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-expression-for-compute-the-Balance-sheet/m-p/1049349#M641889</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T12:00:40Z</dc:date>
    </item>
  </channel>
</rss>

