<?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 Second if condition not working within expression in qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Second-if-condition-not-working-within-expression-in-qliksense/m-p/1598498#M44248</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get the sum of a column based on calculated dimension, i want to restrict the value to top 5 based on category.&lt;/P&gt;&lt;P&gt;i m not able to restrict it. the output is displaying all the values. also and and/or function inside expression is not working out.&lt;/P&gt;&lt;P&gt;can anybody help me out here and suggest where i am going wrong.&lt;/P&gt;&lt;P&gt;below is the expression i am trying to in corporate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Aggr(Rank(-SUM({&amp;lt;DateID={"&amp;lt;=$(=Max(DateID))&amp;gt;=$(=Max(DateID)-3)"},Date=&amp;gt;}abc),4),categ,id)&amp;lt;=5,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sum({&amp;lt;DateID={$(=max(DateID)-0)},Date=&amp;gt;}cal),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;IF(aggr(SUM({&amp;lt;DateID={"&amp;lt;=$(=Max(DateID))&amp;gt;=$(=Max(DateID)-3)"},Date=&amp;gt;}abc), abc)=0 or &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Aggr(Rank(SUM({&amp;lt;DateID={$(=max(DateID)-0)},Date=&amp;gt;}cal),4),categ,id)&amp;lt;=5,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sum({&amp;lt;DateID={$(=max(DateID)-0)},Date=&amp;gt;}cal)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Suraj Rao&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 08:47:48 GMT</pubDate>
    <dc:creator>su88rao</dc:creator>
    <dc:date>2019-07-03T08:47:48Z</dc:date>
    <item>
      <title>Second if condition not working within expression in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Second-if-condition-not-working-within-expression-in-qliksense/m-p/1598498#M44248</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to get the sum of a column based on calculated dimension, i want to restrict the value to top 5 based on category.&lt;/P&gt;&lt;P&gt;i m not able to restrict it. the output is displaying all the values. also and and/or function inside expression is not working out.&lt;/P&gt;&lt;P&gt;can anybody help me out here and suggest where i am going wrong.&lt;/P&gt;&lt;P&gt;below is the expression i am trying to in corporate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Aggr(Rank(-SUM({&amp;lt;DateID={"&amp;lt;=$(=Max(DateID))&amp;gt;=$(=Max(DateID)-3)"},Date=&amp;gt;}abc),4),categ,id)&amp;lt;=5,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sum({&amp;lt;DateID={$(=max(DateID)-0)},Date=&amp;gt;}cal),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;IF(aggr(SUM({&amp;lt;DateID={"&amp;lt;=$(=Max(DateID))&amp;gt;=$(=Max(DateID)-3)"},Date=&amp;gt;}abc), abc)=0 or &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Aggr(Rank(SUM({&amp;lt;DateID={$(=max(DateID)-0)},Date=&amp;gt;}cal),4),categ,id)&amp;lt;=5,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sum({&amp;lt;DateID={$(=max(DateID)-0)},Date=&amp;gt;}cal)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Suraj Rao&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 08:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Second-if-condition-not-working-within-expression-in-qliksense/m-p/1598498#M44248</guid>
      <dc:creator>su88rao</dc:creator>
      <dc:date>2019-07-03T08:47:48Z</dc:date>
    </item>
  </channel>
</rss>

