<?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: Refer to expression in other chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359643#M839598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;One way to do this ...add the expression definition to a variable and use the same variable in different charts this is the way to reuse the expression in different charts &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 06:49:50 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2017-05-04T06:49:50Z</dc:date>
    <item>
      <title>Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359639#M839594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to refer to an expression in an other chart? I can't reuse the same expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359639#M839594</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359640#M839595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the question here, I would say yes it is possible to use &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 14:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359640#M839595</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-03T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359641#M839596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean a function or method to read the results in one sheet object (chart/table/list) in another sheet object, then no, that is not possible. You have to re-enter the expression in the second object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I can't reuse the same expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Why not?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 14:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359641#M839596</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-05-03T14:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359642#M839597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I will explain why I can't simply reuse the same expression with a simple example.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the first chart, I divide sales by volume which gives me the unit price. I use a high level hierarchy dimension for this chart:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Knipsel.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162126_Knipsel.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second chart, I also divide the sales by volume to get the unit price, but now with another dimension, which is more in depth than the dimension in the first chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Knipsel2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/162127_Knipsel2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes the trick: I want to make an expression in the second chart that uses the unit price from the first chart (high level hierarchy).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 06:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359642#M839597</guid>
      <dc:creator />
      <dc:date>2017-05-04T06:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359643#M839598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;One way to do this ...add the expression definition to a variable and use the same variable in different charts this is the way to reuse the expression in different charts &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 06:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359643#M839598</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-04T06:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359644#M839599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your advice. How can I make sure that the variable is calculated based on product hierarchy level 1 when level 2 is also in the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 07:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359644#M839599</guid>
      <dc:creator />
      <dc:date>2017-05-04T07:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359645#M839600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;In this case you need to have an AGGR() on the Level 1 &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 07:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359645#M839600</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-04T07:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359646#M839601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I'm very new to QlikView, how should the code look? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 08:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359646#M839601</guid>
      <dc:creator />
      <dc:date>2017-05-04T08:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359647#M839602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(expression,Level1) this will aggr the sum on the Level1 respective of the other dimensions &lt;/P&gt;&lt;P&gt;NOTE: you need to have Level1 as the dimension in the chart &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 09:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359647#M839602</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-04T09:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359648#M839603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can reproduce the behavior of the first expression in the second chart using the TOTAL keyword and all dimension fields that should be ignored. See the aggregation function syntax here: &lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/BasicAggregationFunctions/sum.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/BasicAggregationFunctions/sum.htm"&gt;Sum - chart function ‒ QlikView&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it seems to me that summing the Fruit Sales and Volume values in the second chart doesn't produce values that match the same values in the first chart. Shouldn't they?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 09:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359648#M839603</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-04T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359649#M839604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW if you use a pivot table, you don't need two objects. A single pivot table can produce different values depending on which levels are expanded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 09:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359649#M839604</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-04T09:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359650#M839605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, the numbers that are summing the sales and volume should be the same as in chart 1 but I used random numbers so that's my mistake!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the idea, I think that the TOTAL will work for me, do you know how I can use this in my expression when also working with variables to divide sales by volume?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359650#M839605</guid>
      <dc:creator />
      <dc:date>2017-05-04T13:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359651#M839606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't like copying the data from a screenshot. Can you post the output of your second chart as text (or an xlsx)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359651#M839606</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-04T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359652#M839607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I now wrote this code in the variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( $(v_Sales) / $(v_Volume), Product Hierarchy level 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works, but not anymore when I click on a &lt;SPAN style="font-size: 13.3333px;"&gt;Product Hierarchy level 2. Is there anything I can do to change this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359652#M839607</guid>
      <dc:creator />
      <dc:date>2017-05-04T13:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359653#M839608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, check this one out (multiple solutions):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Refer to Expression in another chart thread259135.jpeg" class="jive-image image-1" src="/legacyfs/online/162210_Refer to Expression in another chart thread259135.jpeg" style="height: 412px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359653#M839608</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-04T13:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359654#M839609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to ignore the &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Product Hierarchy level 2&lt;/SPAN&gt; selection in the calculation ? then add the &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Product Hierarchy level 2 in set analysis with {&amp;lt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Product Hierarchy level 2&lt;/SPAN&gt;,rest_filter &amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 14:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359654#M839609</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-04T14:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359655#M839610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is what I want, where can I add this part of code to exclude level 2? It now looks like this: &lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;aggr( $(v_Sales) / $(v_Volume), Product Hierarchy level 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 14:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359655#M839610</guid>
      <dc:creator />
      <dc:date>2017-05-04T14:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to expression in other chart</title>
      <link>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359656#M839611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;v_Sales = you have the definition for this variable rite ? e.g sum(sales )? then try like this sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Product Hierarchy level 2=&lt;/SPAN&gt;}Sale)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 14:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Refer-to-expression-in-other-chart/m-p/1359656#M839611</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-04T14:41:57Z</dc:date>
    </item>
  </channel>
</rss>

