<?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 Can AGGR dimension be dynamic? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71916#M11860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with a linear guage (bar) for the measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three dimensions: region, manager, salesrep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX(AGGR(sum(sales),salesrep)) yields the max metric across all employees but I want the max for salesrep under the manager under the region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same for the other dimensions.&amp;nbsp; If the pivot only shows region, the max should be for the region, not the sales rep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a few variations with dimensionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX(AGGR(sum(sales),PICK(DIMENSIONALITY(),region,manager,salesrep)))&lt;/P&gt;&lt;P&gt;but this often resulted in Max Value appearing on all the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is only one dimension its simple but what needs to be done for multiple dimensions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2018 17:38:00 GMT</pubDate>
    <dc:creator>markp201</dc:creator>
    <dc:date>2018-06-07T17:38:00Z</dc:date>
    <item>
      <title>Can AGGR dimension be dynamic?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71916#M11860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with a linear guage (bar) for the measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three dimensions: region, manager, salesrep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX(AGGR(sum(sales),salesrep)) yields the max metric across all employees but I want the max for salesrep under the manager under the region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same for the other dimensions.&amp;nbsp; If the pivot only shows region, the max should be for the region, not the sales rep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a few variations with dimensionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX(AGGR(sum(sales),PICK(DIMENSIONALITY(),region,manager,salesrep)))&lt;/P&gt;&lt;P&gt;but this often resulted in Max Value appearing on all the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is only one dimension its simple but what needs to be done for multiple dimensions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 17:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71916#M11860</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2018-06-07T17:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can AGGR dimension be dynamic?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71917#M11861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you decide your dimension? is it a cycle or drill-down group?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 17:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71917#M11861</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-07T17:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can AGGR dimension be dynamic?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71918#M11862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither - its a pivot table with 3 dimensions.&amp;nbsp; The pivot table does the drill-down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 17:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71918#M11862</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2018-06-07T17:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can AGGR dimension be dynamic?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71919#M11863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem but didn't find a solution...&lt;/P&gt;&lt;P&gt;For cyclic groups you can use getcurrentfield(), but&amp;nbsp; for dynamically expanded / collapsed pivots this is not possible I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 18:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71919#M11863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-07T18:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can AGGR dimension be dynamic?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71920#M11864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to move Pick with Dimentionality out of aggr function?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PICK( &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DIMENSIONALITY(), &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX(AGGR(sum(sales),region)), &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX(AGGR(sum(sales),&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;manager&lt;/SPAN&gt;)), &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX(AGGR(sum(sales),&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;salesrep&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)) ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I know that it`s not best solution from repeating code point of view, but maybe it`s solve your problem.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 07:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71920#M11864</guid>
      <dc:creator>romansavchuk</dc:creator>
      <dc:date>2018-06-26T07:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can AGGR dimension be dynamic?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71921#M11865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that this might be want you want to get calculated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Dimensionality()&lt;/P&gt;&lt;P&gt;, Max(TOTAL Aggr(Sum(Amount),Region,Manager,SalesRep))&lt;/P&gt;&lt;P&gt;, Max(TOTAL &amp;lt;Region&amp;gt; Aggr(Sum(Amount),Region,Manager,SalesRep))&lt;/P&gt;&lt;P&gt;, Max(TOTAL &amp;lt;Region,Manager&amp;gt; Aggr(Sum(Amount),Region,Manager,SalesRep))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you want the total sum per dimension and the max amount for the dimension :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Dimensionality()&lt;/P&gt;&lt;P&gt;, Max(TOTAL Aggr(Sum(Amount),Region))&lt;/P&gt;&lt;P&gt;, Max(TOTAL &amp;lt;Region&amp;gt; Aggr(Sum(Amount),Region,Manager))&lt;/P&gt;&lt;P&gt;, Max(TOTAL &amp;lt;Region,Manager&amp;gt; Aggr(Sum(Amount),Region,Manager,SalesRep))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-AGGR-dimension-be-dynamic/m-p/71921#M11865</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-06-26T16:20:11Z</dc:date>
    </item>
  </channel>
</rss>

