<?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: Create a Calculated Dimension in Pivot Table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557517#M692172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not too sure how you would do that for specific weeks without creating a multitude of expressions. Although in a pivot table you can refer to the adjacent cell using the "Last" function. Look it up in the chart inter record functions in help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can thing of with the expression that you have would be to use something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(avg(unitssold), product, article, month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This would then calculate the average for the month that those weeks belonged too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Would that work for you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Andy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 10:33:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-06T10:33:22Z</dc:date>
    <item>
      <title>Create a Calculated Dimension in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557512#M692167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three dimensions. 'Product','ArticleNo','Week' and an expression 'Units Sold'. The table is pivoted on 'Week' dimension with 'Units Sold' is its measure of expression. Now I need to add average as a Calculated Dimension, which should calculate overall average of 'Units Sold'. Anyone, how can I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 06:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557512#M692167</guid>
      <dc:creator />
      <dc:date>2013-09-02T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Calculated Dimension in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557513#M692168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(avg(unitssold), product, article, week)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 06:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557513#M692168</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2013-09-02T06:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Calculated Dimension in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557514#M692169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;unitssold&lt;/SPAN&gt;)/Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;product=, article=, week=&lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;unitssold&lt;/SPAN&gt;). Try this I hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;S.Amuthabharathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 07:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557514#M692169</guid>
      <dc:creator />
      <dc:date>2013-09-02T07:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Calculated Dimension in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557515#M692170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What dimensions do you want to calculate the average over? You can use the TOTAL modifier to ignore dimensions in the chart for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average(TOTAL&amp;lt;Product, ArticleNo&amp;gt;Units Sold) will give you the average Units Sold calculated over the Product and Article dimensions only, ignoring the Week Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also just noticed in your original post you mentioned calculated dimension. Are you sure you want to calculate a dimension in this case or are you wanting to create an expression to calculate the average over a specific set of dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 07:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557515#M692170</guid>
      <dc:creator />
      <dc:date>2013-09-02T07:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Calculated Dimension in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557516#M692171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if i want average for, lets say, week 1 and 2. How do I do that, using below expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(avg(unitssold), product, article, week)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 08:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557516#M692171</guid>
      <dc:creator />
      <dc:date>2013-09-05T08:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Calculated Dimension in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557517#M692172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not too sure how you would do that for specific weeks without creating a multitude of expressions. Although in a pivot table you can refer to the adjacent cell using the "Last" function. Look it up in the chart inter record functions in help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I can thing of with the expression that you have would be to use something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(avg(unitssold), product, article, month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This would then calculate the average for the month that those weeks belonged too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Would that work for you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Andy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 10:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Calculated-Dimension-in-Pivot-Table/m-p/557517#M692172</guid>
      <dc:creator />
      <dc:date>2013-09-06T10:33:22Z</dc:date>
    </item>
  </channel>
</rss>

