<?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: Help for build a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570817#M212692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Derieve a field as&lt;/P&gt;&lt;P&gt;-----MonthYear=Month(Date)&amp;amp;'/'&amp;amp; yera(Date)&lt;/P&gt;&lt;P&gt;Then use calculated dimension as : 'SUM'&amp;amp;' ' &amp;amp; MonthYear&lt;/P&gt;&lt;P&gt;Now add the expressions as Sum(1),Sum(2),sum(3),,,,,,etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way you can get the one with Avg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 08:56:50 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2014-02-26T08:56:50Z</dc:date>
    <item>
      <title>Help for build a table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570816#M212691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a graph simple table with many expressions and i would like to do in another table the sum and the avg of the values that stand in the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, i have a table like this (the columns are expressions):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53834_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;And i want to get a second table like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53836_Capture2.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;How can i do this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Loïc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570816#M212691</guid>
      <dc:creator />
      <dc:date>2014-02-26T08:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help for build a table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570817#M212692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Derieve a field as&lt;/P&gt;&lt;P&gt;-----MonthYear=Month(Date)&amp;amp;'/'&amp;amp; yera(Date)&lt;/P&gt;&lt;P&gt;Then use calculated dimension as : 'SUM'&amp;amp;' ' &amp;amp; MonthYear&lt;/P&gt;&lt;P&gt;Now add the expressions as Sum(1),Sum(2),sum(3),,,,,,etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way you can get the one with Avg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570817#M212692</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-02-26T08:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help for build a table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570818#M212693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi loic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afaIk, it is not possible to directly reference a formula in another table - you have to actually write the formula. Then you can put any aggregation fct like sum() or avg() around it.&lt;/P&gt;&lt;P&gt;=&amp;gt; You just have to keep in mind the dimension:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - when the dimension is the same in both tables, your avg() will be calculated over the same range of values, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you're ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;=&amp;gt; Alternatively, you can use the aggr() function to simulate a dimension ("aggregate by (e.g. month)")&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570818#M212693</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-02-26T08:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help for build a table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570819#M212694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My colums 1, 2, ... are aleady exppressions with sum or avg.&lt;/P&gt;&lt;P&gt;But expressions like sum(sum(... or avg(sum(... don't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 09:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570819#M212694</guid>
      <dc:creator />
      <dc:date>2014-02-26T09:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help for build a table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570820#M212695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loïc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are not allowed to do sum(sum(... or nest twice an aggregation function : sum, avg, max ... You need to insert in the middle the aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a relation between dats and month (it should be), the expression with sum() should remain the same. Sales for ex. are completely additive. Sum(Sales), if your chart is not broken by days will sum up all the sales for the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as DataNibbler told you, you have to rewrite your expressions. For sum() it will be a simple copy/paste. For avg(), it will be more complicated or impossible: you need the aggr() function that does not accept a calculated dimension, and you will have a calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the png attached to see what I have done:&lt;/P&gt;&lt;P&gt;A calculated dimension: Valuelist('SUM', 'AVG') to get two rows&lt;/P&gt;&lt;P&gt;Expression 1 : if it is the first row then sum, if not average&lt;/P&gt;&lt;P&gt;in QV language: if(rowno()= 1, sum(XXX), sum(XXX)/count(Distinct Gamme))&amp;nbsp; //Gamme is my Dimension and XXX my measure&lt;/P&gt;&lt;P&gt;For each expression, you need to know by what number you will have to divide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570820#M212695</guid>
      <dc:creator />
      <dc:date>2014-02-26T10:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help for build a table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570821#M212696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just use that expression .&lt;/P&gt;&lt;P&gt;One thing you can do is that you can give me a sample with 9 or ten records by INLINE table load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-for-build-a-table/m-p/570821#M212696</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-02-26T10:42:00Z</dc:date>
    </item>
  </channel>
</rss>

