<?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: Calculate Average Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612056#M544047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this expression: if(avg(total &amp;lt;Product&amp;gt; [%low sales])&amp;gt;95,'low performance','high performance')&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 15:46:03 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-04-23T15:46:03Z</dc:date>
    <item>
      <title>Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612054#M544045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table as below&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;%low sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/02/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/03/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/04/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;bcd&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;85&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;bcd&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/02/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;bcd&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/03/01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;bcd&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a chart that will take an avg of low sales and categories them as high performance and low performance based on avg % low sales and give me a product count&lt;/P&gt;&lt;P&gt;So, eg. if avg(&lt;STRONG&gt;%low sales) &amp;gt;95, low performance, high performance)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I cannot seem to get avg calculation working in the Dimension to create these categories to classify my product as low or&amp;nbsp; high... Please help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 15:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612054#M544045</guid>
      <dc:creator />
      <dc:date>2014-04-23T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612055#M544046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your Table you should have two Dimensions and two Expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions (in this order): &lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions (in this order):&lt;/P&gt;&lt;P&gt;AVG([%low sales])&lt;/P&gt;&lt;P&gt;if(AVG([%low sales]) &amp;gt; 95,'High Performance','Low Performance')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 15:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612055#M544046</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2014-04-23T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612056#M544047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this expression: if(avg(total &amp;lt;Product&amp;gt; [%low sales])&amp;gt;95,'low performance','high performance')&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 15:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612056#M544047</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-23T15:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612057#M544048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You need to specify the dimension to calculate averages. Please look at the first chart in example attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to categorize already existing %low sales, then look at the second chart. I used DUAL to have custom sort order for performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 15:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612057#M544048</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2014-04-23T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612058#M544049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;BR /&gt;&amp;nbsp; This was working but I need it the other way round, I need a chart that shows, High and low as dimension and a count of products that fall under each category&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 16:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612058#M544049</guid>
      <dc:creator />
      <dc:date>2014-04-23T16:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612059#M544050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darius, this might work but not in the current form. you see I have a %low for all days in the past 30 days. for 1000's of products. I want to get an average for the month for each product and them classify the products as low performance or high.&lt;BR /&gt;In the table, I do not need date. When I remove the date from Dimensions the numbers are not right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 16:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612059#M544050</guid>
      <dc:creator />
      <dc:date>2014-04-23T16:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612060#M544051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm the closest thing I could get was to have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimensions (in this order):&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Product&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expressions:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Label: &lt;STRONG&gt;High Performance: &lt;/STRONG&gt;If(AVG(total &amp;lt;Product&amp;gt; [%low sales])&amp;gt;95,Count(DISTINCT Product))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Label: &lt;STRONG&gt;Low Performance: &lt;/STRONG&gt;If(AVG(total &amp;lt;Product&amp;gt; [%low sales])&amp;lt;=95,Count(DISTINCT Product))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hope this helps point you in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612060#M544051</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2014-04-23T18:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612061#M544052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try to use the following expression for your dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=IF(AGGR(AVG([%low sales]), [Product]) &amp;gt; 95, 'High performance', 'Low performance')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Darius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Average-Dimensions/m-p/612061#M544052</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2014-04-23T18:51:29Z</dc:date>
    </item>
  </channel>
</rss>

