<?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: Substraction in Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614385#M1113618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for using multiple expressions based on the selection of Cycle Group values then you can use Chart Expression Conditional option.&lt;/P&gt;&lt;P&gt;Example below:&lt;/P&gt;&lt;P&gt;I've a group named as NG having two fields Country and Category.&lt;/P&gt;&lt;P&gt;Whenever I select Country from the Cyclic Group I want the sum(no_of_players) to be displayed&lt;/P&gt;&lt;P&gt;Whenever I select Category from the Cyclic Group I want the sum(no_of_players)+100 to be displayed&lt;/P&gt;&lt;P&gt;&lt;IMG alt="T109911.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/54512_T109911.png" style="width: 620px; height: 368px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 13:37:18 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2014-03-07T13:37:18Z</dc:date>
    <item>
      <title>Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614381#M1113614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve two expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vChooseYear1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderPhase_Desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vOrderPhaseDesc)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NettAmount&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vCurrency)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vChooseYear2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'&amp;lt;=$(vFDay)'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderPhase_Desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vOrderPhaseDesc)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NettAmount&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vCurrency)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now I would like to calculate the difference between these two expressions. Up to now I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(5) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(6) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But as I´ve several expression in my chart and I also would like to use the conditional display Column 5 - Column 6 will not work does not work because if the condition excludes an expression before then Qlik View doesn´t recognize this which means that another expression is then column 5 and 6 and I get incorrect values. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there any possibility to e.g. give a name to an expression and then calculate with it or anything else?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Carolin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614381#M1113614</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-07T12:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614382#M1113615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put the original expressions in variables and use the variables in your chart expressions instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable vExp1: &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;$(vChooseYear1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;OrderPhase_Desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;$(vOrderPhaseDesc)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;NettAmount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;$(vCurrency)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Variable vExp2&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;: &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;FYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;$(vChooseYear2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;FDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = {'&amp;lt;=$(vFDay)'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;OrderPhase_Desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;$(vOrderPhaseDesc)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;NettAmount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;$(vCurrency)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Column 5: $(vExp1)&lt;/P&gt;&lt;P&gt;Expression for Column 6: $(vExp2)&lt;/P&gt;&lt;P&gt;Expression for Column 7: $(vExp1) - $(vExp2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614382#M1113615</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-07T13:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614383#M1113616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is defintely a good idea and will help me for the futur to create charts much faster.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot 4.gif" class="jive-image" src="/legacyfs/online/54609_Screenshot 4.gif" /&gt;&lt;/P&gt;&lt;P&gt;There is just one problem that you can see from my screenshot:&lt;/P&gt;&lt;P&gt;I´m using a cyclic group in that straight table as well. I´m not sure how I have to change my formula &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614383#M1113616</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-07T13:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614384#M1113617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example document that demonstrates the problem? This document may help creating such a document: &lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="1290" data-objecttype="102" href="https://community.qlik.com/docs/DOC-1290" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614384#M1113617</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-07T13:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614385#M1113618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for using multiple expressions based on the selection of Cycle Group values then you can use Chart Expression Conditional option.&lt;/P&gt;&lt;P&gt;Example below:&lt;/P&gt;&lt;P&gt;I've a group named as NG having two fields Country and Category.&lt;/P&gt;&lt;P&gt;Whenever I select Country from the Cyclic Group I want the sum(no_of_players) to be displayed&lt;/P&gt;&lt;P&gt;Whenever I select Category from the Cyclic Group I want the sum(no_of_players)+100 to be displayed&lt;/P&gt;&lt;P&gt;&lt;IMG alt="T109911.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/54512_T109911.png" style="width: 620px; height: 368px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614385#M1113618</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-03-07T13:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614386#M1113619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carolin,&lt;/P&gt;&lt;P&gt;why not use the labels of your expressions for the subtraction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the picture below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Subtraction.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/54505_Subtraction.jpg" /&gt;&lt;/P&gt;&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 14:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614386#M1113619</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-03-07T14:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614387#M1113620</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;If I could use lables for my calculation then this would be perfect. I use the following formula to create my lables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Label 1 for column 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;='YTD $(vChooseYear1)' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label 2 for column 6&lt;/P&gt;&lt;P&gt;='YTD $(vChooseYear2)' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='YTD $(vChooseYear1)' - 'YTD $(vChooseYear2)' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn´t work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using variables for to calculate the sums Gysbert suggested is actually also a good idea. The problem is just that as soon as you insert the variable as formula it gets automatically calculated immediately. And that means that the variable is automatically the total, e.g. 500,000 as from my screenshot above. If I then use in the chart as expression =Variable xy then it shows always the 500,000. Maybe there is an option to delay the calculation of the variable until it is used in the expression of the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Carolin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614387#M1113620</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-10T07:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614388#M1113621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see Carolin,&lt;/P&gt;&lt;P&gt;then you better use the 'variable' solution. Variables are calculated at once only if you define them with a leading '=' sign. Without the '=' they are calculated in the expression inside the dollar sign expansion. &lt;/P&gt;&lt;P&gt;Please try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 08:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614388#M1113621</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-03-10T08:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Substraction in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614389#M1113622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Burkhard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for helping me with the solution. I then changed my formula in the expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(=vCalcYTDYear1) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;And then it worked well. Thank you Gysbert for the idea. I will use the variable now as "formula generator". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;Carolin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 11:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substraction-in-Straight-Table/m-p/614389#M1113622</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-11T11:34:26Z</dc:date>
    </item>
  </channel>
</rss>

