<?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 Evaluation of SET expression variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795485#M1034224</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 created in my application using SET keyword whose value has a special character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : SET vSample='Sp-Char'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET vSample2='SampleVal'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am using this variable value in my SET analysis expression it is not returning the correct value where as the another variable vSample2 is returning the proper value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA sample application. In this application the set analysis expression for the value without special character is working fine(expression for text box background color)&amp;nbsp; where as the variable with value without special character is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear on my part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 10:29:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-30T10:29:23Z</dc:date>
    <item>
      <title>Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795485#M1034224</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 created in my application using SET keyword whose value has a special character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : SET vSample='Sp-Char'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET vSample2='SampleVal'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am using this variable value in my SET analysis expression it is not returning the correct value where as the another variable vSample2 is returning the proper value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA sample application. In this application the set analysis expression for the value without special character is working fine(expression for text box background color)&amp;nbsp; where as the variable with value without special character is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear on my part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 10:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795485#M1034224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795486#M1034225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;what are you trying to do?&lt;BR /&gt; First you cannot use &lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum( ...Value) if value is not numeric.&lt;BR /&gt; second in field description you cannot use - char, try with SP_Char&lt;BR /&gt; Third when you use Sum for colours choice in text boxes, which value should you use?&lt;BR /&gt; &lt;BR /&gt; Hope this helps &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 10:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795486#M1034225</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-30T10:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795487#M1034226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you time Alessandro Saccone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My actual application with (Sum(.. Value) has a numeric value. &lt;/P&gt;&lt;P&gt;Sorry I cannot post my application as it has confidential data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain in a different way.&lt;/P&gt;&lt;P&gt;I have different Business Units in my firm.&lt;/P&gt;&lt;P&gt;vBU1='Unit1'&lt;/P&gt;&lt;P&gt;vBU2='Unit2'&lt;/P&gt;&lt;P&gt;vBU3='Unit3'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if a particular Business Unit has not met the target a flag will be set to -1 else it will be 0. Let this flag be BUFlag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text box color should be red or green based on this flag value for different Business Units. If the flag is -1 it will red or it will be green if its 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition in the textbox would be &lt;/P&gt;&lt;P&gt;if(SUM({&amp;lt;BU={$(vBU1)}&amp;gt;}BUFlag)=-1,red(),green())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am not confusing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 11:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795487#M1034226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T11:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795488#M1034227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(if(BU=$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vBU1&lt;/SPAN&gt;),sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BUFlag&lt;/SPAN&gt;))=-1,red(),green())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 11:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795488#M1034227</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-01-30T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795489#M1034228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laxmi, You can try with:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Value={'$(vSample)'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without the quotes i think qv is trying to do &lt;STRONG&gt;Sp&lt;/STRONG&gt;&lt;EM&gt; minus&lt;/EM&gt; &lt;STRONG&gt;Char&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 11:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795489#M1034228</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-30T11:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795490#M1034229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is there any way that I can implement while setting the variable value?&lt;/P&gt;&lt;P&gt;Because I have hundreds of such expression where I have to make the changes. Instead I want to change the value of variable in SET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 11:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795490#M1034229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795491#M1034230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try with:&lt;/P&gt;&lt;P&gt;SET vSample="'SP-Char'";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This a a simple-quoted text inside a double-quote.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 12:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795491#M1034230</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-30T12:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795492#M1034231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried in place of -1 just use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(SUM({&amp;lt;BU={$(vBU1)}&amp;gt;}BUFlag)&amp;lt;0,red(),green())&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 12:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795492#M1034231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T12:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluation of SET expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795493#M1034232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(SUM({&amp;lt;BU={$(vBU1)}&amp;gt;}BUFlag)=-1,red(),green()) ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 12:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluation-of-SET-expression-variable/m-p/795493#M1034232</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-30T12:26:58Z</dc:date>
    </item>
  </channel>
</rss>

