<?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: How to filter based on expression values (i.e. measures)? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105651#M18767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood correctly, you can use an advanced search in you field modifier, for example if you are using a table chart with dimension MovieID and expression&lt;/P&gt;&lt;P&gt;=Avg(Rating)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, you can add a filter to this chart using a set expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg( {&amp;lt;MovieID = {"=Count(Rating)&amp;gt;5"}&amp;gt;} Rating)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only movies with more than 5 ratings will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a filter pane with a calculated field dimension to filter on the movie IDs, applying the filter to all charts:&lt;/P&gt;&lt;P&gt;=Aggr( If (Count({&amp;lt;MovieID=&amp;gt;} Rating)&amp;gt;5,'more than 5 ratings','less than 5 ratings'),MovieID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Aug 2016 13:31:02 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-08-14T13:31:02Z</dc:date>
    <item>
      <title>How to filter based on expression values (i.e. measures)?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105649#M18765</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;I would like to be able to explore (meaning of do selections/filter) my data not only based on the data present in the original files but also based on expressions/measures which I create as part of the Qlik Sense App. Especially expressions involving aggregations such as counts and sums (example below). &lt;SPAN style="font-size: 10pt;"&gt;Is there any easy way to do that? I know I can pre-calculate the expressions/aggregations as part of the data load script but that is cumbersome and limits how people can explore the data up-front.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a file of user movie ratings (UserID, MovieID, Rating). I would like to look at only movies which have been reviewed by at least 5 people. I would like to be able to filter by MovieIDs where Count(Rating)&amp;gt;=5.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 08:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105649#M18765</guid>
      <dc:creator>petr_bednarik</dc:creator>
      <dc:date>2016-08-14T08:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter based on expression values (i.e. measures)?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105650#M18766</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;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;your query:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;I would like to be able to filter by MovieIDs where Count(Rating)&amp;gt;=5.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;try this&amp;nbsp; (set analysis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: MovieID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression : count&amp;nbsp; (&amp;nbsp; {$ &amp;lt;Rating={"&amp;gt;=5"}&amp;nbsp; &amp;gt; }&amp;nbsp; MovieID)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //for movieID&amp;nbsp; having rating greater than 5 rating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 13:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105650#M18766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-14T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter based on expression values (i.e. measures)?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105651#M18767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood correctly, you can use an advanced search in you field modifier, for example if you are using a table chart with dimension MovieID and expression&lt;/P&gt;&lt;P&gt;=Avg(Rating)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, you can add a filter to this chart using a set expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg( {&amp;lt;MovieID = {"=Count(Rating)&amp;gt;5"}&amp;gt;} Rating)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only movies with more than 5 ratings will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a filter pane with a calculated field dimension to filter on the movie IDs, applying the filter to all charts:&lt;/P&gt;&lt;P&gt;=Aggr( If (Count({&amp;lt;MovieID=&amp;gt;} Rating)&amp;gt;5,'more than 5 ratings','less than 5 ratings'),MovieID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 13:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105651#M18767</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-14T13:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter based on expression values (i.e. measures)?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105652#M18768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot. The Aggr thing is doing exactly what I wanted! Now I just need to get an understanding of what exactly it's doing:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 16:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-filter-based-on-expression-values-i-e-measures/m-p/1105652#M18768</guid>
      <dc:creator>petr_bednarik</dc:creator>
      <dc:date>2016-08-14T16:16:49Z</dc:date>
    </item>
  </channel>
</rss>

