<?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 How to allow only certain fields affect a chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665634#M1068417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Discretion: new to QlikView, so please be kind!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to control which selection fields affect a chart without using alternate states.&amp;nbsp; I believe this restricts me to set analysis.&amp;nbsp; Browsing other questions it seems the generic code for this is something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( {&amp;lt; Year = P(Year) &amp;gt;} Cost )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...however my dilemma is that the set of possible Year values, P(Year), could be restricted depending on other field selections.&amp;nbsp; For example, if the current Month is "August", and "December" is selected in a Listbox, then the current year is no longer possible and therefore excluded from the set.&amp;nbsp; How do I get around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I would like to be able to choose which fields can filter the specific chart object without interference from other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2014 21:31:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-27T21:31:45Z</dc:date>
    <item>
      <title>How to allow only certain fields affect a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665634#M1068417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Discretion: new to QlikView, so please be kind!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to control which selection fields affect a chart without using alternate states.&amp;nbsp; I believe this restricts me to set analysis.&amp;nbsp; Browsing other questions it seems the generic code for this is something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM( {&amp;lt; Year = P(Year) &amp;gt;} Cost )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...however my dilemma is that the set of possible Year values, P(Year), could be restricted depending on other field selections.&amp;nbsp; For example, if the current Month is "August", and "December" is selected in a Listbox, then the current year is no longer possible and therefore excluded from the set.&amp;nbsp; How do I get around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I would like to be able to choose which fields can filter the specific chart object without interference from other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 21:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665634#M1068417</guid>
      <dc:creator />
      <dc:date>2014-08-27T21:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to allow only certain fields affect a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665635#M1068418</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;If you don't be able to use "Alternate States" use set analysis specify don't use certain fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: I need Sales from all fields except Year ... so my expression will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year=&amp;gt;}Sales) // Year= return Sales from all selection in all fields excpet Year, until you have a selection in Year field you get a result from all years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example2: I need Cost of my product 5 but I need don´t use selections in Country field so my expression will be:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product={5}, Country=&amp;gt;}Cost) // return Cost of Product in all Country even you have a selection in Country field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 21:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665635#M1068418</guid>
      <dc:creator />
      <dc:date>2014-08-27T21:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to allow only certain fields affect a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665636#M1068419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your examples tells me how to exclude a field from use but if I have a long list of fields the code can get quite long and difficult to maintain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can limit to say... Sum costs by Year, and ignore all other field selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 21:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665636#M1068419</guid>
      <dc:creator />
      <dc:date>2014-08-27T21:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to allow only certain fields affect a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665637#M1068420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you want is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year=$::Year&amp;gt;}Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that would use only the selections in Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 22:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665637#M1068420</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-08-27T22:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to allow only certain fields affect a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665638#M1068421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked like a charm and is a much more direct approach!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 23:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-allow-only-certain-fields-affect-a-chart/m-p/665638#M1068421</guid>
      <dc:creator />
      <dc:date>2014-08-27T23:54:06Z</dc:date>
    </item>
  </channel>
</rss>

