<?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: Using variable as value in field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685223#M52193</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't make it work. The thing is, if I put the expression in a table I get the result I need 'Canada', but when I use the same variable as a field value in set analysis it isn't working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 07:46:49 GMT</pubDate>
    <dc:creator>ruben_moya</dc:creator>
    <dc:date>2020-03-17T07:46:49Z</dc:date>
    <item>
      <title>Using variable as value in field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685088#M52176</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I've got the following expression in measure in one of my tables:&lt;/P&gt;&lt;P&gt;num(Sum({&amp;lt;AreaContinent={'Canada'} )Total_amount)&lt;/P&gt;&lt;P&gt;I need to store 'Canada' in a variable in the script. I tried&amp;nbsp;SET v.Area=chr(39)&amp;amp;'Canada'&amp;amp;chr(39), but it is not working:&lt;/P&gt;&lt;P&gt;num(Sum({&amp;lt;AreaContinent={$(v.Area)} )Total_amount)&lt;/P&gt;&lt;P&gt;However, the result of calculating&amp;nbsp;$(v.Area) is 'Canada'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please give me a handa. Is it actually possible to do it? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 17:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685088#M52176</guid>
      <dc:creator>ruben_moya</dc:creator>
      <dc:date>2020-03-16T17:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable as value in field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685103#M52177</link>
      <description>&lt;P&gt;How about this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num(Sum({&amp;lt;AreaContinent={$(v.Area)}&amp;gt;} Total_amount))&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num(Sum({&amp;lt;AreaContinent={$(=$(v.Area))}&amp;gt;} Total_amount))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 17:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685103#M52177</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-16T17:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable as value in field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685223#M52193</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't make it work. The thing is, if I put the expression in a table I get the result I need 'Canada', but when I use the same variable as a field value in set analysis it isn't working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 07:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685223#M52193</guid>
      <dc:creator>ruben_moya</dc:creator>
      <dc:date>2020-03-17T07:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable as value in field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685226#M52194</link>
      <description>&lt;P&gt;I can guess that this could be something related to quotes issue or '=' issue in variable declaration. Could you share screenshots of your variable declaration and expression definition and output for the variable?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 07:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685226#M52194</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-17T07:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable as value in field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685268#M52198</link>
      <description>&lt;P&gt;It turns out that the expression&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;AreaContinent={Canada} )Total_amount) also works without the quotes ' * '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just set a variable in the script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SET v.Areas='Canada';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then use it in set analysis:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;AreaContinente={$(v.Areas)} )Total_amount) &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 09:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-as-value-in-field/m-p/1685268#M52198</guid>
      <dc:creator>ruben_moya</dc:creator>
      <dc:date>2020-03-17T09:27:42Z</dc:date>
    </item>
  </channel>
</rss>

