<?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 in Set Analysis for text replacement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406053#M564191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using quotes??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;'$'&amp;amp;NUM(ROUND(SUM({&amp;lt;&lt;STRONG&gt;'$(=vSetFilter)'&lt;/STRONG&gt;&amp;gt;}sales)),'##,###,###,###')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;'$'&amp;amp;NUM(ROUND(SUM({&amp;lt;&lt;STRONG&gt;"$(=vSetFilter)"&lt;/STRONG&gt;&amp;gt;}sales)),'##,###,###,###')&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 18:07:02 GMT</pubDate>
    <dc:creator>chematos</dc:creator>
    <dc:date>2013-02-05T18:07:02Z</dc:date>
    <item>
      <title>Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406047#M564185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have lot of expressions in my document which have similar pattern in the set analysis, although the measures differ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$'&amp;amp;NUM(ROUND(SUM({&amp;lt;name={'Baby Products'}&amp;gt;}sales)),'##,###,###,###')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this and similar expressions where the 'Baby Products' changes as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 1: Is there a way I can put the whole expression in variable for reusability and pass the&amp;nbsp; 'Baby Products' or other value as parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 2: I tried putting atleast the "name={'Baby Products'}" in a variable and called vSetFilter and use the expression '$'&amp;amp;NUM(ROUND(SUM({&amp;lt;$(=vSetFilter)&amp;gt;}sales)),'##,###,###,###') but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 16:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406047#M564185</guid>
      <dc:creator />
      <dc:date>2013-02-05T16:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406048#M564186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a sample QVW incase you need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 16:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406048#M564186</guid>
      <dc:creator />
      <dc:date>2013-02-05T16:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406049#M564187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; you can try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$'&amp;amp;NUM(ROUND(SUM({&amp;lt;name={$(vSetFilter)}&amp;gt;}sales)),'##,###,###,###')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSetFilter = 'Baby Products'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Giampiero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 16:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406049#M564187</guid>
      <dc:creator />
      <dc:date>2013-02-05T16:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406050#M564188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giampiero,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does not solve the problem of reusability much. I am just replacing &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; 'Baby Products'&lt;/SPAN&gt; with &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(vSetFilter).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;What I wish to do it to make the whole expression as a variable, and then maybe pass another variable like &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vSetFilter = 'Baby Products'&lt;/SPAN&gt; or vSetFilter="&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;name={'Baby Products'}" as a parameter.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I am able to explain correctly, but let me know if you have more questions please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Raghu&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 16:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406050#M564188</guid>
      <dc:creator />
      <dc:date>2013-02-05T16:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406051#M564189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;I understand your problem.&lt;/P&gt;&lt;P&gt;Just a question, how do you want to change the var. value?&lt;/P&gt;&lt;P&gt;Do you want to use an input box or other?&lt;/P&gt;&lt;P&gt;I try to think about your problem.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giampiero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 17:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406051#M564189</guid>
      <dc:creator />
      <dc:date>2013-02-05T17:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406052#M564190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giampiero,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I want to use this is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenver I need an expression, I can use the expression variable and then pass on or concatenate the setFilter variable into the overall expression to get the correct filtering of my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 17:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406052#M564190</guid>
      <dc:creator />
      <dc:date>2013-02-05T17:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406053#M564191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using quotes??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;'$'&amp;amp;NUM(ROUND(SUM({&amp;lt;&lt;STRONG&gt;'$(=vSetFilter)'&lt;/STRONG&gt;&amp;gt;}sales)),'##,###,###,###')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;'$'&amp;amp;NUM(ROUND(SUM({&amp;lt;&lt;STRONG&gt;"$(=vSetFilter)"&lt;/STRONG&gt;&amp;gt;}sales)),'##,###,###,###')&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 18:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406053#M564191</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2013-02-05T18:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406054#M564192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not work. Incorrect Syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try it in the test QVW I attached above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 18:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406054#M564192</guid>
      <dc:creator />
      <dc:date>2013-02-05T18:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis for text replacement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406055#M564193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;see attach file.&lt;/P&gt;&lt;P&gt;See the variables.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giampiero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 08:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-for-text-replacement/m-p/406055#M564193</guid>
      <dc:creator />
      <dc:date>2013-02-06T08:47:44Z</dc:date>
    </item>
  </channel>
</rss>

