<?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 A way to keep only one field selections with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344133#M493740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clearing selection for one field is easy: {$&amp;lt;FIELD=&amp;gt;}&lt;/P&gt;&lt;P&gt;Clearing all field selections is also easy: {1}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For keeping only one field selection this looks promising at first glance: {1&amp;lt;FIELD=P({$}FIELD)&amp;gt;}, but it is potentially problematic because selections in other fields might influence what are the possible values for FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could type all the set modifiers {$&amp;lt;FIELD1=,FIELD2=,...&amp;gt;} except for the field selection I want to keep, but I might have hundreds of fields, so this is hardly convenient. Also I am afraid I might hit some sort of size limit for the expression text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This: {1&amp;lt;FIELD=FIELD&amp;gt;} also does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current solution uses some rather confusingly looking formulas in variables, but this breaks expression syntax highlighting and, more worryingly, relies on the fact that set modifiers are evaluated left-to-right (for example, {$&amp;lt;FIELD={'A'},FIELD={'B'}&amp;gt;} is equivalent to {$&amp;lt;FIELD={'B'}&amp;gt;}), which is hardly a documented feature and might just stop working at some time in the future or under some circumstances I have not yet encountered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there any simple and elegant way to do this, that I am missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 12:57:57 GMT</pubDate>
    <dc:creator>kuba_michalik</dc:creator>
    <dc:date>2012-05-09T12:57:57Z</dc:date>
    <item>
      <title>A way to keep only one field selections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344133#M493740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clearing selection for one field is easy: {$&amp;lt;FIELD=&amp;gt;}&lt;/P&gt;&lt;P&gt;Clearing all field selections is also easy: {1}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For keeping only one field selection this looks promising at first glance: {1&amp;lt;FIELD=P({$}FIELD)&amp;gt;}, but it is potentially problematic because selections in other fields might influence what are the possible values for FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could type all the set modifiers {$&amp;lt;FIELD1=,FIELD2=,...&amp;gt;} except for the field selection I want to keep, but I might have hundreds of fields, so this is hardly convenient. Also I am afraid I might hit some sort of size limit for the expression text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This: {1&amp;lt;FIELD=FIELD&amp;gt;} also does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current solution uses some rather confusingly looking formulas in variables, but this breaks expression syntax highlighting and, more worryingly, relies on the fact that set modifiers are evaluated left-to-right (for example, {$&amp;lt;FIELD={'A'},FIELD={'B'}&amp;gt;} is equivalent to {$&amp;lt;FIELD={'B'}&amp;gt;}), which is hardly a documented feature and might just stop working at some time in the future or under some circumstances I have not yet encountered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there any simple and elegant way to do this, that I am missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344133#M493740</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2012-05-09T12:57:57Z</dc:date>
    </item>
    <item>
      <title>A way to keep only one field selections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344134#M493741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is also one of the limitations that I have noticed. I have used {&amp;lt;Field=P()&amp;gt;} to only recognize one fields selections, but I still need to tell people that while this may make it so that only this field affects it, it is only showing the possible values in this field. I am also interested in a different solution where it only changes results based on actual selection and not on possible values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 13:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344134#M493741</guid>
      <dc:creator />
      <dc:date>2012-05-09T13:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: A way to keep only one field selections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344135#M493742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about using GetSelectedValues to collect the seleacted values as a list in a variable, and incorporating that variable into your set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 13:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344135#M493742</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-09T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: A way to keep only one field selections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344136#M493743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think it might be a better idea than what I have right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the interested:&lt;/P&gt;&lt;P&gt;Contents of variable Selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chr(39)&amp;amp;GetFieldSelections($1,chr(39)&amp;amp;','&amp;amp;chr(39),1000)&amp;amp;chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{1&amp;lt;FIELD={$(=$(Selection(FIELD)))}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not break syntax coloring and does not rely on modifying one field twice, so is better in both aspect from what I had.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! Still, I cannot help thinking there should be some easier way of doing that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 14:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344136#M493743</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2012-05-09T14:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: A way to keep only one field selections with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344137#M493744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case anybody sees that thread: Alternate States + Set Analysis had since made this super-simple and way less messy.&lt;/P&gt;&lt;P&gt;Use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{1&amp;lt;FIELD=$::FIELD&amp;gt;} as the set expression and you are done.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 15:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-way-to-keep-only-one-field-selections-with-set-analysis/m-p/344137#M493744</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2015-05-22T15:13:43Z</dc:date>
    </item>
  </channel>
</rss>

