<?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 FirstSortedValue with an if statement or set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/FirstSortedValue-with-an-if-statement-or-set-analysis/m-p/1448062#M35268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression which correctly calculates the survey location with the highest average score (see below). Some of the survey locations have very small volumes of feedback and these are often the highest/lowest ranking locations. Is there a way of using an if statement or set analysis to remove those locations from the calculation. Any survey location with less than 10 items of feedback shouldn't be considered. Each completed survey has a feedback_id and volumes are calculated by doing a count of these unique feedback id's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(distinct SurveyLocation, -aggr(avg(Score),SurveyLocation))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 13:25:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-27T13:25:16Z</dc:date>
    <item>
      <title>FirstSortedValue with an if statement or set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/FirstSortedValue-with-an-if-statement-or-set-analysis/m-p/1448062#M35268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression which correctly calculates the survey location with the highest average score (see below). Some of the survey locations have very small volumes of feedback and these are often the highest/lowest ranking locations. Is there a way of using an if statement or set analysis to remove those locations from the calculation. Any survey location with less than 10 items of feedback shouldn't be considered. Each completed survey has a feedback_id and volumes are calculated by doing a count of these unique feedback id's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(distinct SurveyLocation, -aggr(avg(Score),SurveyLocation))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 13:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FirstSortedValue-with-an-if-statement-or-set-analysis/m-p/1448062#M35268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-27T13:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with an if statement or set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/FirstSortedValue-with-an-if-statement-or-set-analysis/m-p/1448063#M35269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue(DISTINCT {&amp;lt;SurveyLocation = {"=Count(Score) &amp;gt;= 10"}&amp;gt;} SurveyLocation, -Aggr(Avg({&amp;lt;SurveyLocation = {"=Count(Score) &amp;gt;= 10"}&amp;gt;} Score), SurveyLocation))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 15:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FirstSortedValue-with-an-if-statement-or-set-analysis/m-p/1448063#M35269</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-27T15:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with an if statement or set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/FirstSortedValue-with-an-if-statement-or-set-analysis/m-p/1448064#M35270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. Works perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 08:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FirstSortedValue-with-an-if-statement-or-set-analysis/m-p/1448064#M35270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-30T08:48:19Z</dc:date>
    </item>
  </channel>
</rss>

