<?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: Need to in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630440#M1087650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an additional question, I understand the need to create the aggr additional table, but I still don't understand why we need to add the SUM term at the beginning of the statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(AGGR(Sales, Territory, State)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't this sum all the records by territory and not by State??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 19:46:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-28T19:46:21Z</dc:date>
    <item>
      <title>Need to</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630434#M1087644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikview Community, I need your help to create a new object in one of my dashboards, I'm a QV beginner and I'm trying to create a new metric in a straight table but I can't find the right expression to populate the % of states Declining. The main issue is that the table has territory as Dimension and the metric is calculated for the % of states within that territory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;This is the output that I'm trying to create:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 276px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Territory&lt;/TD&gt;&lt;TD width="74"&gt;Growth(%)&lt;/TD&gt;&lt;TD width="138"&gt;% of States Declining&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Nation&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;0%&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="color: #ff0000;"&gt;=2/5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;North&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;100%&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="color: #ff0000;"&gt;=0/3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;South&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;-67%&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="color: #ff0000;"&gt;=2/2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I was able to show the growth in sales by Territory and now I'm trying to add a metric that represents the percentage of states within that region that have been declining in growth. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example&lt;/STRONG&gt;: &lt;/P&gt;&lt;P&gt;-Northern territory has 3 states (A,B,C) and non of them has decline it's growth, that value that i wan to show is &lt;SPAN style="color: #ff0000;"&gt;0%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Southern territory has 2 states(D,E) and all of them have been declining their growth, the value that I wan to show is &lt;SPAN style="color: #ff0000;"&gt;100% or (2/2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- The nation has 5 states (A-E) and 2 out of 5 have been declining their growth, the value that I want to show is &lt;SPAN style="color: #ff0000;"&gt;40%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is how my raw data looks like&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Each row is a record for the sales for a state with a year attribute and a sales metric where we have duplicated entries for each territory. &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="163.66666662693024" style="width: 340px; height: 167.66666662693024px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="35" width="64"&gt;Territory&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="74"&gt;State&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="138"&gt;Year&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;North&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;North&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2014&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;North&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;North&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;C&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;North&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;North&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;North&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;C&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;South&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;D&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="text-align: left;" width="64"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;South&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;E&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;South&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;D&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="text-align: left;" width="64"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;" width="64"&gt;South&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="74"&gt;E&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have additional questions, your help will be much appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to/m-p/630434#M1087644</guid>
      <dc:creator />
      <dc:date>2014-05-28T08:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need to</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630435#M1087645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example attached, your data doesnt include nation but this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felim&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to/m-p/630435#M1087645</guid>
      <dc:creator />
      <dc:date>2014-05-28T08:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630436#M1087646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the Growth % calculated? Is it only for Current and Previous Year sales?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to/m-p/630436#M1087646</guid>
      <dc:creator />
      <dc:date>2014-05-28T08:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630437#M1087647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,growth is only calculated for the current and previous year with the expression pasted below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;[Year]={$(=Max([Year]))}&amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sum({&amp;lt;[Year]={$(=Max([Year]-1))}&amp;gt;}[Sales])&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Year]={$(=Max([Year]-1))}&amp;gt;}[Sales])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to/m-p/630437#M1087647</guid>
      <dc:creator />
      <dc:date>2014-05-28T08:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630438#M1087648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diego the attachment above should answer your issue &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to/m-p/630438#M1087648</guid>
      <dc:creator />
      <dc:date>2014-05-28T08:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630439#M1087649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!!, this is working now!! My data doesn't include nation but it just supposed to be the sum of both territories. Your help is much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to/m-p/630439#M1087649</guid>
      <dc:creator />
      <dc:date>2014-05-28T08:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need to</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to/m-p/630440#M1087650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an additional question, I understand the need to create the aggr additional table, but I still don't understand why we need to add the SUM term at the beginning of the statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(AGGR(Sales, Territory, State)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't this sum all the records by territory and not by State??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 19:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to/m-p/630440#M1087650</guid>
      <dc:creator />
      <dc:date>2014-05-28T19:46:21Z</dc:date>
    </item>
  </channel>
</rss>

