<?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: Excluding data that's a combination of two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28662#M4756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Felip. But I want to set up a single filter for the users. If this filter is selected, data related to PSL=PSL1 and Region={Northern US, Southern US} together should be removed. I have chosen to add this logic to the QV code (flag rows which have this combination) instead of using chart functions. I think that might be easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 18:55:02 GMT</pubDate>
    <dc:creator>saurabhk18</dc:creator>
    <dc:date>2018-05-16T18:55:02Z</dc:date>
    <item>
      <title>Excluding data that's a combination of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28656#M4750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Qlik question - PE NA.PNG" class="jive-image image-1" src="/legacyfs/online/202347_Qlik question - PE NA.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screenshot you see is a representation of three fields (listboxes). There is a many-to-many relationship between each pair of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the foll. requirement: The user would like a new filter to exclude data associated with PSL = PSL1 and Region= (Northern US, Southern US) on the dashboard. The problem I see here is the many-to-many relationship angle I mentioned above. For example, if the user selects Category = Cat3 and the exclusion filter, she would like to see data for Cat3 that is NOT associated with PSL = PSL1 and Region= (Northern US, Southern US). But Cat3 itself might be related to PSL=PSL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this requirement feasible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 15:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28656#M4750</guid>
      <dc:creator>saurabhk18</dc:creator>
      <dc:date>2018-05-14T15:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data that's a combination of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28657#M4751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood correctly, you want to create filters that exclude some combinations from your data right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, you could do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15263161431562413 jive_text_macro" jivemacro_uid="_15263161431562413"&gt;
&lt;P&gt;ExampleData:&lt;/P&gt;
&lt;P&gt;Load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;PSL,Cat,Region,Value&lt;/P&gt;
&lt;P&gt;PSL1,Cat1,Northern US,10&lt;/P&gt;
&lt;P&gt;PSL1,Cat2,APAC,12&lt;/P&gt;
&lt;P&gt;PSL1,Cat3,Northern US,3&lt;/P&gt;
&lt;P&gt;PSL1,Cat4,Southern US,66&lt;/P&gt;
&lt;P&gt;PSL1,Cat5,APAC,123&lt;/P&gt;
&lt;P&gt;PSL2,Cat2,Southern US,87&lt;/P&gt;
&lt;P&gt;PSL2,Cat4,Northern US,103&lt;/P&gt;
&lt;P&gt;PSL2,Cat5,APAC,55&lt;/P&gt;
&lt;P&gt;PSL2,Cat7,Southern US,78&lt;/P&gt;
&lt;P&gt;PSL3,Cat1,Southern US,123&lt;/P&gt;
&lt;P&gt;PSL3,Cat3,Northern US,64&lt;/P&gt;
&lt;P&gt;PSL3,Cat5,MENA,33&lt;/P&gt;
&lt;P&gt;PSL3,Cat7,LatAm,34&lt;/P&gt;
&lt;P&gt;PSL4,Cat1,Northern US,66&lt;/P&gt;
&lt;P&gt;PSL4,Cat2,LatAm,54&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable with the following content: {&amp;lt;PSL-={'PSL1'},Region-={'Northern US','Southern US'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202362_sample.png" style="height: 496px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;And use it in a filter like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15263162036776687" jivemacro_uid="_15263162036776687"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=aggr(only($(vSetExclude)Cat),Cat)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whick will create a filter for the Cat field, where PSL &amp;lt;&amp;gt; PSL1 and Region &amp;lt;&amp;gt; &lt;SPAN style="font-size: 13.3333px;"&gt;{'Northern US','Southern US'}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;As you can see by the image, the new filter boxes only show values that are associated with the above rule.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Felipe.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 16:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28657#M4751</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-05-14T16:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data that's a combination of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28658#M4752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the detailed response. Yes, I basically want to exclude certain combinations of data. However, if one of the data lines is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PSL2, Cat1, Northern US, 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the New Region list box in your image will incorrectly exclude Northern US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create a single field that combines the PSL and Region fields to excludes certain data lines? For example, if I want to only see data that contains PSL = PSL1 and Region=Northern US, I can create a list box with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PSL='PSL1' and Region='Northern US'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm unable to create a field to exclude data with this combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 18:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28658#M4752</guid>
      <dc:creator>saurabhk18</dc:creator>
      <dc:date>2018-05-14T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data that's a combination of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28659#M4753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tottaly not getting what you need for filters than.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you said it needed to exclude fields that had the combination PSL &amp;lt;&amp;gt; PSL1 and (Region &amp;lt;&amp;gt; Northern US and Region &amp;lt;&amp;gt; Southern US).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only need to exclude &lt;SPAN style="font-size: 13.3333px;"&gt;PSL = PSL1 and Region = Northern US, only modification would be {&amp;lt;PSL-={'PSL1'},Region-={'Northern US'}&amp;gt;} to the variable containing the set analysis exclusing clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exclusion, according to your parameters are functional, as seen by the image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202370_sample.png" style="height: 496px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table has all the values, and the filters the exception rules, so the new filters only have the values that don't present the PSL1 and Northern US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why shouldn't it exclude the line you mentioned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the sample app i created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 18:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28659#M4753</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-05-14T18:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data that's a combination of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28660#M4754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the QVW, Felip. I'll explain using an example from your data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PSL1,Cat4,Southern US,66 //data line 1&lt;/P&gt;&lt;P&gt;PSL2,Cat4,Northern US,103 //data line 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable has been defined as {&amp;lt;PSL-={'PSL1'},Region-={'Northern US'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Cat does not have Cat 4 despite the presence of data line 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually looking for a single expression that I can use in a list box. If I filter data using this list box, I should be able to see data excluding the combinations of PSL1 and (Northern US, Southern US). I tried several expressions, but it seems that they don't work when used in list boxes. For example, I used this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(([PSL]='PSL1' and not(Match([Region],'Northern US','Southern US'))) OR&lt;/P&gt;&lt;P&gt;[PSL]&amp;lt;&amp;gt;'PSL1' and match([Region],'Northern US','Southern US','APAC','LatAm','MENA') ,'Yes')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. the data should have either PSL1 and regions that are not Northern or Southern US, or non-PSL1 and all regions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Yes in the list box created using the expression above, the Current Selections box shows Region=ALL and PSL=ALL, which is not what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 20:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28660#M4754</guid>
      <dc:creator>saurabhk18</dc:creator>
      <dc:date>2018-05-14T20:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data that's a combination of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28661#M4755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Owwwwwww,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see what I did wrong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct exclusion set is this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;Cat=P({&amp;lt;Cat-={'Cat1'}&amp;gt;}Cat),Region=P({&amp;lt;Region-={'Northern US'}&amp;gt;}Region)&amp;gt;}&lt;/P&gt;&lt;P&gt;In this case, its getting all possible values for Cat and Region the things you need&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="202372" alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202372_sample.png" style="height: 496px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if this is what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 20:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28661#M4755</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-05-14T20:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding data that's a combination of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28662#M4756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Felip. But I want to set up a single filter for the users. If this filter is selected, data related to PSL=PSL1 and Region={Northern US, Southern US} together should be removed. I have chosen to add this logic to the QV code (flag rows which have this combination) instead of using chart functions. I think that might be easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 18:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-data-that-s-a-combination-of-two-fields/m-p/28662#M4756</guid>
      <dc:creator>saurabhk18</dc:creator>
      <dc:date>2018-05-16T18:55:02Z</dc:date>
    </item>
  </channel>
</rss>

