<?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: SET Analysis issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901823#M1002903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! That works as expected. Very weird that we need to use &lt;STRONG&gt;Chr(39)&lt;/STRONG&gt; aka&lt;STRONG&gt; '&lt;/STRONG&gt; to make this happen. But well thanks. It runs. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 10:15:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-03T10:15:55Z</dc:date>
    <item>
      <title>SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901816#M1002896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue with a SET analysis. I defined following user defined function: &lt;STRONG&gt;udfTest = $1 &amp;amp; '_' &amp;amp; Text($2) &amp;amp; '_' &amp;amp; $3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this in a text box works for me: &lt;STRONG&gt;=$(udfTest('Text', Year*100 + 1, 'Text'))&lt;/STRONG&gt; results in &lt;STRONG&gt;Text_201501_Text&lt;/STRONG&gt;. Well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I would like to filter some data with the SET analysis but somehow it doesn't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({$&amp;lt;Field1={$(udfTest('Text', Year*100 + 1, 'Text'))}&amp;gt;Field2}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried several things with '', "", [] and so on but I can't figure out the mistake. Anyone an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901816#M1002896</guid>
      <dc:creator />
      <dc:date>2015-06-03T09:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901817#M1002897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the Equal sign&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Field1={$&lt;STRONG&gt;(=&lt;/STRONG&gt;udfTest('Text', Year*100 + 1, 'Text'))}&amp;gt;}Field2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901817#M1002897</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2015-06-03T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901818#M1002898</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;use "" and =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Field1={"$(=udfTest('Text', Year*100 + 1, 'Text'))"}&amp;gt;}Field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901818#M1002898</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-03T09:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901819#M1002899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrik, check if that works when you select only one Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analisys and $-expansion is calculated using document selections, before the table is calculated, so it no uses the dimension values to change the &lt;EM&gt;Year &lt;/EM&gt;dinamically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901819#M1002899</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-03T09:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901820#M1002900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;thanks for those fast replys! amazing!&lt;/P&gt;&lt;P&gt;But those fixes both don't work for me. The good part is, that there is no more error, but it just returns &lt;STRONG&gt;0&lt;/STRONG&gt;. And nothing changes if I replace the field to look for. So I assume it accepts the dollar sign expression, but somehow it doesn't find the correct value. The sum to calculate should be &lt;STRONG&gt;1&lt;/STRONG&gt;, not &lt;STRONG&gt;0&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The aspect of the &lt;STRONG&gt;Year&lt;/STRONG&gt; thing doensn't change anythang as well. I tried with a fixed number of 2015 instead of the &lt;STRONG&gt;Year&lt;/STRONG&gt; field. But also no change at all. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as an info, if I enter the string manually into the SET expression, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({$&amp;lt;Field1={Text_201501_Text}&amp;gt;}Field2)&lt;/STRONG&gt;&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;If I try this in a text box: &lt;STRONG&gt;=$(=udfTest('Text', Year*100 + 1, 'Text')&lt;/STRONG&gt; the result is &lt;STRONG&gt;-&lt;/STRONG&gt;. ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 09:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901820#M1002900</guid>
      <dc:creator />
      <dc:date>2015-06-03T09:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901821#M1002901</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;In your chart where you write this expression dont give any label to this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then check what value it is evaluating for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=udfTest('Text', Year*100 + 1, 'Text'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible take screen shot of it and post it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 10:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901821#M1002901</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-03T10:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901822#M1002902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this?:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Field1={$(=Chr(39)&amp;amp; $(udfTest('Text', Year*100 + 1, 'Text')) &amp;amp; Chr(39))}&amp;gt;}Field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample will be nice to make some tests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 10:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901822#M1002902</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-03T10:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901823#M1002903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! That works as expected. Very weird that we need to use &lt;STRONG&gt;Chr(39)&lt;/STRONG&gt; aka&lt;STRONG&gt; '&lt;/STRONG&gt; to make this happen. But well thanks. It runs. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 10:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901823#M1002903</guid>
      <dc:creator />
      <dc:date>2015-06-03T10:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901824#M1002904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's needed to avoid messing with the &lt;STRONG&gt;' &lt;/STRONG&gt;used to pass parameters to udfTest, the difference:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Field1={$(=Chr(39)&amp;amp; $(udfTest('&lt;STRONG&gt;Text&lt;/STRONG&gt;', Year*100 + 1, '&lt;STRONG&gt;Text&lt;/STRONG&gt;')) &amp;amp; Chr(39))}&amp;gt;}Field2)&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Field1={$(='&lt;STRONG&gt;$(udfTest(&lt;/STRONG&gt;'Text'&lt;STRONG&gt;, Year*100 + 1,&lt;/STRONG&gt; 'Text'&lt;STRONG&gt;))&lt;/STRONG&gt;')}&amp;gt;}Field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bolded text is the part between the opener &lt;STRONG&gt;'&lt;/STRONG&gt; and the closer &lt;STRONG&gt;'&lt;/STRONG&gt;, you can see the second option can't be procesed, one way to avoid this is the use of Chr(39).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 10:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-issue/m-p/901824#M1002904</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-03T10:35:22Z</dc:date>
    </item>
  </channel>
</rss>

