<?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: Filtering chart data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591925#M1103048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, i'll try to be more succinct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data contains countries 'france','germany','spain' .... etc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make a chart &amp;amp; table operate only for the 'france' data.&lt;/P&gt;&lt;P&gt;Hence I have created a myFranceChart, and a myFranceTable, and assigned both to myFranceState.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I do not know how to 'restrict' the data to&amp;nbsp; purely 'France' records..&lt;/P&gt;&lt;P&gt;For the chart, I can calculate only France values using set analysis : &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( distinct {&amp;lt;countryID = {'France'}&amp;gt;} itemID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;However, that does not affect the underlying datasource of the chart, that source still contains all countries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hence my myFranceTable, still lists data for all countries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;I need to filter the whole of the myFranceState to 'France'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I realise I could do this by adding a ListBox to myFranceState, but then I would have to make it locked and invisible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is there not a way to simply filter the base recordset by a field-value ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Hope that's clearer ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 14:49:44 GMT</pubDate>
    <dc:creator>simonb2013</dc:creator>
    <dc:date>2014-04-02T14:49:44Z</dc:date>
    <item>
      <title>Filtering chart data</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591923#M1103046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have a table of data, always a good start !&lt;/P&gt;&lt;P&gt;Here's the columns:&lt;/P&gt;&lt;P&gt;countryID, PeriodDate,&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemID, ItemValue, ItemF1, ItemF2, ItemF3.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my 'dashboard' I am displaying a chart for each countryID, thus ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Chart_1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dimension : PeriodDate&lt;/P&gt;&lt;P&gt;Expression : myCount = Count( distinct {&amp;lt;countryID = {'France'}&amp;gt;} itemID)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Chart_2:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dimension : PeriodDate&lt;/P&gt;&lt;P&gt;Expression : myCount = Count( distinct {&amp;lt;countryID = {'Germany'}&amp;gt;} itemID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and all this works wonderfully, my users get presented with lovely graphic for each and every country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want the user to be able to examine the full data behind each chart, without filtering the entire application, or indeed affecting the other charts.&lt;/P&gt;&lt;P&gt;I created a new tablebox, and assigned both the 'France' chart and tablebox to alternate state 'myFranceState'.&lt;/P&gt;&lt;P&gt;On the good side, if I now select a PeriodDate in the chart, this is reflected in my tablebox.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My chart is not filtered by CountryID='France'.&lt;/P&gt;&lt;P&gt;I have only considered the CountryID in an &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;expression&lt;/EM&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Hence all the other countries are still in the dataset underlying the chart and such a filter is not shared between chart and table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to define a subset of data to build my chart on ?&lt;/P&gt;&lt;P&gt;Without filtering the entire app ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591923#M1103046</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2014-04-02T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering chart data</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591924#M1103047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not clear to me what you added to which alternate state. If you have a chart for France and added it to myFranceState did you hard code the countryID to France in the chart expressions? If not it will show data for all the countries unless you select France in an object assigned to the same alternate state. Selecting France in a listbox in the default state won't be applied to objects in other alternate states.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591924#M1103047</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-02T14:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering chart data</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591925#M1103048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, i'll try to be more succinct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data contains countries 'france','germany','spain' .... etc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make a chart &amp;amp; table operate only for the 'france' data.&lt;/P&gt;&lt;P&gt;Hence I have created a myFranceChart, and a myFranceTable, and assigned both to myFranceState.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I do not know how to 'restrict' the data to&amp;nbsp; purely 'France' records..&lt;/P&gt;&lt;P&gt;For the chart, I can calculate only France values using set analysis : &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( distinct {&amp;lt;countryID = {'France'}&amp;gt;} itemID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;However, that does not affect the underlying datasource of the chart, that source still contains all countries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hence my myFranceTable, still lists data for all countries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;I need to filter the whole of the myFranceState to 'France'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I realise I could do this by adding a ListBox to myFranceState, but then I would have to make it locked and invisible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is there not a way to simply filter the base recordset by a field-value ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Hope that's clearer ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591925#M1103048</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2014-04-02T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering chart data</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591926#M1103049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not put a country list box on the dashboard? &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;That way the user can select any country and the entire dataset is filtered accordingly. All objects reflect the filtered dataset (other than those that explicitly override the country selection using the set expression above).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to automatically select a country based on some sort of trigger, you can use an action to make the country selection automatically, and again the all the data would be filtered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591926#M1103049</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-02T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering chart data</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591927#M1103050</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;can you not use another chart object to look like a tablebox. This can then be fitered or you can put a simple rule instead of the dimension to say:&lt;/P&gt;&lt;P&gt;if(CountryID = 'France', FieldName, null())&lt;/P&gt;&lt;P&gt;This will just give you the French values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591927#M1103050</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2014-04-02T15:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering chart data</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591928#M1103051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thanks for all of your responses.&lt;/P&gt;&lt;P&gt;To be honest none do exaclty what I want, but at least it tells me that I might be asking something 'not normal' and maybe I might need to rethink my plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan, yes this works... but I really wanted something hard-set, rather than an option that users can fiddle with. This chart/table must always only show France, and another chart/table pair must always show 'Germany' etc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rupert, again, it would work, but I have 100+ fields in my data... so to create each field a san experission would be a nightmare to maintain. I will have &amp;lt; 10 of these to set up, so that's 500+ fields to wite as individiual expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I'm new to QV so I might be expecting too much ... but I'm suprised there isn't a more simple straight forward way to create a subset of data that you can then feed from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the input &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-chart-data/m-p/591928#M1103051</guid>
      <dc:creator>simonb2013</dc:creator>
      <dc:date>2014-04-03T13:26:38Z</dc:date>
    </item>
  </channel>
</rss>

