<?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: Aggr Function with multiple IF statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492875#M184359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Shalaka &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find expression AGGR with IF used you can modify as per your requirement&lt;/P&gt;&lt;P&gt;fabs(SUM(AGGR(if(((vSelectDate - max({$&amp;lt;StockInOutIndicator={1}&amp;gt;}PostingDate) &amp;gt;=271)),SUM(Inv_Val)),Location_Code, Item_Code, [Lot No_]))/100000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put multiple if&amp;nbsp; required,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 11:44:51 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2013-10-01T11:44:51Z</dc:date>
    <item>
      <title>Aggr Function with multiple IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492874#M184358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i need to do the following analysis in Qlikview--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Find the number of students by Age who don't hold distinction.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My straight table should show # Students by age who don't have Distinction Marks as well Distinction Grade.&lt;/P&gt;&lt;P&gt;Dimensions available: &lt;/P&gt;&lt;P&gt;a) Student ID&lt;/P&gt;&lt;P&gt;b) Student Age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Metrics Available:&lt;/P&gt;&lt;P&gt;a) Practical&amp;nbsp; Marks&lt;/P&gt;&lt;P&gt;b) Theory Marks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use the Following --&amp;gt;&lt;/P&gt;&lt;P&gt;Dimension as Student Age&lt;/P&gt;&lt;P&gt;and Expression as &lt;/P&gt;&lt;P&gt;=Sum(AGGR(IF(sum(Practical Marks)&amp;lt;70 and Sum(Theory Marks)&amp;lt;70,1,0),Student ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this not returning me any values.&lt;/P&gt;&lt;P&gt;Any thought ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 09:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492874#M184358</guid>
      <dc:creator />
      <dc:date>2013-09-30T09:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with multiple IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492875#M184359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Shalaka &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find expression AGGR with IF used you can modify as per your requirement&lt;/P&gt;&lt;P&gt;fabs(SUM(AGGR(if(((vSelectDate - max({$&amp;lt;StockInOutIndicator={1}&amp;gt;}PostingDate) &amp;gt;=271)),SUM(Inv_Val)),Location_Code, Item_Code, [Lot No_]))/100000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put multiple if&amp;nbsp; required,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 11:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492875#M184359</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-10-01T11:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with multiple IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492876#M184360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(AGGR(IF(sum([Practical Marks])&amp;lt;70 and Sum([Theory Marks])&amp;lt;70,1,0),[Student Age],[Student ID]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 11:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492876#M184360</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-01T11:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function with multiple IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492877#M184361</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;Use Age as Dimension and use the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(AGGR(IF(Sum([Practical Marks])&amp;lt;70 AND Sum([Theory Marks]) &amp;lt;70, 1, 0), [Student ID]))&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>Tue, 01 Oct 2013 12:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-with-multiple-IF-statements/m-p/492877#M184361</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-01T12:04:08Z</dc:date>
    </item>
  </channel>
</rss>

