<?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: QlikView Variable Expansion in set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Variable-Expansion-in-set-expression/m-p/420620#M562278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey..thanks.&lt;/P&gt;&lt;P&gt;I was able to figure out the solution. And its exactly the same as you mentioned above. I was also missing a date format.&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>Thu, 07 Mar 2013 22:12:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-07T22:12:41Z</dc:date>
    <item>
      <title>QlikView Variable Expansion in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Variable-Expansion-in-set-expression/m-p/420618#M562276</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;I have a variable that calculated correctly and I verified it using a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the value of this variable in the below set expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$'&amp;amp;NUM(ROUND(SUM({$&amp;lt;calendar_date_num = , business_date_num = {'$(=vMaxBusinessDate)'}&amp;gt;} '$(=vDerivedName)'),'###,###,###,###')&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;='$'&amp;amp;NUM(ROUND(SUM({$&amp;lt;calendar_date_num = , business_date_num = {'$(=vMaxBusinessDate)'}&amp;gt;} {&amp;lt;$(=vDerivedName)&amp;gt;}),'###,###,###,###')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain it in other words, what I am trying to do is in a set expression like SUM({&amp;lt;Year=2007&amp;gt;}sales), I am trying to dynamically change the 'sales' field based on the value of a variable. Would be great is someone can help me on this issue. Am I messing up with syntax?&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>Thu, 07 Mar 2013 21:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Variable-Expansion-in-set-expression/m-p/420618#M562276</guid>
      <dc:creator />
      <dc:date>2013-03-07T21:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Variable Expansion in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Variable-Expansion-in-set-expression/m-p/420619#M562277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If vDerivedName evaluates to a field name then use SUM({$&amp;lt;calendar_date_num = , business_date_num = {'$(=vMaxBusinessDate)'}&amp;gt;} $(=vDerivedName))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 22:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Variable-Expansion-in-set-expression/m-p/420619#M562277</guid>
      <dc:creator />
      <dc:date>2013-03-07T22:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Variable Expansion in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Variable-Expansion-in-set-expression/m-p/420620#M562278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey..thanks.&lt;/P&gt;&lt;P&gt;I was able to figure out the solution. And its exactly the same as you mentioned above. I was also missing a date format.&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>Thu, 07 Mar 2013 22:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Variable-Expansion-in-set-expression/m-p/420620#M562278</guid>
      <dc:creator />
      <dc:date>2013-03-07T22:12:41Z</dc:date>
    </item>
  </channel>
</rss>

