<?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 Set Analysis Exclusion question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclusion-question/m-p/1669258#M449343</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My data set looks like this.&lt;/P&gt;&lt;P&gt;[a]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, Type&lt;BR /&gt;1, S&lt;BR /&gt;2, S&lt;BR /&gt;3, C&lt;BR /&gt;4, S&lt;BR /&gt;5, S&lt;BR /&gt;6, C&lt;BR /&gt;22, S&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;[b]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, SNN&lt;BR /&gt;1, AAA&lt;BR /&gt;2, BBB&lt;BR /&gt;3, AAA&lt;BR /&gt;4, FFF&lt;BR /&gt;5, GGG&lt;BR /&gt;6, FFF&lt;BR /&gt;22, III&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I want to find all SNN which are connected to Type 'S' but not with Type 'C'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this data set, there are 3 such SNN.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;BBB&lt;/LI&gt;&lt;LI&gt;GGG&lt;/LI&gt;&lt;LI&gt;III&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am writing an exclusion set analysis.&lt;/P&gt;&lt;P&gt;=Concat({&amp;lt;Type={'S'}&amp;gt; -&amp;nbsp; &amp;lt;Type={'C'}&amp;gt;}SNN, ',')&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it returns all SNNs.&lt;/P&gt;&lt;P&gt;AAA, BBB, FFF, GGG, III.&lt;/P&gt;&lt;P&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:25:09 GMT</pubDate>
    <dc:creator>jduluc12</dc:creator>
    <dc:date>2024-11-16T01:25:09Z</dc:date>
    <item>
      <title>Set Analysis Exclusion question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclusion-question/m-p/1669258#M449343</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My data set looks like this.&lt;/P&gt;&lt;P&gt;[a]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, Type&lt;BR /&gt;1, S&lt;BR /&gt;2, S&lt;BR /&gt;3, C&lt;BR /&gt;4, S&lt;BR /&gt;5, S&lt;BR /&gt;6, C&lt;BR /&gt;22, S&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;[b]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, SNN&lt;BR /&gt;1, AAA&lt;BR /&gt;2, BBB&lt;BR /&gt;3, AAA&lt;BR /&gt;4, FFF&lt;BR /&gt;5, GGG&lt;BR /&gt;6, FFF&lt;BR /&gt;22, III&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I want to find all SNN which are connected to Type 'S' but not with Type 'C'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this data set, there are 3 such SNN.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;BBB&lt;/LI&gt;&lt;LI&gt;GGG&lt;/LI&gt;&lt;LI&gt;III&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am writing an exclusion set analysis.&lt;/P&gt;&lt;P&gt;=Concat({&amp;lt;Type={'S'}&amp;gt; -&amp;nbsp; &amp;lt;Type={'C'}&amp;gt;}SNN, ',')&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it returns all SNNs.&lt;/P&gt;&lt;P&gt;AAA, BBB, FFF, GGG, III.&lt;/P&gt;&lt;P&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclusion-question/m-p/1669258#M449343</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2024-11-16T01:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Exclusion question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclusion-question/m-p/1669288#M449346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your formula is an equivalent to filter rows in the table "a" and then looking for corresponding values in the table "b" (so all SNN values linked to Type 'S').&lt;/P&gt;&lt;P&gt;To achieve what you want, I suggest to filter directly on the SNN field, using P() function (see &lt;A href="https://help.qlik.com/en-US/sense/September2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-modifiers-implicit-field-value-definitions.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/September2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-modifiers-implicit-field-value-definitions.htm&lt;/A&gt;) :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Concat({$&amp;lt;[SNN] = P({$&amp;lt;[Type] = {"S"}&amp;gt;} [SNN])-P({$&amp;lt;[Type] = {"C"}&amp;gt;} [SNN])&amp;gt;} [SNN], ',')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 08:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclusion-question/m-p/1669288#M449346</guid>
      <dc:creator>ngioux</dc:creator>
      <dc:date>2020-01-27T08:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Exclusion question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclusion-question/m-p/1669850#M449366</link>
      <description>&lt;P&gt;This also worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Concat({&amp;lt;SNN=E({&amp;lt;Type={'C'}&amp;gt;})&amp;gt;}SNN, ',')&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 04:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclusion-question/m-p/1669850#M449366</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2020-01-28T04:55:34Z</dc:date>
    </item>
  </channel>
</rss>

