<?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 Problem with set analysys when text variable contain space or special symbol in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysys-when-text-variable-contain-space-or/m-p/275555#M1202289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't figure out how can I overcome this issue.&lt;/P&gt;&lt;P&gt;I have a variable (&lt;STRONG&gt;&lt;I&gt;Top1&lt;/I&gt;&lt;/STRONG&gt;) which determines the name of 1 top selling brand: &lt;I&gt;=only({&amp;lt;Brand= {"=rank(sum(Sales), Brand) =1"}&amp;gt;} Brand )&lt;/I&gt;&lt;/P&gt;&lt;P&gt;then this value is passed to textbox to get the sales for this top brand: &lt;I&gt;=sum({$&amp;lt;Brand={$(&lt;STRONG&gt;Top1&lt;/STRONG&gt;)}&amp;gt;}Sales),&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Formula works fine if Brand doesn't have spaces or special characters. Please see the screenshot for the results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2326_sourceID:2326" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Sep 2010 05:38:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-09T05:38:06Z</dc:date>
    <item>
      <title>Problem with set analysys when text variable contain space or special symbol</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysys-when-text-variable-contain-space-or/m-p/275555#M1202289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't figure out how can I overcome this issue.&lt;/P&gt;&lt;P&gt;I have a variable (&lt;STRONG&gt;&lt;I&gt;Top1&lt;/I&gt;&lt;/STRONG&gt;) which determines the name of 1 top selling brand: &lt;I&gt;=only({&amp;lt;Brand= {"=rank(sum(Sales), Brand) =1"}&amp;gt;} Brand )&lt;/I&gt;&lt;/P&gt;&lt;P&gt;then this value is passed to textbox to get the sales for this top brand: &lt;I&gt;=sum({$&amp;lt;Brand={$(&lt;STRONG&gt;Top1&lt;/STRONG&gt;)}&amp;gt;}Sales),&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Formula works fine if Brand doesn't have spaces or special characters. Please see the screenshot for the results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2326_sourceID:2326" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 05:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysys-when-text-variable-contain-space-or/m-p/275555#M1202289</guid>
      <dc:creator />
      <dc:date>2010-09-09T05:38:06Z</dc:date>
    </item>
    <item>
      <title>Problem with set analysys when text variable contain space or special symbol</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysys-when-text-variable-contain-space-or/m-p/275556#M1202290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and welcome to the Forums,&lt;/P&gt;&lt;P&gt;I think it's because text in set analysis have to be quoted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=sum({$&amp;lt;Brand=&lt;B&gt;{'$(&lt;/B&gt;&lt;STRONG&gt;Top1&lt;/STRONG&gt;&lt;B&gt;)'}&lt;/B&gt;&amp;gt;}Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 06:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysys-when-text-variable-contain-space-or/m-p/275556#M1202290</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-09T06:45:53Z</dc:date>
    </item>
    <item>
      <title>Problem with set analysys when text variable contain space or special symbol</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysys-when-text-variable-contain-space-or/m-p/275557#M1202291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, Miguel. It worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 07:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysys-when-text-variable-contain-space-or/m-p/275557#M1202291</guid>
      <dc:creator />
      <dc:date>2010-09-09T07:09:24Z</dc:date>
    </item>
  </channel>
</rss>

