<?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: Subtract an aggregation with record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183617#M383233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the number that you expect to see as a output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 17:18:57 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-06T17:18:57Z</dc:date>
    <item>
      <title>Subtract an aggregation with record</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183615#M383231</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;I have an requirement to do&amp;nbsp; a subtraction with an aggregation &lt;/P&gt;&lt;P&gt;Eg: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider&amp;nbsp; i have this record . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name,exam,qtr,m1,internal&lt;/P&gt;&lt;P&gt;xxxx,Monthly,q1,10,1&lt;/P&gt;&lt;P&gt;xxxx,Monthly,q1,20,2&lt;/P&gt;&lt;P&gt;xxxx,Monthly,q1,30,3&lt;/P&gt;&lt;P&gt;xxxx,Monthly,q1,40,4&lt;/P&gt;&lt;P&gt;xxxx,Monthly,q1,50,5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Expression should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(m1-min(m1)) * internal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i have done is i created one expression &lt;/P&gt;&lt;P&gt;MinM1 -&amp;gt; min(m1)&lt;/P&gt;&lt;P&gt;then i call this expression in my final expression like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(m1-&lt;SPAN style="font-size: 13.3333px;"&gt;MinM1&lt;/SPAN&gt;) * internal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but it's return in null. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;i agree i'm doing something stupid but this is expected behavior from my client end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can some one help me . I attached my Qlikview file&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 09:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183615#M383231</guid>
      <dc:creator />
      <dc:date>2016-09-27T09:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract an aggregation with record</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183616#M383232</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;Any one can help this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 11:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183616#M383232</guid>
      <dc:creator />
      <dc:date>2016-10-06T11:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract an aggregation with record</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183617#M383233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the number that you expect to see as a output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 17:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183617#M383233</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract an aggregation with record</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183618#M383234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in chart&lt;/P&gt;&lt;P&gt;i want the result like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rowno&amp;nbsp;&amp;nbsp;&amp;nbsp; name ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exam ,&amp;nbsp;&amp;nbsp;&amp;nbsp; qtr,&amp;nbsp;&amp;nbsp; expr&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxx ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monthly,&amp;nbsp; q1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;400 = &amp;gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(10-10)*1 + (20-10)*2&amp;nbsp;&amp;nbsp; ..etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;for this records&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;name,exam,qtr,m1,internal&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;xxxx,Monthly,q1,10,1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;xxxx,Monthly,q1,20,2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;xxxx,Monthly,q1,30,3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;xxxx,Monthly,q1,40,4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;xxxx,Monthly,q1,50,5&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks in Advance &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 17:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183618#M383234</guid>
      <dc:creator />
      <dc:date>2016-10-06T17:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract an aggregation with record</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183619#M383235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(m1*internal) - Min(TOTAL &amp;lt;name&amp;gt; Aggr(Sum(m1), name, exam)*internal)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139904_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 18:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183619#M383235</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T18:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract an aggregation with record</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183620#M383236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for my late response due to War&amp;nbsp; the communication got disconnected here .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks for your command . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forget to mention thats It's Ad-hoc report so it's should be work on different dimension and filter selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i remove name Field in chart the result little different i found the aggr function take only for name,exam&amp;nbsp; this cause issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached my expected result in Excel and Qlikview file. But the result will vary based on dimension selection and Filter selection .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This excel is for only name dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 11:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183620#M383236</guid>
      <dc:creator />
      <dc:date>2016-10-10T11:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract an aggregation with record</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183621#M383237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be helpful if you can lay out for us few different scenarios with there expected results. How are you adding/removing dimensions (in your ad-hoc report)? Using the technique specified here -? &lt;A href="https://community.qlik.com/qlik-blogpost/3564"&gt;Customizable Straight Table&lt;/A&gt;? or do you it differently. Provide some example so that we can help you better &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 15:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-an-aggregation-with-record/m-p/1183621#M383237</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T15:51:42Z</dc:date>
    </item>
  </channel>
</rss>

