<?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: formula in variable on Variable Overview not working... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/formula-in-variable-on-Variable-Overview-not-working/m-p/825509#M290770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gysbert,&lt;/P&gt;&lt;P&gt;Thanks for you reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually this formula i have to used in a Calculated Dimensional in many places so i want to make it as variable, and used it when needed in different different charts/tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 11:14:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-13T11:14:40Z</dc:date>
    <item>
      <title>formula in variable on Variable Overview not working...</title>
      <link>https://community.qlik.com/t5/QlikView/formula-in-variable-on-Variable-Overview-not-working/m-p/825507#M290768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a formula which i have to used many places in my Qlikview application the formula is&amp;nbsp; : &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;aggr((sum(TRADE_VALUE)/ count(DISTINCT TRADE_DATE))/10000000, MEMBER_NAME)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Now what i am thing that in Variable overview i had created a variable of above mention formula and want to use that variable to other places . but it is not working please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this because it is returning multiple records ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 09:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-in-variable-on-Variable-Overview-not-working/m-p/825507#M290768</guid>
      <dc:creator />
      <dc:date>2014-11-13T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: formula in variable on Variable Overview not working...</title>
      <link>https://community.qlik.com/t5/QlikView/formula-in-variable-on-Variable-Overview-not-working/m-p/825508#M290769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;aggr((sum(TRADE_VALUE)/ count(DISTINCT TRADE_DATE))/10000000, MEMBER_NAME)&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you don't use an aggregation function around this expression it would return a virtual table, possible with more than one row, i.e. more than one value. That's probably why it's not working in your case. Try using an aggregation function around it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(&lt;/STRONG&gt; aggr((sum(TRADE_VALUE)/ count(DISTINCT TRADE_DATE))/10000000, MEMBER_NAME) &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 10:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-in-variable-on-Variable-Overview-not-working/m-p/825508#M290769</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-13T10:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: formula in variable on Variable Overview not working...</title>
      <link>https://community.qlik.com/t5/QlikView/formula-in-variable-on-Variable-Overview-not-working/m-p/825509#M290770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gysbert,&lt;/P&gt;&lt;P&gt;Thanks for you reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually this formula i have to used in a Calculated Dimensional in many places so i want to make it as variable, and used it when needed in different different charts/tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 11:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-in-variable-on-Variable-Overview-not-working/m-p/825509#M290770</guid>
      <dc:creator />
      <dc:date>2014-11-13T11:14:40Z</dc:date>
    </item>
  </channel>
</rss>

