<?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: Can't filter on specified set analysis values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136419#M1224813</link>
    <description>&lt;P&gt;Thanks, that works. One other thing to complicate this further: Can I put multiple sets in the same expression? This is my current code which isn't working properly but showcases what I'm trying to do:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;[CustomerType]*={"1"},[Location]*={"United States","Canada"}&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;{&amp;lt;[CustomerType]*={"2","3"},[Location]*={"United States","Mexico","India"}&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Sales])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In other words, I only want to include data for CustomerType 1 when the location is in the United States or Canada. But for CustomerTypes 2 and 3, I only want to include data when the location is in the United States, Mexico, or India. Is creating two sets like this in the same expression possible?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 19:49:57 GMT</pubDate>
    <dc:creator>nrq</dc:creator>
    <dc:date>2023-11-09T19:49:57Z</dc:date>
    <item>
      <title>Can't filter on specified set analysis values</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136399#M1224811</link>
      <description>&lt;P&gt;I have a pretty simple sum expression that uses set analysis:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;[CustomerType]={"1","2","3"}&amp;gt;} [Sales])&lt;/P&gt;
&lt;P&gt;This expression is working perfectly for me when I do not have any filters selected. HOWEVER, I still want to filter specifically on the individual CustomerTypes of 1, 2, and 3. When I select just one of them (e.g. CustomerType = "1"), the value doesn't change. The value showing is still the sum of all three CustomerTypes instead of just the one I have my filter set on.&lt;/P&gt;
&lt;P&gt;How do I solve this problem or is it not possible?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 17:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136399#M1224811</guid>
      <dc:creator>nrq</dc:creator>
      <dc:date>2023-11-09T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't filter on specified set analysis values</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136401#M1224812</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/141439"&gt;@nrq&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try like this&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sum({&amp;lt;[CustomerType]*={"1","2","3"}&amp;gt;} [Sales])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 17:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136401#M1224812</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2023-11-09T17:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't filter on specified set analysis values</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136419#M1224813</link>
      <description>&lt;P&gt;Thanks, that works. One other thing to complicate this further: Can I put multiple sets in the same expression? This is my current code which isn't working properly but showcases what I'm trying to do:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;[CustomerType]*={"1"},[Location]*={"United States","Canada"}&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;{&amp;lt;[CustomerType]*={"2","3"},[Location]*={"United States","Mexico","India"}&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Sales])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In other words, I only want to include data for CustomerType 1 when the location is in the United States or Canada. But for CustomerTypes 2 and 3, I only want to include data when the location is in the United States, Mexico, or India. Is creating two sets like this in the same expression possible?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 19:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136419#M1224813</guid>
      <dc:creator>nrq</dc:creator>
      <dc:date>2023-11-09T19:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't filter on specified set analysis values</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136445#M1224814</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/141439"&gt;@nrq&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I don't know what your real requirement is, but imagining a scenario I would create a variable that would work alongside a button and alternate between [CustomerType]*={"1"} and [CustomerType]*={"2","3"} as well as [Location ].&lt;/P&gt;
&lt;P&gt;If you are unable to go that way, I ask you to end the topic to close this first case, and open a new topic with this question so that others can help you with your requirement.&amp;nbsp;If I also have any other ideas, I will help in this new thread.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-filter-on-specified-set-analysis-values/m-p/2136445#M1224814</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2023-11-09T20:52:34Z</dc:date>
    </item>
  </channel>
</rss>

