<?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 How to use variable in set expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289287#M107455</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;you have to enter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product={$(=Only(Product))}&amp;gt;} Fieldname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to use a variable, define one at Settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varProduct =Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product={$(varProduct)}&amp;gt;} Fieldname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2011 09:29:20 GMT</pubDate>
    <dc:creator>brenner_martina</dc:creator>
    <dc:date>2011-06-15T09:29:20Z</dc:date>
    <item>
      <title>How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289281#M107449</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 doubt which seems very basic but I am unable to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field named 'Product' with values 'CITY', 'Civic', 'Jazz' etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the expression, &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product={'CITY'}&amp;gt;}sum) ... I get the CITY specific chart. But I want to make the chart dynamic based on the 'Product' selection made by the user....&lt;/P&gt;&lt;P&gt;So I have set a variable named 'ProVar' which will have its correspoding 'Product' value assigned as user selects from a product list box.&lt;/P&gt;&lt;P&gt;I need to edit the expression so that it will take the ProVar and change Dynamicaly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I modify the expression like this Sum({&amp;lt;Product={&lt;STRONG&gt;ProVar&lt;/STRONG&gt;}&amp;gt;}sum) its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that it shud be a simple issue.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt; but it'll be of great help if you can just let me know the correct syntax&amp;nbsp; for framing in the set expression in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289281#M107449</guid>
      <dc:creator />
      <dc:date>2011-06-15T09:19:41Z</dc:date>
    </item>
    <item>
      <title>How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289282#M107450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;Product=${&lt;STRONG&gt;ProVar&lt;/STRONG&gt;}&amp;gt;}) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this may it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289282#M107450</guid>
      <dc:creator />
      <dc:date>2011-06-15T09:25:25Z</dc:date>
    </item>
    <item>
      <title>How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289283#M107451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I tried using &lt;SPAN style="font-size: 8pt;"&gt;Sum({&amp;lt;Product={'$ProVar'}&amp;gt;} sum) &lt;/SPAN&gt;.. but still this is not working..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289283#M107451</guid>
      <dc:creator />
      <dc:date>2011-06-15T09:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289284#M107452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;sum({&amp;lt;Product=${&lt;STRONG&gt;ProVar&lt;/STRONG&gt;}&amp;gt;}) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this may it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289284#M107452</guid>
      <dc:creator />
      <dc:date>2011-06-15T09:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289285#M107453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({&amp;lt;Product={$(&lt;STRONG&gt;ProVar)&lt;/STRONG&gt;}&amp;gt;}sum).please try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289285#M107453</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2011-06-15T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289286#M107454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;sum({&amp;lt;Product=$(&lt;STRONG&gt;ProVar)&lt;/STRONG&gt;&amp;gt;}) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hey sorry for the previous post , i for got to use braces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289286#M107454</guid>
      <dc:creator />
      <dc:date>2011-06-15T09:28:58Z</dc:date>
    </item>
    <item>
      <title>How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289287#M107455</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;you have to enter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product={$(=Only(Product))}&amp;gt;} Fieldname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to use a variable, define one at Settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varProduct =Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product={$(varProduct)}&amp;gt;} Fieldname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289287#M107455</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-06-15T09:29:20Z</dc:date>
    </item>
    <item>
      <title>How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289288#M107456</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;it will be easier to help if you post the definition of your variable ProVar. Depending how this is set will shwo you hwo the varaible shoudl be dealt with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a start $ expansion requires that the varaibel to be expanded is found inside the brackets like this $(ProVar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However thsi may react differently depending on what ProVar contains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start by replacing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Product={'$ProVar'}&amp;gt;} sum) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(&amp;nbsp; { &amp;lt;Product= {$(ProVar)}&amp;gt;} sum) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;see what happens. If no luck post teh definition of your variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289288#M107456</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-15T09:33:18Z</dc:date>
    </item>
    <item>
      <title>How to use variable in set expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289289#M107457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked fine for me&amp;nbsp; &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;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;'$ProVar'&amp;gt;} sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your replies &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &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, 15 Jun 2011 09:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-set-expression/m-p/289289#M107457</guid>
      <dc:creator />
      <dc:date>2011-06-15T09:40:12Z</dc:date>
    </item>
  </channel>
</rss>

