<?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: Multiple sets in the same expression using set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-sets-in-the-same-expression-using-set-analysis/m-p/2136468#M1224816</link>
    <description>&lt;P&gt;Try this:&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;</description>
    <pubDate>Thu, 09 Nov 2023 23:03:17 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2023-11-09T23:03:17Z</dc:date>
    <item>
      <title>Multiple sets in the same expression using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-sets-in-the-same-expression-using-set-analysis/m-p/2136448#M1224815</link>
      <description>&lt;P&gt;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 want the sum of Sales to display data for CustomerType 1 only if they're in the United States or Canada as well as CustomerTypes 2 and 3 only if they're in the United States, Mexico, or India. I can't use one single set for this requirement because, for example, it would include India data for CustomerType 1 which I do not want.&lt;/P&gt;
&lt;P&gt;Is what I'm trying to do possible? How do I format the code?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-sets-in-the-same-expression-using-set-analysis/m-p/2136448#M1224815</guid>
      <dc:creator>nrq</dc:creator>
      <dc:date>2023-11-09T20:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple sets in the same expression using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-sets-in-the-same-expression-using-set-analysis/m-p/2136468#M1224816</link>
      <description>&lt;P&gt;Try this:&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;</description>
      <pubDate>Thu, 09 Nov 2023 23:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-sets-in-the-same-expression-using-set-analysis/m-p/2136468#M1224816</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2023-11-09T23:03:17Z</dc:date>
    </item>
  </channel>
</rss>

