<?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: Set Analysis, Avoiding all selections except one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989675#M467842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌ so you are saying that if we have this -&amp;gt; &lt;STRONG&gt;{1&amp;lt;Field_1 = p(Field_1)&amp;gt;}&lt;/STRONG&gt; it can change with selection in Field_2 if they are somehow linked together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was under the impression that it won't, would you be able to share a sample where it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 10:51:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-10-16T10:51:36Z</dc:date>
    <item>
      <title>Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989669#M467836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the mesoure below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( DISTINCT{&amp;lt;Estado={'Desactivado'}&amp;gt;} [ID Recurso] )/count( DISTINCT [ID Recurso] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I need to ignore ALL the selections except one(for example, Field_1).&amp;nbsp; I have many fields that can be selected and I cant set each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything i can do to avoid all the selections but the Field_1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Appreciate your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 17:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989669#M467836</guid>
      <dc:creator />
      <dc:date>2015-10-15T17:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989670#M467837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count( DISTINCT{1&amp;lt;Estado={'Desactivado'}, Field_1 = p(Field1)&amp;gt;} [ID Recurso] )/count( DISTINCT {1&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Field_1 = p(Field1)&lt;/SPAN&gt;&amp;gt;} [ID Recurso] )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 18:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989670#M467837</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-15T18:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989671#M467838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a good doc about your question here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1334"&gt;Ignore all selections except some specific fields using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 18:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989671#M467838</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-15T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989672#M467839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression given by Sunny T works. but there is one caveat here, if you have a selection on Field_2 which is associated to Field_1 and only 3 (just example) of them are available for the selection, Field_1 =p(Field_1) while have only 3 possible values for Field_1. If you wanted to ignore all selections except Field_1 you will have to ignore all other&amp;nbsp; fields in the possible set of field_1. like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field_1 = p({&amp;lt;all fields except Field_1&amp;gt;}Field_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the all fields except Field_1 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the variable definitions window &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vField_1Exclusions = Concat(Distinct '['&amp;amp; if(Not WildMatch([$Field],'Field_1'),[$Field]&amp;amp;']',','))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Field_1 = p({&amp;lt;$(&lt;SPAN style="font-size: 13.3333px;"&gt;vField_1Exclusions&lt;/SPAN&gt;)&amp;gt;}Field_1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 19:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989672#M467839</guid>
      <dc:creator />
      <dc:date>2015-10-15T19:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989673#M467840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;I tried it and it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 07:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989673#M467840</guid>
      <dc:creator />
      <dc:date>2015-10-16T07:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989674#M467841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would prefer a simpler one (until someone points out a glitch).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count( {1&amp;lt;Field_1=&lt;STRONG&gt;$::Field_1&lt;/STRONG&gt;&amp;gt;} YourField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Credit : &lt;A href="https://community.qlik.com/qlik-users/137372"&gt;bwisenoSimenKG&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please be careful, &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;=Count( {1&amp;lt;Field_1=p(Field_1)&amp;gt;} YourField)&lt;/EM&gt;&amp;nbsp; , might give you &lt;STRONG&gt;wrong&lt;/STRONG&gt; result, because the possible values of Field_1 are still getting affected by other selections, which you don't want.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 07:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989674#M467841</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-16T07:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989675#M467842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌ so you are saying that if we have this -&amp;gt; &lt;STRONG&gt;{1&amp;lt;Field_1 = p(Field_1)&amp;gt;}&lt;/STRONG&gt; it can change with selection in Field_2 if they are somehow linked together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was under the impression that it won't, would you be able to share a sample where it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 10:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989675#M467842</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-16T10:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989676#M467843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow you are right, I have using this p thing for a while without knowing this thing. Thanks &lt;A _jive_internal="true" href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌ for bringing this to my notice. Really appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached a sample where other might be able to see an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989676#M467843</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-16T11:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Avoiding all selections except one</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989677#M467844</link>
      <description>&lt;P&gt;I thought that this would be better if I could make a document for the same and just did that here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Ignore-all-selections-except-few-fields-using-Set-Analysis/ta-p/1485471" target="_self"&gt;Ignore-all-selections-except-few-fields-using-Set-Analysis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 05:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Avoiding-all-selections-except-one/m-p/989677#M467844</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-12-15T05:50:12Z</dc:date>
    </item>
  </channel>
</rss>

