<?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: how to resue expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-resue-expression/m-p/762286#M471473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use variables (ctrl+ alt + v) to store expression&lt;/P&gt;&lt;P&gt;and reuse in different charts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Mar 2015 13:54:34 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-03-08T13:54:34Z</dc:date>
    <item>
      <title>how to resue expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-resue-expression/m-p/762285#M471472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;( &lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt; ) / &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff;"&gt;distinct &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;MonthID &lt;/SPAN&gt;&amp;amp; '|' &amp;amp; &lt;SPAN style="color: #800000;"&gt;CustomerID &lt;/SPAN&gt;) is hard to read when analystics calculation gets complicated.&lt;/P&gt;&lt;P&gt;I am thinking to save this expression somewhere with a name "avg sales", then reuse it by invoking the name "avg sales" where I need?&lt;/P&gt;&lt;P&gt;Does Qlikview support and how if yes. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 13:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-resue-expression/m-p/762285#M471472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-08T13:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to resue expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-resue-expression/m-p/762286#M471473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use variables (ctrl+ alt + v) to store expression&lt;/P&gt;&lt;P&gt;and reuse in different charts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 13:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-resue-expression/m-p/762286#M471473</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-08T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to resue expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-resue-expression/m-p/762287#M471474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - you can put the expression in a variable and in the place of the expression in your Sheet Object you can use $-sign expansion to evaluate the contents of the variable so it calculates the expression contained in the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable can be declared in your load script or via the user interface menu: Settings/Variables Overview/Add or the menu: Settings / Document Properties / Variables Tab / New.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg_sales = '&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ) / &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;distinct &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MonthID &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;amp; '|' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;CustomerID &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use this variable like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(avg_sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In various places in Sheet Objects that allow expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 15:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-resue-expression/m-p/762287#M471474</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-03-08T15:27:09Z</dc:date>
    </item>
  </channel>
</rss>

