<?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 use Sum field twice in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146574#M25110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Michael is absolutly right, one remark tho,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when you make a duplicate of the field in tbale A and use it in all the expressions, it will only SUM the records in table A.&lt;/P&gt;&lt;P&gt;but since this field is in the key, it means it exists on other tables too.&lt;/P&gt;&lt;P&gt;you can duplicate them in other tables too, but if you need to SUM records from more then one table, then you would also have to make a seperate key to connect just these two tables (one new link for every new combination you would need in your layout).&lt;/P&gt;&lt;P&gt;there might be an easier way to do it in the layout but i havent given enough thoughts in that directon yet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 13:13:11 GMT</pubDate>
    <dc:creator>wizardo</dc:creator>
    <dc:date>2009-06-12T13:13:11Z</dc:date>
    <item>
      <title>use Sum field twice</title>
      <link>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146571#M25107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dashboard with multiple sheets and I have one very important field "Call_time" which I am using for SUM in every sheet on different charts. but ive noticed If I use that field for sum in one chart and if i try to use the same field in other charts it says.&lt;/P&gt;&lt;P&gt;"You have attempted to apply a numerical expression, which is not uniquely defined for the specified variable.&lt;BR /&gt;In order to use this variable in expressions relying on number of occurrences, please read it a second time under a new name from its primary table."&lt;/P&gt;&lt;P&gt;Please suggest the best way to use the same field in every chart for sum or avg purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 13:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146571#M25107</guid>
      <dc:creator />
      <dc:date>2009-06-11T13:20:37Z</dc:date>
    </item>
    <item>
      <title>use Sum field twice</title>
      <link>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146572#M25108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you upload sample document&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 13:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146572#M25108</guid>
      <dc:creator />
      <dc:date>2009-06-11T13:26:33Z</dc:date>
    </item>
    <item>
      <title>use Sum field twice</title>
      <link>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146573#M25109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently the problem is not that you're using a field on the multiple sheets, but is that you're using a key field in the expressions. Key field is a field that exists in more than one logical table, and links these tables. In general, it is not a good idea to use it in expressions, although sometimes it may work.&lt;BR /&gt;To resolve the problem, create a duplicate of this field in your script:&lt;BR /&gt;LOAD&lt;BR /&gt; Call_time,&lt;BR /&gt; Call_time as Ct // for example&lt;BR /&gt; ...&lt;BR /&gt;And, in expression use sum(Ct) instead of sum(Call_time)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 23:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146573#M25109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-11T23:21:51Z</dc:date>
    </item>
    <item>
      <title>use Sum field twice</title>
      <link>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146574#M25110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Michael is absolutly right, one remark tho,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when you make a duplicate of the field in tbale A and use it in all the expressions, it will only SUM the records in table A.&lt;/P&gt;&lt;P&gt;but since this field is in the key, it means it exists on other tables too.&lt;/P&gt;&lt;P&gt;you can duplicate them in other tables too, but if you need to SUM records from more then one table, then you would also have to make a seperate key to connect just these two tables (one new link for every new combination you would need in your layout).&lt;/P&gt;&lt;P&gt;there might be an easier way to do it in the layout but i havent given enough thoughts in that directon yet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 13:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-Sum-field-twice/m-p/146574#M25110</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2009-06-12T13:13:11Z</dc:date>
    </item>
  </channel>
</rss>

