<?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: Sum(Aggr(PD * Count(PD),PD)) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167037#M912193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr statement is similar to sql group by.. if you are familiar with sql.&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; font-size: 13px;"&gt;PD * Count(PD) seems to be wrong..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;select&amp;nbsp; PD,Count(Your Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group by (PD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 07:34:30 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2016-06-10T07:34:30Z</dc:date>
    <item>
      <title>Sum(Aggr(PD * Count(PD),PD))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167033#M912189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;What is the meaning of this expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(PD * Count(PD),PD))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167033#M912189</guid>
      <dc:creator>arethaking</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(PD * Count(PD),PD))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167034#M912190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will simple count PD and aggregate it with the same.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Here 1 has occurred twice , so its 1*2=2&lt;/P&gt;&lt;P&gt;and 2 has occurred once so its 2*1=2&lt;/P&gt;&lt;P&gt;# has occurred twice so, 3*2=6&lt;/P&gt;&lt;P&gt;and so on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;PD&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127497_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 06:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167034#M912190</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-06-10T06:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(PD * Count(PD),PD))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167035#M912191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will simply count the PD and multiply with its count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 06:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167035#M912191</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-06-10T06:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(PD * Count(PD),PD))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167036#M912192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have sample data for this, you can create the straight table with Dimension &amp;amp; above expression and try to break the expression to understand how it's working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first see, what &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PD * Count(PD) is giving,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;then see, what&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr(PD * Count(PD),PD) is giving&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Finally see what is entire expression is giving&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 06:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167036#M912192</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-10T06:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(PD * Count(PD),PD))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167037#M912193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr statement is similar to sql group by.. if you are familiar with sql.&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; font-size: 13px;"&gt;PD * Count(PD) seems to be wrong..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;select&amp;nbsp; PD,Count(Your Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group by (PD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 07:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167037#M912193</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-06-10T07:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Aggr(PD * Count(PD),PD))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167038#M912194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a more complex (and less efficient) way to compute Sum(PD). For example, with this load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; PD&lt;/P&gt;&lt;P&gt;&amp;nbsp; .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; .1&lt;/P&gt;&lt;P&gt;&amp;nbsp; .2&lt;/P&gt;&lt;P&gt;&amp;nbsp; .2&lt;/P&gt;&lt;P&gt;&amp;nbsp; .3&lt;/P&gt;&lt;P&gt;&amp;nbsp; .3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(PD * Count(PD), PD)) = 3 * .1 + 2 * .2 + 2 * .3 = 1.3&lt;/P&gt;&lt;P&gt;Sum(PD) = (.1 + .1 + .1) + (.2 + .2) + (.3 + .3) = 1.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 07:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Aggr-PD-Count-PD-PD/m-p/1167038#M912194</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-10T07:47:35Z</dc:date>
    </item>
  </channel>
</rss>

