<?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: Set Analysis limitation, bug or misunderstanding? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596979#M44136</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;your expression should look like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;avg(aggr(if(QTD&amp;lt;= $(LSup([QTD],[REGIONAL])) and QTD &amp;gt;=$(LInf([QTD],[REGIONAL])) ,QTD),ID,REGIONAL))&lt;/P&gt;&lt;P&gt;you can't use set analysis because it will return one number to all regions and you want different limits to each region&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 19:17:03 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2019-06-27T19:17:03Z</dc:date>
    <item>
      <title>Set Analysis limitation, bug or misunderstanding?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596947#M44133</link>
      <description>&lt;P&gt;Hi there!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate averages without outliers. I've used the FRACTILE function to determine which numbers are my outliers and exclude them from my AVG.&amp;nbsp;&lt;SPAN&gt;Basically, the Function 1 (in this example) brings a value that is not the same when it is inside a set analysis condition, on the same tuple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;[Function 1]&lt;/STRONG&gt; FRACTILE({&amp;lt;[QTD]-={0}&amp;gt;} [QTD],0.75)+(1.5*(FRACTILE({&amp;lt;[&lt;/SPAN&gt;&lt;SPAN&gt;QTD]-={0}&amp;gt;} [QTD],0.75)-FRACTILE({&amp;lt;[QTD]-={0}&amp;gt;} [QTD],0.25)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;: 599,75&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ROUND(AVG({&amp;lt;[QTD]-={"&amp;gt;=$(=FRACTILE({&amp;lt;[QTD]-={0}&amp;gt;} [QTD],0.75)+(1.5*(FRACTILE({&amp;lt;[&lt;/SPAN&gt;&lt;SPAN&gt;QTD]-={0}&amp;gt;} [QTD],0.75)-FRACTILE({&amp;lt;[QTD]-={0}&amp;gt;} [QTD],0.25))))&amp;lt;=-214,25"}&amp;gt;}[QT&lt;/SPAN&gt;&lt;SPAN&gt;D]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RESULT: 157 (should be 191)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ROUND(AVG({&amp;lt;[QTD]-={"&amp;gt;=599,75&amp;lt;=-214,25"}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN&gt;[QTD]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RESULT: 191&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the attached file, there is a column hardcoded for one dimension value to show this problem. Please, I appreciate any help.&lt;BR /&gt;&lt;BR /&gt;OBS: Previous calculation at load script would be a solution for this scenario, but it's not factible at the real one because I have many others metrics and dimensions to do the same calc. Must be dynamic.&lt;/P&gt;&lt;P&gt;Thanks and regards!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596947#M44133</guid>
      <dc:creator>carahyba</dc:creator>
      <dc:date>2024-11-16T05:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis limitation, bug or misunderstanding?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596979#M44136</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;your expression should look like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;avg(aggr(if(QTD&amp;lt;= $(LSup([QTD],[REGIONAL])) and QTD &amp;gt;=$(LInf([QTD],[REGIONAL])) ,QTD),ID,REGIONAL))&lt;/P&gt;&lt;P&gt;you can't use set analysis because it will return one number to all regions and you want different limits to each region&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596979#M44136</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-06-27T19:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis limitation, bug or misunderstanding?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596985#M44137</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;It's worked! Nice! But do you know why the function below doesn't?&lt;BR /&gt;&lt;BR /&gt;ROUND(AVG({&amp;lt;[QTD]-={"&amp;gt;=$(=$(LSup([QTD],[REGIONAL]))&amp;lt;=$(=$(LInf([QTD],[REGIONAL])))"}&amp;gt;}[QTD]))&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 27 Jun 2019 19:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596985#M44137</guid>
      <dc:creator>carahyba</dc:creator>
      <dc:date>2019-06-27T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis limitation, bug or misunderstanding?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596995#M44138</link>
      <description>&lt;P&gt;because&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can't use a nested aggregation inside aggregation&amp;nbsp;&lt;/P&gt;&lt;P&gt;the aggr convert the inner part to virtual table and than you can use an aggregation function&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1596995#M44138</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-06-27T19:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis limitation, bug or misunderstanding?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1597040#M44140</link>
      <description>Thanks, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6330"&gt;@lironbaram&lt;/a&gt;!</description>
      <pubDate>Thu, 27 Jun 2019 22:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-limitation-bug-or-misunderstanding/m-p/1597040#M44140</guid>
      <dc:creator>carahyba</dc:creator>
      <dc:date>2019-06-27T22:59:35Z</dc:date>
    </item>
  </channel>
</rss>

