<?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: Aggregate Function in Script Editor in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076907#M932502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code,&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Ee_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(Distinct (Positions)) &amp;gt; 1, 1, 0) as Aggregate_Position_Field&lt;/P&gt;&lt;P&gt;Resident YourTableName&lt;/P&gt;&lt;P&gt;Group By Ee_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;Aggregate_Position_Field)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2016 10:44:22 GMT</pubDate>
    <dc:creator>engishfaque</dc:creator>
    <dc:date>2016-03-03T10:44:22Z</dc:date>
    <item>
      <title>Aggregate Function in Script Editor</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076906#M932501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does any of you please help me writing this code in a Script Level, I know I can do it with Group by but I dont see it clear how to. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;=SUM(IF(Aggr(Count(DISTINCT [Positions] ) ,[Ee_ID])&amp;gt;1,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo&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/Aggregate-Function-in-Script-Editor/m-p/1076906#M932501</guid>
      <dc:creator>pablomind</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function in Script Editor</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076907#M932502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a code,&lt;/P&gt;&lt;P&gt;---------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Ee_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(Distinct (Positions)) &amp;gt; 1, 1, 0) as Aggregate_Position_Field&lt;/P&gt;&lt;P&gt;Resident YourTableName&lt;/P&gt;&lt;P&gt;Group By Ee_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;Aggregate_Position_Field)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076907#M932502</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2016-03-03T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function in Script Editor</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076908#M932503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;try this one&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; font-size: 13px;"&gt;If(Count(Distinct (Positions)) &amp;gt; 1, 1, 0) as Aggregate_Position_Field&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076908#M932503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-03T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function in Script Editor</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076909#M932504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To complete the whole expression, I think then there is another step where he seem to be summing the 1's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Ee_ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(Distinct (Positions)) &amp;gt; 1, 1, 0) as Aggregate_Position_Field&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident YourTableName&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By Ee_ID;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Temp2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggregate_Position_Field) as ExpressionResult&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Resident Temp1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function-in-Script-Editor/m-p/1076909#M932504</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-03T10:52:19Z</dc:date>
    </item>
  </channel>
</rss>

