<?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: Expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216656#M861502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add an aggr() function after your sum because of what you are trying to do.... Alternatively, may be you just need to use set analysis if your comparison of Year of Expense to Max(Year of Expense) doesn't change based on your dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2017 15:37:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-09T15:37:29Z</dc:date>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216654#M861500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If(GetSelectedCount(LuCurrencyType3) &amp;gt; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(sum(if([Expense Type]='Base Rent',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; If([Year of Expense] = max(&lt;SPAN style="font-size: 13.3333px;"&gt;[Year of Expense]&lt;/SPAN&gt;),&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Expense Amount (USD)]/Factors))), '$(varCurrencySymbol) #,##0'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(sum(if([Expense Type]='Base Rent',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; If([Year of Expense] = &lt;SPAN style="font-size: 13.3333px;"&gt; max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Year of Expense]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;),&lt;/SPAN&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Expense Amount (USD)]))), '$(varCurrencySymbol) #,##0'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am getting an error saying Nested Aggregation not allowed and I guess it is because of&lt;/P&gt;&lt;P&gt; &lt;STRONG style="font-size: 13.3333px;"&gt;If([Year of Expense] = &lt;SPAN style="font-size: 13.3333px;"&gt; max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Year of Expense]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;),&lt;/SPAN&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I put this together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216654#M861500</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216655#M861501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try&lt;/P&gt;&lt;P&gt;&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;If([Year of Expense] = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;max(TOTAL &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Year of Expense]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;),&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or specify what exactely you want to achieve and how your model &amp;amp; data looks like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 15:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216655#M861501</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-09T15:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216656#M861502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add an aggr() function after your sum because of what you are trying to do.... Alternatively, may be you just need to use set analysis if your comparison of Year of Expense to Max(Year of Expense) doesn't change based on your dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 15:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216656#M861502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216657#M861503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnak you very much.That helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 15:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/1216657#M861503</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2017-01-09T15:48:02Z</dc:date>
    </item>
  </channel>
</rss>

