<?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 Use of Groups in an Aggregation Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-of-Groups-in-an-Aggregation-Function/m-p/1704569#M455620</link>
    <description>&lt;P&gt;Is ot possible to use groups in an expression with aggregated function?&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;=(if(GetSelectedCount(PROYECTO)&amp;gt;1,&lt;BR /&gt;Sum( Aggr(Count({Grupo_3&amp;lt; AGRUPACION_LP = {'Ligeros'}&amp;gt;} ID_TRANSIT) * Only(POND_TOTAL), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({Grupo_3&amp;lt;DUE = {'1'}&amp;gt;} Día),&lt;BR /&gt;if(IsNull(GetFieldSelections(PROYECTO)),&lt;BR /&gt;Sum( Aggr(Count({Grupo_3&amp;lt; AGRUPACION_LP = {'Ligeros'}&amp;gt;} ID_TRANSIT) * Only(POND_TOTAL), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({Grupo_3&amp;lt;DUE = {'1'}&amp;gt;} Día),&lt;BR /&gt;Sum( Aggr(Count({Grupo_3&amp;lt; AGRUPACION_LP = {'Ligeros'}&amp;gt;} ID_TRANSIT) * Only(POND_PROY), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({Grupo_3&amp;lt;DUE = {'1'}&amp;gt;} Día))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had already created the group_3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 17:39:20 GMT</pubDate>
    <dc:creator>alexdelagarza</dc:creator>
    <dc:date>2020-05-22T17:39:20Z</dc:date>
    <item>
      <title>Use of Groups in an Aggregation Function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Groups-in-an-Aggregation-Function/m-p/1704569#M455620</link>
      <description>&lt;P&gt;Is ot possible to use groups in an expression with aggregated function?&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;=(if(GetSelectedCount(PROYECTO)&amp;gt;1,&lt;BR /&gt;Sum( Aggr(Count({Grupo_3&amp;lt; AGRUPACION_LP = {'Ligeros'}&amp;gt;} ID_TRANSIT) * Only(POND_TOTAL), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({Grupo_3&amp;lt;DUE = {'1'}&amp;gt;} Día),&lt;BR /&gt;if(IsNull(GetFieldSelections(PROYECTO)),&lt;BR /&gt;Sum( Aggr(Count({Grupo_3&amp;lt; AGRUPACION_LP = {'Ligeros'}&amp;gt;} ID_TRANSIT) * Only(POND_TOTAL), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({Grupo_3&amp;lt;DUE = {'1'}&amp;gt;} Día),&lt;BR /&gt;Sum( Aggr(Count({Grupo_3&amp;lt; AGRUPACION_LP = {'Ligeros'}&amp;gt;} ID_TRANSIT) * Only(POND_PROY), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({Grupo_3&amp;lt;DUE = {'1'}&amp;gt;} Día))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had already created the group_3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 17:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Groups-in-an-Aggregation-Function/m-p/1704569#M455620</guid>
      <dc:creator>alexdelagarza</dc:creator>
      <dc:date>2020-05-22T17:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Groups in an Aggregation Function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Groups-in-an-Aggregation-Function/m-p/1704575#M455621</link>
      <description>&lt;P&gt;Just clarifying,&lt;/P&gt;&lt;P&gt;Instead of groups I wanted to say States, in other words, I have created two states named Grupo_3 and Grupo_4 , and I want to use them in the expressions but is not working, I wonder if th problem is that I'm using n aggregted function.&lt;/P&gt;&lt;P&gt;Hope I was clear enough&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 18:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Groups-in-an-Aggregation-Function/m-p/1704575#M455621</guid>
      <dc:creator>alexdelagarza</dc:creator>
      <dc:date>2020-05-22T18:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Groups in an Aggregation Function</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Groups-in-an-Aggregation-Function/m-p/1704608#M455622</link>
      <description>&lt;P&gt;Well, I did it by myself hehe!&lt;/P&gt;&lt;P&gt;Here's the solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=(if(GetSelectedCount(PROYECTO)&amp;gt;1,&lt;BR /&gt;Sum({Grupo_2} Aggr(Count( {Grupo_2}ID_TRANSIT) * Only({Grupo_2}POND_TOTAL), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({&amp;lt;DUE = {'1'}&amp;gt;} Día),&lt;BR /&gt;if(IsNull(GetFieldSelections(PROYECTO)),&lt;BR /&gt;Sum({Grupo_2} Aggr(Count({Grupo_2} ID_TRANSIT) * Only({Grupo_2}POND_TOTAL), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({&amp;lt;DUE = {'1'}&amp;gt;} Día),&lt;BR /&gt;Sum({Grupo_2} Aggr(Count( {Grupo_2}ID_TRANSIT) * Only({Grupo_2}POND_PROY), FECHAT, PROYECTO, DESCRIPCION))/&lt;BR /&gt;COUNT({&amp;lt;DUE = {'1'}&amp;gt;} Día))))&lt;/P&gt;&lt;P&gt;Here's the result.-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexdelagarza_0-1590192228527.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34233iFA5D2AC73815A2B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexdelagarza_0-1590192228527.png" alt="alexdelagarza_0-1590192228527.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 00:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Groups-in-an-Aggregation-Function/m-p/1704608#M455622</guid>
      <dc:creator>alexdelagarza</dc:creator>
      <dc:date>2020-05-23T00:03:57Z</dc:date>
    </item>
  </channel>
</rss>

