<?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 calculating two different result from different charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841537#M295738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello comunity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qvw.file and need a solution for my problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you open the file you will see three straight charts.&lt;/P&gt;&lt;P&gt;i want to mulitply the result of&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gew. Zins =110,13%&amp;nbsp; from straight chart 1 with the result of&amp;nbsp; durchschn. Kosten from straight 3 and call the result of both "general cost"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after i want to subtract the result of Gesamtkosten. zzgl ZV with the result of general cost and call it "New Cost"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me out here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am a qvw debutant. i know that a solution would be manipulating the script. but actually i am not an expert in set anaylsis. so if anyone could attached me a solution with some explanations, that would be great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 10:13:50 GMT</pubDate>
    <dc:creator>thanhphongle</dc:creator>
    <dc:date>2015-06-17T10:13:50Z</dc:date>
    <item>
      <title>calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841537#M295738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello comunity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qvw.file and need a solution for my problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you open the file you will see three straight charts.&lt;/P&gt;&lt;P&gt;i want to mulitply the result of&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gew. Zins =110,13%&amp;nbsp; from straight chart 1 with the result of&amp;nbsp; durchschn. Kosten from straight 3 and call the result of both "general cost"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after i want to subtract the result of Gesamtkosten. zzgl ZV with the result of general cost and call it "New Cost"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me out here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am a qvw debutant. i know that a solution would be manipulating the script. but actually i am not an expert in set anaylsis. so if anyone could attached me a solution with some explanations, that would be great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 10:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841537#M295738</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-17T10:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841538#M295739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't reference values in another chart. You'll have to use the same expressions to calculate that value again. To make things easier you can put expressions in variables. You can then use those variables in expressions. That allows you to reuse expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vInvVolumen: sum([Selling price])&lt;/P&gt;&lt;P&gt;vAnteil: $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vInvVolumen&lt;/SPAN&gt;)/sum(total [Selling price])&lt;/P&gt;&lt;P&gt;vGesamtkosten: (1+$(vVerzinsungsberechnung))*$(vInvVolumen)&lt;/P&gt;&lt;P&gt;v&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Verzinsungsberechnung: ...etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vGewZins: $(vAnteil)*$(vGesamtkosten)/only([Selling price])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression gew.Zins: =$(vGewZins)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841538#M295739</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-17T12:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841539#M295740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"You'll have to use the same expressions to calculate that value again"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to reput the expressions from straight chart 1-3 in a new straight chart. but it does not valclulate the correct value. i dont really know y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so do I have to put the expressions in variables in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841539#M295740</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-17T12:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841540#M295741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and if i have to set the expression as variables in script, how can i exactly put it in the script. i m sorry for those detailed question, i m still a beginner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841540#M295741</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-17T12:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841541#M295742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to create the variables in the script. You can use the Variable Overview from the Settings menu (ctrl+alt+v). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841541#M295742</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-17T13:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841542#M295743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh ok, Ill try it and let you know if it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841542#M295743</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-17T13:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841543#M295744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your third straight table has only two dimensions. The other two have four. You can add those missing dimensions to your third straight table. Then the expressions should calculate the same values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841543#M295744</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-17T13:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841544#M295745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i create a new variable , do i have to to select "Input Contraints" -&amp;gt; "Custom" and add there my expression?&lt;/P&gt;&lt;P&gt;because sometimes when i add the expression as value, it disappears.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841544#M295745</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-17T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841545#M295746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. You don't have to set constraints if you use the Variable Overview dialog from the Settings menu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841545#M295746</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-17T13:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841546#M295747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Your third straight table has only two dimensions. The other two have four. You can add those missing dimensions to your third straight table. Then the expressions should calculate the same values."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a qvw file and followed your instructions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you look at the straight chart 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[gew.Zins]=110.13%&lt;/P&gt;&lt;P&gt;durchschn. Kosten= 804440 €&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i added a new expression called Überzahlung and normally the result should be&lt;/P&gt;&lt;P&gt;Überzahlung=[durchschn. Kosten]*[gew.Zins]= 885929,772&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but QV calculates me 12164.17. and thats wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841546#M295747</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-17T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841547#M295748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed your instruction and tried to set the variables in the setting. it still doesnt work. &lt;/P&gt;&lt;P&gt;i created a new straight table called DURCHSCH. KOSTEN right at the bottom. the result should be 80440,00 EUR but it returns 0. what have i done wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attached a new file "reedit2" could you check this out for me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841547#M295748</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-17T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841548#M295749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't add any dimensions to that table. That's possible, but then you'll have to sum the values over those &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;dimensions: =sum(aggr($(vdurchschnKosten),Kaufschein,[Serial Number],Position,Subposition))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you need to remove the = sign in front of the expressions in the variables. Otherwise they won't be calculated in the context of the chart where they're used, but on the document level, i.e. without considering any dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841548#M295749</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-17T15:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841549#M295750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm still doesnt work, could you attach me a qvw file with your solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 08:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841549#M295750</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-19T08:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841550#M295751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 09:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841550#M295751</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-19T09:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: calculating two different result from different charts</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841551#M295752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached a new qv file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created my variables by following your instructions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to return vGewZins in an expression, so the expression should be like this?&lt;/P&gt;&lt;P&gt;=sum(aggr($(vGewZins),Kaufschein,[Serial Number],Position,Subposition))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somehow it doesnt return me 106,42%&lt;/P&gt;&lt;P&gt;I m not sure where mistake is again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover if i want to mulitply vPVKosten with vGew.Zins in an expression, so it must be like this? -&amp;gt;&lt;/P&gt;&lt;P&gt;(sum(aggr($(vGewZins),Kaufschein,[Serial Number],Position,Subposition))) * (sum(aggr($(vPVKosten),Kaufschein,[Serial Number],Position,Subposition)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could u attach me your solution again, I m very thankful that you help me out here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 10:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-two-different-result-from-different-charts/m-p/841551#M295752</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2015-06-19T10:07:31Z</dc:date>
    </item>
  </channel>
</rss>

