<?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: Dynamic fields on Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355129#M131810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the Dimensionality() function?&lt;/P&gt;&lt;P&gt;This function returns the number of expanded dimensions in the pivot table.&lt;/P&gt;&lt;P&gt;You can use it to define If..else... statement in the Pivot table expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 20:04:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-15T20:04:18Z</dc:date>
    <item>
      <title>Dynamic fields on Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355126#M131807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to change the fields used on an Aggr function? I'd like to use it in a the dimension of a Pivot table and I'm having some trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I have 4 fields I'm using as dimensions - Field1, Field2, etc.&lt;/P&gt;&lt;P&gt;So I'm using (just to simplify) aggr(Number, Field1, Field2, Field3, Field4) as a part of a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, let's say I want to collapse one of the dimensions in the Pivot - let's say Dimension 3, so now I'll only be showing 3 dimensions, not 4. Is there a way to change the aggr function to only aggregate by what's open?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 15:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355126#M131807</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-06-15T15:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fields on Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355127#M131808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you using aggr in expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355127#M131808</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-06-15T19:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fields on Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355128#M131809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try with this type of approach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNull(Only(Field2)), Aggr(Number,Field1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNull(Only(Field3))), Aggr(Number, Field1, Field2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNull(Only(Field4)), Aggr(Number,Field1, Field2, Field3), Aggr(Number, Field1, Field2, Field3, Field4))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355128#M131809</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-06-15T19:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fields on Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355129#M131810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the Dimensionality() function?&lt;/P&gt;&lt;P&gt;This function returns the number of expanded dimensions in the pivot table.&lt;/P&gt;&lt;P&gt;You can use it to define If..else... statement in the Pivot table expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 20:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355129#M131810</guid>
      <dc:creator />
      <dc:date>2012-06-15T20:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fields on Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355130#M131811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dimensionality function looks like it might help, if there's a way to also get the field name for each level. Any idea if there's a function to return that value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355130#M131811</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-06-18T13:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic fields on Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355131#M131812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out that the dimensionality function won't work for me, as I need to use this is the dimension, not the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas on how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 13:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-fields-on-Aggr/m-p/355131#M131812</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-06-21T13:11:35Z</dc:date>
    </item>
  </channel>
</rss>

