<?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 Need a help in correcting the  set analysis Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512205#M62514</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to write a set analysis expression to get &amp;nbsp;Bottom 5 values.&lt;/P&gt;&lt;P&gt;The data has three column, ID,Question,Value.&lt;/P&gt;&lt;P&gt;In a straight table in took&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension:Question&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(avg({&amp;lt;ID={"=Rank(-avg(Value),4)&amp;lt;=5"}&amp;gt;}Value),Questions)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output: By using above expression the out put is&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 290px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/966i27E0A70A73836181/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Which is Wrong ,Let say for Question :03 the Bottom 5 avg value has to be =0.60(0+0+1+1+1/5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/970i630DB1437959D75A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but i am getting 1.00(1+1+1+1+1/5) as output same with rest .&lt;/P&gt;&lt;P&gt;what i find out is my expression is ignoring zero value rows and considering only 1 and above values rows .&lt;/P&gt;&lt;P&gt;if i select a value from question let say 03 then i am getting required output which is 0.60 ,without selection i am not getting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/967iA38710C4A97ABA2C/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SO how to include zero value rows in my expression&lt;/P&gt;&lt;P&gt;PFA sample data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;because&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 07:42:04 GMT</pubDate>
    <dc:creator>kunkumnaveen</dc:creator>
    <dc:date>2021-04-02T07:42:04Z</dc:date>
    <item>
      <title>Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512205#M62514</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to write a set analysis expression to get &amp;nbsp;Bottom 5 values.&lt;/P&gt;&lt;P&gt;The data has three column, ID,Question,Value.&lt;/P&gt;&lt;P&gt;In a straight table in took&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension:Question&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(avg({&amp;lt;ID={"=Rank(-avg(Value),4)&amp;lt;=5"}&amp;gt;}Value),Questions)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output: By using above expression the out put is&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 290px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/966i27E0A70A73836181/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Which is Wrong ,Let say for Question :03 the Bottom 5 avg value has to be =0.60(0+0+1+1+1/5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/970i630DB1437959D75A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but i am getting 1.00(1+1+1+1+1/5) as output same with rest .&lt;/P&gt;&lt;P&gt;what i find out is my expression is ignoring zero value rows and considering only 1 and above values rows .&lt;/P&gt;&lt;P&gt;if i select a value from question let say 03 then i am getting required output which is 0.60 ,without selection i am not getting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/967iA38710C4A97ABA2C/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SO how to include zero value rows in my expression&lt;/P&gt;&lt;P&gt;PFA sample data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;because&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512205#M62514</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-04-02T07:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512221#M62515</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Avg(Aggr(If(Rank(-Avg(Value), 4) &amp;lt;= 5, Value), Questions, ID))&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Nov 2018 12:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512221#M62515</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-26T12:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512256#M62516</link>
      <description>Hi ,Thanks for your quick reply ,&lt;BR /&gt;wat about if i need avg of Bottom 100 values&lt;BR /&gt;&lt;BR /&gt;is this right.&lt;BR /&gt;Avg(Aggr(If(Rank(-Avg(Value), 4) &amp;lt;= 100, Value), Questions, ID))</description>
      <pubDate>Mon, 26 Nov 2018 13:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512256#M62516</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2018-11-26T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512259#M62517</link>
      <description>I would think so...</description>
      <pubDate>Mon, 26 Nov 2018 13:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512259#M62517</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-26T13:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512273#M62518</link>
      <description>Some where some thing is missing for bottom 5 i am getting ,but for bottom 100 i am missing few values using above expression</description>
      <pubDate>Mon, 26 Nov 2018 13:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512273#M62518</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2018-11-26T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512278#M62519</link>
      <description>Can you elaborate with an example or a sample?</description>
      <pubDate>Mon, 26 Nov 2018 13:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512278#M62519</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-26T13:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512581#M62520</link>
      <description>Hi all,&lt;BR /&gt;Is there any other way in writing below expression&lt;BR /&gt;aggr(avg({&amp;lt;ID={"=Rank(-avg({&amp;lt;FY={$(vFY)}&amp;gt;}Value),4)&amp;lt;=5"}&amp;gt;}Value),Questions)&lt;BR /&gt;&lt;BR /&gt;Variable&lt;BR /&gt;vFY=max(FY)&lt;BR /&gt;&lt;BR /&gt;where FY isa field with value,2018,2017,2016,2015&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i tried below expression&lt;BR /&gt;Avg(Aggr(If(Rank(-Avg(Value), 4) &amp;lt;= 5, Value), Questions, ID))&lt;BR /&gt;but when i put FY in expression&lt;BR /&gt;Avg(Aggr(If(Rank(-Avg({&amp;lt;FY={$(vFY)}&amp;gt;}Value), 4) &amp;lt;= 5, Value), Questions, ID))&lt;BR /&gt;i am not getting proper output&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512581#M62520</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2018-11-27T05:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512837#M62521</link>
      <description>What exactly are you trying to accomplish by re writing your set analysis expression? Is it not working the way you expect or you just want to use another way of doing the same thing?</description>
      <pubDate>Tue, 27 Nov 2018 12:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1512837#M62521</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-27T12:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1513263#M62522</link>
      <description>HI,&lt;BR /&gt;The thing is ,i have got 4 FY years of data ,so in each fiscal year there might be differ in ID's which falls under top 5 ,so i am trying to differentiate ID's w.r.t there Fiscal year .So that is reason why i am trying to put FY in set analysis .&lt;BR /&gt;Avg(Aggr(If(Rank(-Avg({&amp;lt;FY={$(vFY)}&amp;gt;}Value), 4) &amp;lt;= 5, Value), Questions, ID))&lt;BR /&gt;Variable&lt;BR /&gt;vFY=max(FY)&lt;BR /&gt;where FY is a field with values=2018,2017,2016,2015&lt;BR /&gt;But the issue is when i have not selected any Fiscal year by default it should pick max FY value which is (2018),but in my case it is not working properly unless i select a Fiscal Year&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2018 05:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1513263#M62522</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2018-11-28T05:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1513271#M62523</link>
      <description>&lt;P&gt;Continue 2.....&lt;/P&gt;&lt;P&gt;Before selecting any value from FY&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 260px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1143i37FED2643CBA2090/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After Selecting 2018 from FY&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 248px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1144i6FA79A977D749C41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which is correct output should get same even if i havent select any value from FY field because i am passing Max value through variable&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1145i178096CF454CE150/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFA the raw data for reference&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 05:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1513271#M62523</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2018-11-28T05:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help in correcting the  set analysis Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1513491#M62524</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Avg(Aggr(If(Rank(-Avg({&amp;lt;FY={$(=$(vFY))}&amp;gt;}Value), 4) &amp;lt;= 5, &lt;FONT color="#FF0000"&gt;Only({&amp;lt;FY={$(=$(vFY))}&amp;gt;}&lt;/FONT&gt;Value&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;), Question, ID))&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Nov 2018 09:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-a-help-in-correcting-the-set-analysis-Expression/m-p/1513491#M62524</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-28T09:59:03Z</dc:date>
    </item>
  </channel>
</rss>

