<?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 and Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121487#M904450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing this in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to replace $ with something else (#) before and replace # with $ again in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;SET vYFactor = Replace('I&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;f(GetSelectedCount([X_Factor.Location])=0, only({&amp;lt;[X_Factor.Location]={"=#(vAverage)"}&amp;gt;}[X_Factor.Storage Paid]), only([X_Factor.Storage Paid])', '#', '$');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2016 16:32:23 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-08T16:32:23Z</dc:date>
    <item>
      <title>Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121486#M904448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying to set a variable with the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vYFactor = if(GetSelectedCount([X_Factor.Location])=0, only({&amp;lt;[X_Factor.Location]={"=$(vAverage)"}&amp;gt;}[X_Factor.Storage Paid]), only([X_Factor.Storage Paid]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I try to present it in a text box I dont get any value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121486#M904448</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121487#M904450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing this in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to replace $ with something else (#) before and replace # with $ again in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;SET vYFactor = Replace('I&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;f(GetSelectedCount([X_Factor.Location])=0, only({&amp;lt;[X_Factor.Location]={"=#(vAverage)"}&amp;gt;}[X_Factor.Storage Paid]), only([X_Factor.Storage Paid])', '#', '$');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121487#M904450</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121488#M904452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Sunny..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is how my two variables looks like now on the script:&lt;/P&gt;&lt;P&gt;set vAverage= '=Average';&lt;/P&gt;&lt;P&gt;SET vYFactor = Replace('If(GetSelectedCount([X_Factor.Location])=0, only({&amp;lt;[X_Factor.Location]={"=#(vAverage)"}&amp;gt;}[X_Factor.Storage Paid]), only([X_Factor.Storage Paid])', '#', '$');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do they look right to you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also what should i use inside the text box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121488#M904452</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-07-08T16:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121489#M904454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To tell you the truth, I know $() in script variables give problem because they get evaluated. So replace is the solution to get around that, but I have never tried it on my own. I have seen Stefan providing solution to this on various occasions, let me see if I can find one of his responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121489#M904454</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121490#M904456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here check this out:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1062225"&gt;Re: Expression as a variable with $-sign expansion&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121490#M904456</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T16:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121491#M904458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So try something like this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;LET&lt;/SPAN&gt; vYFactor = &lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;I&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;f(GetSelectedCount([X_Factor.Location])=0, only({&amp;lt;[X_Factor.Location]={"=$&lt;SPAN style="color: #ff0000;"&gt;' &amp;amp; '&lt;/SPAN&gt;#(vAverage)"}&amp;gt;}[X_Factor.Storage Paid]), only([X_Factor.Storage Paid])', '#', '$')&lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121491#M904458</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121492#M904460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think your solution is fine. the only issue on it is the value inside the set analysis to be 'Average'...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121492#M904460</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-07-08T16:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121493#M904462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but not sure how I can do that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121493#M904462</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-07-08T17:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121494#M904464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the Average used for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121494#M904464</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T17:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121495#M904466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just want to pass the value which is 'Average' in set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121495#M904466</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-07-08T17:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121496#M904468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the last expression you sent has errors in it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121496#M904468</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-07-08T17:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121497#M904470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup forgot to remove the end part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;LET&lt;/SPAN&gt; vYFactor = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;'&lt;/SPAN&gt;I&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;f(GetSelectedCount([X_Factor.Location])=0, Only({&amp;lt;[X_Factor.Location]={"=$&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;' &amp;amp; '&lt;/SPAN&gt;#(vAverage)"}&amp;gt;}[X_Factor.Storage Paid]), Only([X_Factor.Storage Paid]))';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121497#M904470</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T17:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121498#M904472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i still see extra # on it&lt;/P&gt;&lt;P&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130723_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121498#M904472</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2016-07-08T17:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121499#M904474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;LET&lt;/SPAN&gt; vYFactor = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;'&lt;/SPAN&gt;I&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;f(GetSelectedCount([X_Factor.Location])=0, Only({&amp;lt;[X_Factor.Location]={"=$&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;' &amp;amp; '&lt;/SPAN&gt;(vAverage)"}&amp;gt;}[X_Factor.Storage Paid]), Only([X_Factor.Storage Paid]))';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 18:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-and-Set-analysis/m-p/1121499#M904474</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-08T18:13:27Z</dc:date>
    </item>
  </channel>
</rss>

