<?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 from complex calculation expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-from-complex-calculation-expression/m-p/538782#M483409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try using Dollar sign expansion. &lt;/P&gt;&lt;P&gt;Your first test would be a straight table with no dimensions and your variable expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vVariable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general i find that variables only work in some cases, while dollar sign expanded variables always works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 23:09:00 GMT</pubDate>
    <dc:creator>calvindk</dc:creator>
    <dc:date>2013-07-03T23:09:00Z</dc:date>
    <item>
      <title>Variable from complex calculation expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-from-complex-calculation-expression/m-p/538780#M483407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have the following calculation which i wish to transform into a variable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([Förs pris] *&amp;nbsp; "Förs-kurs" * [Ursprungligt antal] * (1 + OrderRad_Rabatt) * (1+ OrderHuvud_Rabatt))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried creating the variable but am unable to reuse it in any expression, have i done something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 19:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-from-complex-calculation-expression/m-p/538780#M483407</guid>
      <dc:creator />
      <dc:date>2013-07-03T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable from complex calculation expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-from-complex-calculation-expression/m-p/538781#M483408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are differences in the way you create the variable, with or without an equal sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://www.qlikfix.com/2011/06/08/not-all-variables-are-created-equal/" title="http://www.qlikfix.com/2011/06/08/not-all-variables-are-created-equal/"&gt;http://www.qlikfix.com/2011/06/08/not-all-variables-are-created-equal/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also important, in which context you want to use the variable. Are you using it within an aggregation function like sum? If your variable expands to text, this will not work, since an aggregation function like your sum() is not allowed within another aggregation function without using advanced aggregation (i.e. the aggr() function).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 20:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-from-complex-calculation-expression/m-p/538781#M483408</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-03T20:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variable from complex calculation expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-from-complex-calculation-expression/m-p/538782#M483409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try using Dollar sign expansion. &lt;/P&gt;&lt;P&gt;Your first test would be a straight table with no dimensions and your variable expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vVariable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general i find that variables only work in some cases, while dollar sign expanded variables always works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 23:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-from-complex-calculation-expression/m-p/538782#M483409</guid>
      <dc:creator>calvindk</dc:creator>
      <dc:date>2013-07-03T23:09:00Z</dc:date>
    </item>
  </channel>
</rss>

