<?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: Variable string in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367904#M418400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this : &lt;A href="https://community.qlik.com/qlik-blogpost/4232"&gt;Escape sequences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 11:08:41 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-05-18T11:08:41Z</dc:date>
    <item>
      <title>Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367903#M418399</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'm having some trouble using a dynamic string in set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following expression works: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;&amp;nbsp; UnusedProductGroup={'Non Panel B&amp;amp;C' , 'Non Panel Landlords'}&amp;gt;} [TotalCost])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I create an inline script so I can make the chart dynamic: (this is cut down so it's clear!)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id, Comparison,&amp;nbsp;&amp;nbsp; Productname1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |10|, Non Panel v Panel, Non Panel, "'Non Panel B&amp;amp;C' , 'Non Panel Landlords'" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |20|, Non Panel Landlord vs Non Panel B&amp;amp;C, Non Panel Landlord &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |30|, Panel Landlord vs Panel B&amp;amp;C, Panel Landlord &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then change the expression to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;&amp;nbsp; UnusedProductGroup={$(=ProductName1)}&amp;gt;} [TotalCost])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the inline script, the ProductName1 bit comes in as &lt;SPAN style="font-size: 13.3333px;"&gt; "'Non Panel B&amp;amp;C' , 'Non Panel Landlords'".&amp;nbsp; Sadly this isnt working.&amp;nbsp; I assume its how its sees the string, perhaps as a search string? How do i get around this? I dont want to use a variable for each field, as later on&amp;nbsp; I may need to have more complex strings with 5 or 6 concatenations!&amp;nbsp; How should I string multiple fields together?&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;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;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;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;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367903#M418399</guid>
      <dc:creator />
      <dc:date>2017-05-18T10:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367904#M418400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this : &lt;A href="https://community.qlik.com/qlik-blogpost/4232"&gt;Escape sequences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 11:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367904#M418400</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-18T11:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367905#M418401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - Thanks - I read the article and tried to implement, but I can't get it to work - It either ignores, adds in double quotes, which i think then get reviewed as search strings, or other weirdness! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as here: &lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id, Comparison, Productname1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |10|, Non Panel v Panel, 'Non Panel B&amp;amp;C'', ''Non Panel Landlords'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 11:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367905#M418401</guid>
      <dc:creator />
      <dc:date>2017-05-18T11:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367906#M418402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not really sure what you trying to achieve. Are you just trying to put separate strings together in a variable to be used in set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 11:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367906#M418402</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-18T11:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367907#M418403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes - i want to change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;&amp;nbsp; UnusedProductGroup={'Non Panel B&amp;amp;C' , 'Non Panel Landlords'}&amp;gt;} [TotalCost])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;&amp;nbsp; UnusedProductGroup={$(=ProductName1)}&amp;gt;} [TotalCost])&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ProductName1 would be the same as &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Non Panel B&amp;amp;C' , 'Non Panel Landlords'&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;However - I have a number of this &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UnusedProductGroup combinations to make dynamic.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 11:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367907#M418403</guid>
      <dc:creator />
      <dc:date>2017-05-18T11:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367908#M418404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="163899" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163899_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then the expression like:&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;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Sum({&amp;lt;UnusedProductGroup={&lt;SPAN style="color: #0000ff;"&gt;$(ProductName1)&lt;/SPAN&gt;}&amp;gt;} [TotalCost])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Note: No '=' sign in variable definition&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 11:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367908#M418404</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-18T11:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367909#M418405</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;Data:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(Productname1,'|',',') as Productname2;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id, Comparison,&amp;nbsp; Productname1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |10|, '''Non Panel v Panel ''|'' Non Panel''', '''Non Panel B&amp;amp;C''|''Non Panel Landlords'''&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try using &lt;SPAN style="font-size: 13.3333px;"&gt;Productname2 in set analysis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 11:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367909#M418405</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-18T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367910#M418406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco - this works fine as a standalone variable, but if i want to load it inline, then make the chart dynamic it sees the comma as a new field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 12:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367910#M418406</guid>
      <dc:creator />
      <dc:date>2017-05-18T12:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367911#M418407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see what this is doing... but it still returns 0 in the chart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this - &lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(Productname1,'|',',') as Productname2;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id, Comparison,&amp;nbsp; Productname1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |10|, '''Non Panel v Panel ''', '''Non Panel B&amp;amp;C''|''Non Panel Landlords'''&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this:&amp;nbsp; =Sum({&amp;lt;UnusedProductGroup={$(&lt;SPAN style="font-size: 13.3333px;"&gt;Productname2&lt;/SPAN&gt;)}&amp;gt;} [TotalCost]) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 12:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367911#M418407</guid>
      <dc:creator />
      <dc:date>2017-05-18T12:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variable string in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367912#M418408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wait - I needed to change the expression!&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;UnusedProductGroup={$(=Productname2)}&amp;gt;} [TotalCost]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added '='&amp;nbsp; - all good - cheers dude!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 12:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-string-in-Set-Analysis/m-p/1367912#M418408</guid>
      <dc:creator />
      <dc:date>2017-05-18T12:14:21Z</dc:date>
    </item>
  </channel>
</rss>

