<?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: Re: Grouping not filtering as expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684888#M1083420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 21:46:56 GMT</pubDate>
    <dc:creator>nilo_pontes</dc:creator>
    <dc:date>2014-06-30T21:46:56Z</dc:date>
    <item>
      <title>Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684884#M1083416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table that I'm loading into my application telling me what fruit I have eaten on what day.&lt;/P&gt;&lt;P&gt;I'm then LOADing this table and counting up values using a GROUP BY clause with the first table RESIDENT.&amp;nbsp; This tells me how many days I'm having 1 piece of fruit, how many days I'm having 2 pieces, etc.&lt;/P&gt;&lt;P&gt;Finally, I have a graph over these counted values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select some fields from my first table, to only include apples, my group by table doesn't re-run the count.&amp;nbsp; So I'm not really seeing what I want.&amp;nbsp; I want to see how many days I'm having 1 apple, how many days I'm having 2 apples, etc.&amp;nbsp; Other fruit should be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that there's a better way to do the counting (maybe in the expression or dimension of the graph) but can't figure it out.&amp;nbsp; "Fix your source data" isn't really a solution either, as I don't have control over this - the first table contains a lot more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&amp;nbsp; I've attached a sample application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 20:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684884#M1083416</guid>
      <dc:creator />
      <dc:date>2014-06-30T20:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684885#M1083417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your instincts are correct--there is a better way to do it, and that's to leverage the power of QlikView rather than taking everything to the script. Change your dimension to Day. Change your expression to: count(distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684885#M1083417</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-30T21:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684886#M1083418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad, but I'm afraid that's not quite right.&amp;nbsp; That shows me "on day 1 I had 3 pieces of fruit, on day 2 I had 1 piece of fruit...", but what I want is "There were 4 days where I had 1 piece of fruit, there was 1 day where I had 2 pieces of fruit..."&lt;/P&gt;&lt;P&gt;So I almost want one level above what you're saying - where I don't care what day I had 3 bits of fruit, but just how many days I hit that target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684886#M1083418</guid>
      <dc:creator />
      <dc:date>2014-06-30T21:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684887#M1083419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, my mistake! In that case, you can create a calculated dimension, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(distinct ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Day&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make your expression: count(distinct Day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684887#M1083419</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-30T21:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684888#M1083420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684888#M1083420</guid>
      <dc:creator>nilo_pontes</dc:creator>
      <dc:date>2014-06-30T21:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684889#M1083421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what i understand You want to see how many fruits you have eaten on what day.&lt;/P&gt;&lt;P&gt;To be more precise, you might also want to see how many fruits of each kind you had per day..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i either count type of fruit per each day, or count basicly fruit per day and then use one of the results as your dimension... pls see the file and few proposals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use calculated dimension in the chart to get similar results .&lt;/P&gt;&lt;P&gt;If You need further help please provide for example a drawing how the final result should look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;LM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684889#M1083421</guid>
      <dc:creator />
      <dc:date>2014-06-30T21:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684890#M1083422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent.&amp;nbsp; That's sorted now.&amp;nbsp; Thanks very much.&lt;/P&gt;&lt;P&gt;Now just need to figure out sorting the calculated dimension...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684890#M1083422</guid>
      <dc:creator />
      <dc:date>2014-06-30T21:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping not filtering as expected</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684891#M1083423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorting is simple enough is you want a basic low-to-high or high-to-low sort. Just go to the Sort tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-not-filtering-as-expected/m-p/684891#M1083423</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-30T21:59:24Z</dc:date>
    </item>
  </channel>
</rss>

