<?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: Max identifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916103#M317743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. Here is another way you can do it, just in case you find this more useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script (creating flags)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Building Number, Size, Occupant&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 10, A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 8, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 6, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, 5, A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, 6, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 10, A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 6, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 8, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Building Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max(Size) as Size,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; '1' as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Building Number];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Box&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94070_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;[Building Number]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;=Only({&amp;lt;Flag = {1}&amp;gt;}Occupant)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/94071_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 13:47:30 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-07-27T13:47:30Z</dc:date>
    <item>
      <title>Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916100#M317740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to show the maximum occupancy of a building in a table. This is my data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building Number, Size, Occupant&lt;/P&gt;&lt;P&gt;1, 10, A&lt;/P&gt;&lt;P&gt;1, 8, B&lt;/P&gt;&lt;P&gt;1, 6, C&lt;/P&gt;&lt;P&gt;2, 5, A&lt;/P&gt;&lt;P&gt;2, 6, B&lt;/P&gt;&lt;P&gt;3, 10, A&lt;/P&gt;&lt;P&gt;3, 6, B&lt;/P&gt;&lt;P&gt;3, 8 C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table grouped by Building Number and I want to show the largest occupier of that building. I want to see this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building, Largest tenant&lt;/P&gt;&lt;P&gt;1, A&lt;/P&gt;&lt;P&gt;2, B&lt;/P&gt;&lt;P&gt;3, A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a syntax that works out the largest tenant but it only populates when I have one building selected. I can't get them all to be shown in a table for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 13:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916100#M317740</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2015-07-27T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916101#M317741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;[Building Number]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;=FirstSortedValue(Occupant, -Size)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94060_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 13:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916101#M317741</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-27T13:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916102#M317742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works a dream! Thanks Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 13:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916102#M317742</guid>
      <dc:creator>keithlawrence</dc:creator>
      <dc:date>2015-07-27T13:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916103#M317743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. Here is another way you can do it, just in case you find this more useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script (creating flags)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Building Number, Size, Occupant&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 10, A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 8, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, 6, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, 5, A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, 6, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 10, A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 6, B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, 8, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Building Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max(Size) as Size,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; '1' as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Building Number];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Box&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94070_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;[Building Number]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;STRONG&gt;=Only({&amp;lt;Flag = {1}&amp;gt;}Occupant)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/94071_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 13:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916103#M317743</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-27T13:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916104#M317744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;x:&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[ &lt;/P&gt;&lt;P&gt;Building Number, Size, Occupant&lt;/P&gt;&lt;P&gt;1, 10, A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1, 8, B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1, 6, C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2, 5, A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2, 6, B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3, 10, A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3, 6, B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3, 8, C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;Mapping LOAD&lt;/P&gt;&lt;P&gt;[Building Number] &amp;amp; Size as MapKey,Occupant&lt;/P&gt;&lt;P&gt;Resident x;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x1:&lt;/P&gt;&lt;P&gt;NoConcatenate load [Building Number] , max(Size) as Size,ApplyMap('MAP',[Building Number]&amp;amp;max(Size),'N/A') as Occupant&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident x&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Group by [Building Number];&lt;/P&gt;&lt;P&gt; drop Table x;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 13:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916104#M317744</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-27T13:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916105#M317745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌ ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when there is same size of Two Occupant , Firstsorted value will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then need to follow another way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 14:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916105#M317745</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-27T14:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916106#M317746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/Kush141087"&gt;Kush&lt;/A&gt; you are right, but that is assuming that Keith would want to see both of them. I actually provided the response in the context of things. Making assumptions can complicate matters &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 14:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916106#M317746</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-27T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max identifier</title>
      <link>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916107#M317747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also if you look at the my second response, that should take care of two max values &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/831115"&gt;Re: Max identifier&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 14:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-identifier/m-p/916107#M317747</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-27T14:16:58Z</dc:date>
    </item>
  </channel>
</rss>

