<?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: expression as variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890504#M655799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem1:&lt;/P&gt;&lt;P&gt;I created a variable called "vInvestitionsvolumen" and put in as Value sum([Selling Price])&lt;/P&gt;&lt;P&gt;isnt it correct like this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 2:&lt;/P&gt;&lt;P&gt;so I remove the aggregation function and leave it only to vInvestitionsvolumen.&lt;/P&gt;&lt;P&gt;but how can i return "vInvestitionsvolumen" in a straight chart? I dont know the correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 3:&lt;/P&gt;&lt;P&gt;which third parameter is missing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 4:&lt;/P&gt;&lt;P&gt;Someone told me to create the variable globally in order to operate with them. I attached a new qvw File called "TEST" My intention was to multiply the result of "durchschn. Kosten" from&amp;nbsp; straight table 3 with "gew. Zins" from straight table 1. and after i want to substract "Gesamtkosten zzgl ZV" from the result before. but somehow i still cant manage it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment you are pointing on my mistakes which I really appreciate. but is it possible if u attach me a solution of my problem? I am a QV beginner. I m really sorry if I bother you with that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 14:33:17 GMT</pubDate>
    <dc:creator>thanhphongle</dc:creator>
    <dc:date>2015-06-24T14:33:17Z</dc:date>
    <item>
      <title>expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890495#M655790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello Community,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;these are my tables which I load in my script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;MAP_PV:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;Mapping LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg_PV_for_Category&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;[B-Basisdaten.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;(ooxml, embedded labels, table is Kategorien);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;MAP_Zins:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;Mapping LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Periode,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Zins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;FROM &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;[B-Basisdaten.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;(ooxml, embedded labels, table is Zinsdaten);&lt;/SPAN&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;SPAN style="color: #993300;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ([Payment (Asset) p. m.]/[Selling price])*100 as Leasingfaktor, //created field Leasingfaktor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('MAP_PV', Category) as avg_PV_for_Category,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('MAP_Zins',[Lease start date]) as Zins; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;Directory;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;LOAD [Lease No] as Kaufschein, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Position,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subposition,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manufacturer as Hersteller,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Serial Number], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model as Anlagebezeichnung,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Lease start date], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Scheduled lease end date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Actual lease end],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost centre (asset)] as Kostenstelle, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Location of installation] as Standort, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Selling price], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Payment (Asset) p. m.],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currency, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leasinggeber as Region, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Technologie as Kategorie&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;[A-Import_LPM.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;where [Payment (Asset) p. m.]&amp;gt;0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;let vAuswertungsdatum = today();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;Join (Data)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;If(AvgLeasingfaktor&amp;gt;=1.5 and AvgLeasingfaktor &amp;lt; 2.0, '60 Monate',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;If(AvgLeasingfaktor&amp;gt;=2.0 and AvgLeasingfaktor &amp;lt; 2.4, '48 Monate',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;If(AvgLeasingfaktor &amp;gt;=2.4, '36 Monate','Festkontraktierte Verlängerung')))as Zuordnung;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;LOAD Category,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Zins,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg(Leasingfaktor) as AvgLeasingfaktor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;Resident Data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;Group By Category,Zins;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;What I actually want to do is to operate serveral results of an expression. For example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;If I have two different charts with different results&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;sum([Selling price]) = 1000 = I call the expression "Investment"&amp;nbsp; -&amp;gt; 1. Chart&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;avg_PV_for_Category*sum([Selling price]) = 10000 = I call the expression "PV Kosten" -&amp;gt;&amp;nbsp; 2. Chart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;What I'd like to do is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Investment+PVKosten=11000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I know that I have to define those expression as variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;So I have to go to: Settings/Variables &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I put in the field "Value" sum([Selling price]) and give it the name "vInvestment"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;analog avg_PV_Category*sum([Selling price]) and give it the name "vPVKosten"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Now I create a straight table and want to operate (sum,multiply, substract etc). But I dont really know the syntax of how to put them in an expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Nothing happens if i just add the expression vInvestment+vPVKosten&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It returns me nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;So my questions are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;is the syntax correct if I define a new variable or do I have to add a "=" before the expression in the Valuefield?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum([Selling price])&amp;nbsp;&amp;nbsp; -&amp;gt; vInvestment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;what is the syntax to operate different expressions which are defined as variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;-&amp;gt; vInvestment+vPVKosten ? (definetly this is the wrong syntax)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;And is it possible to use variables in variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I defined my variable sum([Selling price]) as vInvestment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I'd like to redefine my variable vPVKosten to&amp;nbsp; avg_PV_Category*vInvestment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;here I used my variable which I defined before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I m a beginner in QV it would be great if you exlpain or give me solutions as comprehensive as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 10:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890495#M655790</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-24T10:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890496#M655791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 11:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890496#M655791</guid>
      <dc:creator>vvvvvvizard</dc:creator>
      <dc:date>2015-06-24T11:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890497#M655792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed the instruction of "The Little Equals Sign"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ceated the variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vInvestitionsvolumen -&amp;gt; =sum([Selling prices])&lt;/P&gt;&lt;P&gt;vPVKosten -&amp;gt; =avg_PV_Category*$(vInvestionsvolumen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a straight table without any dimension&lt;/P&gt;&lt;P&gt;I created an expression called "New Cost"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; $(vInvestitionsvolumen)+$(vPVKosten)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it returns me nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where is my mistake?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 12:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890497#M655792</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-24T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890498#M655793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely because you have naked field reference in avg_PV_Category (an unaggregated field) and this returns NULL. See &lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would advice you to skip the variables - at least for the moment - and focus of your formula. Once you have a valid formula, it should be easy to put this in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 12:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890498#M655793</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-24T12:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890499#M655794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"I would advice you to skip the variables - at least for the moment - and focus of your formula. Once you have a valid formula, it should be easy to put this in a variable."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you exactly mean with valid formula?. My Qlikview knowledge is not that good. Could you give me an example as explanation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 12:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890499#M655794</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-24T12:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890500#M655795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and I even have the problem to return as expression my variable vInvestitionsvoumen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently asked for help in the forum how to give out my variable PVKosten. Someone had this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a straight table with no dimensions, create an expression.&lt;/P&gt;&lt;P&gt;(sum(aggr($(vPVKosten),Kaufschein,)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it really works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I tried the same with my variable vInvestitionsvolumen &lt;/P&gt;&lt;P&gt;(sum(aggr($(vInvestitionsvolumen),Kaufschein,)))&lt;/P&gt;&lt;P&gt;it returns me nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890500#M655795</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-24T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890501#M655796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems as if you want to calculate something like&lt;/P&gt;&lt;P&gt;&amp;nbsp; avg_PV_Category * sum([Selling prices])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, then you should create a pivot table with this as expression. You should also add a second expression using just sum([Selling prices]) as a test. Further, you should also add some dimension (Month, Category, Region, or some other field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably your first expression will not work since you use a naked field reference. So you need to figure out what to use instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Avg(avg_PV_Category) * sum([Selling prices])&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp; Min(avg_PV_Category) * sum([Selling prices])&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum(avg_PV_Category * [Selling prices])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890501#M655796</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-24T13:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890502#M655797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; Avg(avg_PV_Category) * sum([Selling prices])&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp; Min(avg_PV_Category) * sum([Selling prices])&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum(avg_PV_Category * [Selling prices])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works fine if I type it down in a chart as expression.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i define expressions as variable and try to operate them in a chart. It does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a qvw file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this file i created the variable vGewZins, vPVKosten, vInvestionsvolumen&lt;/P&gt;&lt;P&gt;With the solution of others QV returns vPVKosten if i use this as expression (sum(aggr($(vPVKosten),Kaufschein,)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I only type down $(vPVKosten) it returns me 0. same for the other variables. !I m not sure if I really understood what you have been trying to tell me. But is it possible if you could have a look at my qvw file and make the changes directly so I can see the difference what I have done wrong so far?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890502#M655797</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-24T13:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890503#M655798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem 1:&lt;/P&gt;&lt;P&gt;You use a variable "vInvVolumen" which is not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 2:&lt;/P&gt;&lt;P&gt;You have an expression "Sum($(vInvestitionsvolumen))", but the "vInvestitionsvolumen" is defined as "=sum([selling price])". Hence, you have an aggregation function inside another aggregation function. This is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 3:&lt;/P&gt;&lt;P&gt;You have an Aggr() with a missing third parameter: "aggr($(vPVKosten),Kaufschein,)". This could cause problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 4:&lt;/P&gt;&lt;P&gt;The variable "vInvestitionsvolumen" is defined as "=sum([selling price])", which means that it is calculated globally outside the chart. Then it is not sensible to use it inside the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890503#M655798</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-24T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890504#M655799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem1:&lt;/P&gt;&lt;P&gt;I created a variable called "vInvestitionsvolumen" and put in as Value sum([Selling Price])&lt;/P&gt;&lt;P&gt;isnt it correct like this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 2:&lt;/P&gt;&lt;P&gt;so I remove the aggregation function and leave it only to vInvestitionsvolumen.&lt;/P&gt;&lt;P&gt;but how can i return "vInvestitionsvolumen" in a straight chart? I dont know the correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 3:&lt;/P&gt;&lt;P&gt;which third parameter is missing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 4:&lt;/P&gt;&lt;P&gt;Someone told me to create the variable globally in order to operate with them. I attached a new qvw File called "TEST" My intention was to multiply the result of "durchschn. Kosten" from&amp;nbsp; straight table 3 with "gew. Zins" from straight table 1. and after i want to substract "Gesamtkosten zzgl ZV" from the result before. but somehow i still cant manage it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment you are pointing on my mistakes which I really appreciate. but is it possible if u attach me a solution of my problem? I am a QV beginner. I m really sorry if I bother you with that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890504#M655799</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-24T14:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890505#M655800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are way too many dependencies for my liking... You just need to go through your formulas and find the errors. I have started in the attached app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A suggestion: Don't put labels on the expressions until they work. In the image below, you can see that there is an error in the 5th expression - so you need to fix that variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90692_Image1.png" style="height: 90px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890505#M655800</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-24T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890506#M655801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant open the png file. it says that i dont have the permission&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890506#M655801</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-24T15:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890507#M655802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 18:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890507#M655802</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-24T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: expression as variable</title>
      <link>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890508#M655803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much for your help. I gonna check this out on monday. I m currently not in the office.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 10:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-as-variable/m-p/890508#M655803</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-26T10:23:25Z</dc:date>
    </item>
  </channel>
</rss>

