<?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: two values in variable to use in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/two-values-in-variable-to-use-in-set-analysis/m-p/1766868#M454316</link>
    <description>&lt;P&gt;using Field={'I','V'} will bring up any rows with either of these two values some with only I and some with only V.&amp;nbsp; to get both this is one way:&lt;BR /&gt;&lt;BR /&gt;{&amp;lt;Field=p({&amp;lt;IVField={'V'}&amp;gt;}Field)&amp;gt;*&amp;lt;Field=p({&amp;lt;IVField={'I'}&amp;gt;}Field)&amp;gt;}&amp;nbsp; this ensures only one with both I and V&lt;/P&gt;&lt;P&gt;so you can create 2 variables one for I and one for V (driven by selection):&lt;BR /&gt;vI if selection = I or I and V&amp;nbsp; '{' &amp;amp; chr(39) &amp;amp; 'I' &amp;amp; chr(39) &amp;amp; '}'&lt;/P&gt;&lt;P&gt;vV if selection = V or I and V'{' &amp;amp; chr(39) &amp;amp; 'V' &amp;amp; chr(39) &amp;amp; '}'&lt;/P&gt;&lt;P&gt;and you expression will be:&lt;BR /&gt;&lt;SPAN&gt;{&amp;lt;Field=p({&amp;lt;IVField=$(vV)&amp;gt;}Field)&amp;gt;*&amp;lt;Field=p({&amp;lt;IVField=$(vI)&amp;gt;}Field)&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if user selects the third option both variables should be set, i user only select 1, the other should be set to empty string which is evaluated as:&lt;BR /&gt;&lt;BR /&gt;{&amp;lt;Field=p({&amp;lt;IVField={'I'}&amp;gt;}Field)&amp;gt;*&amp;lt;Field=p({&amp;lt;IVField=&amp;gt;}Field)&amp;gt;}&amp;nbsp; if user selects only I.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 23:07:13 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-12-07T23:07:13Z</dc:date>
    <item>
      <title>two values in variable to use in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/two-values-in-variable-to-use-in-set-analysis/m-p/1766738#M454306</link>
      <description>&lt;P&gt;I have records that can have two conditions I or V&lt;/P&gt;&lt;P&gt;I have a listbox with three choices :&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;P&gt;I and V&lt;/P&gt;&lt;P&gt;I store the choice in a variable that I want to use in set analysis&lt;/P&gt;&lt;P&gt;First two choices are easy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; but how do I have to store the third option so I can use it in set analysis.&lt;/P&gt;&lt;P&gt;I tried something like Vchoice= 'V|I' but&amp;nbsp; that does not work&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 15:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-values-in-variable-to-use-in-set-analysis/m-p/1766738#M454306</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2020-12-07T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: two values in variable to use in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/two-values-in-variable-to-use-in-set-analysis/m-p/1766761#M454310</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48508"&gt;@curiousfellow&lt;/a&gt;&amp;nbsp; try below expression in variable&lt;/P&gt;&lt;P&gt;=concat(distinct chr(39) &amp;amp; listboxfield &amp;amp; chr(39), ',')&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 16:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-values-in-variable-to-use-in-set-analysis/m-p/1766761#M454310</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-12-07T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: two values in variable to use in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/two-values-in-variable-to-use-in-set-analysis/m-p/1766868#M454316</link>
      <description>&lt;P&gt;using Field={'I','V'} will bring up any rows with either of these two values some with only I and some with only V.&amp;nbsp; to get both this is one way:&lt;BR /&gt;&lt;BR /&gt;{&amp;lt;Field=p({&amp;lt;IVField={'V'}&amp;gt;}Field)&amp;gt;*&amp;lt;Field=p({&amp;lt;IVField={'I'}&amp;gt;}Field)&amp;gt;}&amp;nbsp; this ensures only one with both I and V&lt;/P&gt;&lt;P&gt;so you can create 2 variables one for I and one for V (driven by selection):&lt;BR /&gt;vI if selection = I or I and V&amp;nbsp; '{' &amp;amp; chr(39) &amp;amp; 'I' &amp;amp; chr(39) &amp;amp; '}'&lt;/P&gt;&lt;P&gt;vV if selection = V or I and V'{' &amp;amp; chr(39) &amp;amp; 'V' &amp;amp; chr(39) &amp;amp; '}'&lt;/P&gt;&lt;P&gt;and you expression will be:&lt;BR /&gt;&lt;SPAN&gt;{&amp;lt;Field=p({&amp;lt;IVField=$(vV)&amp;gt;}Field)&amp;gt;*&amp;lt;Field=p({&amp;lt;IVField=$(vI)&amp;gt;}Field)&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if user selects the third option both variables should be set, i user only select 1, the other should be set to empty string which is evaluated as:&lt;BR /&gt;&lt;BR /&gt;{&amp;lt;Field=p({&amp;lt;IVField={'I'}&amp;gt;}Field)&amp;gt;*&amp;lt;Field=p({&amp;lt;IVField=&amp;gt;}Field)&amp;gt;}&amp;nbsp; if user selects only I.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 23:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-values-in-variable-to-use-in-set-analysis/m-p/1766868#M454316</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-07T23:07:13Z</dc:date>
    </item>
  </channel>
</rss>

