<?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: Advanced AGGR with Nested If in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advanced-AGGR-with-Nested-If/m-p/327938#M120758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd expect you to be able to use just about any expression in an aggr to get a column total.&amp;nbsp; The general form is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum(aggr(YourCurrentExpression,YourFirstDimension,YourSecondDimension,etc))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 23:04:52 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-05-25T23:04:52Z</dc:date>
    <item>
      <title>Advanced AGGR with Nested If</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-AGGR-with-Nested-If/m-p/327937#M120757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below expression at the line level returns the desired outcome. Unfortunately when used in the pivot table the column totals are incorrect. Is there a way to use an if statement like below in the AGGR expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((not isnull(Order__c.Ship_Date__c)) and Booked_on_AS400_a&amp;nbsp; &amp;lt;&amp;gt;'' and Rev_Rec_a &amp;gt; Today(),sum(Total_Price_a))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 18:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-AGGR-with-Nested-If/m-p/327937#M120757</guid>
      <dc:creator />
      <dc:date>2011-05-25T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced AGGR with Nested If</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-AGGR-with-Nested-If/m-p/327938#M120758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd expect you to be able to use just about any expression in an aggr to get a column total.&amp;nbsp; The general form is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum(aggr(YourCurrentExpression,YourFirstDimension,YourSecondDimension,etc))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 23:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-AGGR-with-Nested-If/m-p/327938#M120758</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-25T23:04:52Z</dc:date>
    </item>
  </channel>
</rss>

