<?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: AGGR with selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-with-selections/m-p/457409#M484272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't specify an aggregation function to use in the aggr, so the default only() function is used. That most likely causes the aggr function to return only nulls.&lt;/P&gt;&lt;P&gt; Possibly you don't need the aggr at all, but it's impossible to tell without looking at the qvw document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 15:28:35 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-06-10T15:28:35Z</dc:date>
    <item>
      <title>AGGR with selections</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-with-selections/m-p/457408#M484271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=sum(&amp;nbsp; $(vFiltroStockA)&amp;nbsp; EstadoUnidad = {'Sin Asignar'},&amp;nbsp; VariableNombre = {'Linea Barco'}, [Tipo Unidad] = {'Propias'} &amp;gt;}&amp;nbsp; aggr(if(num(LBMes) &amp;lt;&amp;gt; num(month(today()))&amp;nbsp; and num(LBMes) &amp;lt;&amp;gt; num(month(today())-1) and ReservaDiaSTOCK = 1, costoUnidades.costoUnidadQV&amp;nbsp; ),IDFabrica&lt;/TD&gt;&lt;TD&gt;))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vFiltroStockA) = filters for selection (do nothing when fields are selected) example: EMPRESA_0km = ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problems is when select something in EMPRESA_0km field, aggr return 0... i dont know how to use aggr with selections, help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-with-selections/m-p/457408#M484271</guid>
      <dc:creator />
      <dc:date>2013-06-10T15:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR with selections</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-with-selections/m-p/457409#M484272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't specify an aggregation function to use in the aggr, so the default only() function is used. That most likely causes the aggr function to return only nulls.&lt;/P&gt;&lt;P&gt; Possibly you don't need the aggr at all, but it's impossible to tell without looking at the qvw document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-with-selections/m-p/457409#M484272</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-10T15:28:35Z</dc:date>
    </item>
  </channel>
</rss>

