<?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: Using a variable to filter a set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544351#M203349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try removing the single quotes, just ... JTBD = {$(vJTBD)}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 17:29:00 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-10-29T17:29:00Z</dc:date>
    <item>
      <title>Using a variable to filter a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544350#M203348</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;I have a variable called vJTBD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vJTBD can contain any order and number of the following examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Conversion, Awareness'&lt;/P&gt;&lt;P&gt;'Conversion'&lt;/P&gt;&lt;P&gt;'Awareness, Engagement, Conversion'&lt;/P&gt;&lt;P&gt;'Awareness, Conversion, Engagement'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable is created dynamically on the fly. It will never be more than 4 words, and will always be one word long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me how I'm supposed to integrate this into my set expression? [ attached ] &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 17:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544350#M203348</guid>
      <dc:creator />
      <dc:date>2013-10-29T17:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to filter a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544351#M203349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try removing the single quotes, just ... JTBD = {$(vJTBD)}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 17:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544351#M203349</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-29T17:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to filter a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544352#M203350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is now functionally working. (looks like my logic isn't correct though)&lt;/P&gt;&lt;P&gt;I have no idea why it needs to be this way but thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You've answered so many of my questions on these forums I now recognise your name! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 09:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544352#M203350</guid>
      <dc:creator />
      <dc:date>2013-10-30T09:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to filter a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544353#M203351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The difference between the two expressions is (when variabe is dollar sign expanded)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JTBD = { Awareness, Engagement, Conversion }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JTBD = { 'Awareness, Engagement, Conversion' }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, I believe you don't need to quote each value in your field value list (though it might be necessary in special cases), but if you want to quote, you need to do it like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JTBD = { 'Awareness', 'Engagement', 'Conversion' }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i.e. quote each value instead of the list of values). You can also use the quoted version, this just makes your expression a little more complex, and as you see, it is not necessary in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 10:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544353#M203351</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-30T10:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable to filter a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544354#M203352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;once again thanks for explaining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a nice day,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 10:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-to-filter-a-set-expression/m-p/544354#M203352</guid>
      <dc:creator />
      <dc:date>2013-10-30T10:21:09Z</dc:date>
    </item>
  </channel>
</rss>

