<?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: Get a Max number for a pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520204#M194380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot get a max from a pivot. But you can calculate the same number using an Aggr():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Aggr(Sum(Something),Speciality,Year,Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 12:32:35 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-12-03T12:32:35Z</dc:date>
    <item>
      <title>Get a Max number for a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520203#M194379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find the Max number on a pivot. This seemed simple enough to me, but struggling. I want to put the max number into a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached an image of the pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some help, a user could select diffenerent specialties months and years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 12:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520203#M194379</guid>
      <dc:creator />
      <dc:date>2013-12-03T12:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get a Max number for a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520204#M194380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot get a max from a pivot. But you can calculate the same number using an Aggr():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Aggr(Sum(Something),Speciality,Year,Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 12:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520204#M194380</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-12-03T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get a Max number for a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520205#M194381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks for the quick response. However I'm more confused now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let go back to the begining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 charts and I want to have the scales the same, so I'm trying to find the Max number to fix the scale of the axes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show a line graph month by month of the number of referrals each sub specilaity has based on the specilaty I select. Graph 1 will show 1 year and graph 2 will show the previous year, but I want to fix the scales on eacvh chart so they are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've taken what you have sent me and tweaked it, but it works out the max for all specialtys not just the one i've selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 14:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520205#M194381</guid>
      <dc:creator />
      <dc:date>2013-12-03T14:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get a Max number for a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520206#M194382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you could do a RangeMax(Max( ...1...), Max( ...2...)) where the ...1... denote an Aggr() call equivalent to the first chart, and ...2... to the second chart. Hence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeMax(Max( Aggr(Count({$&amp;lt;Year={2012}&amp;gt;} ID),Month ) ), Max( Aggr(Count({$&amp;lt;Year={2013}&amp;gt;} ID),Month )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that would be to complicate it. You want two identical charts with different years in the two charts. Then you should make a Trellis chart with Year as first dimension. See Chart Properties - Dimension - Trellis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 15:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520206#M194382</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-12-03T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get a Max number for a pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520207#M194383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reponses, I feel i'm getting a bit closer. Like the idea of Trellis tables, not sure its exactly what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the code which works great as long as no year is selected. As long as the year is selected that I'm specifying in the code, then it works.Which does net help me when trying to compare 2 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 17:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-a-Max-number-for-a-pivot/m-p/520207#M194383</guid>
      <dc:creator />
      <dc:date>2013-12-03T17:18:24Z</dc:date>
    </item>
  </channel>
</rss>

