<?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 of Employee Names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576807#M740642</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help,.&lt;/P&gt;&lt;P&gt;Could you please help me to insert these expression in your expression.&lt;/P&gt;&lt;P&gt;Here count is not the dimensions its an expression i.e., Count({&amp;lt;MonthDiff={0}&amp;gt;} Trades).&lt;/P&gt;&lt;P&gt;This table has some null Employees also those null employee&amp;nbsp; count is high so need to exclude in&lt;SPAN&gt; the expression like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;FirstSortedValue( &lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;Employee={"=len(trim(Employee))&amp;gt;0"}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN&gt;Employee, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Aggr(Count({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;Employee={"=len(trim(Employee))&amp;gt;0"}&lt;/STRONG&gt;&lt;SPAN&gt;,MonthDiff={0}&amp;gt;} Trades),Department, Employee))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1month back in the below post you have suggested the above expression. Its working fine but I got multiple employees with top count so I am looking for new expression in the same requirement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Max-of-trades-help/m-p/1553550#M371298" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-QlikView/Max-of-trades-help/m-p/1553550#M371298&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please help me on this.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Menlo,Monaco,Consolas,&amp;quot;Courier New&amp;quot;,monospace" color="#002000"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input Table.png" style="width: 406px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11461i50332066A05F0947/image-size/large?v=v2&amp;amp;px=999" role="button" title="Input Table.png" alt="Input Table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 09:06:40 GMT</pubDate>
    <dc:creator>mahitham</dc:creator>
    <dc:date>2019-05-06T09:06:40Z</dc:date>
    <item>
      <title>Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576702#M740632</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Can any one please help me on below requirement. I have a Table like below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input Table.png" style="width: 406px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11462i1A36B58A2C8530B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Input Table.png" alt="Input Table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From the above table need to show top Employee Names by Department and Top Employee count by Department like below table&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table 2.png" style="width: 228px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11447i689461132F71A51A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table 2.png" alt="Table 2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have tried below expressions the First expression for Employee is working fine when there is only one top employee but in Electronics Department there is Two Top Employees Named Raj and Suraj there getting null instead of there names, in Groceries its working fine.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please help me to modify the below Employee Expression for showing all Top Employees like above 2nd table.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;Employee:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;FirstSortedValue( {&amp;lt;Employee={"=len(trim(Employee))&amp;gt;0"}&amp;gt;}Employee, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;-Aggr(Count({&amp;lt;Employee={"=len(trim(Employee))&amp;gt;0"},MonthDiff={0}&amp;gt;} Trades),Department, Employee))&lt;/STRONG&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;Count:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;Max(&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;Employee={"=len(trim(Employee))&amp;gt;0"}&amp;gt;} &lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Aggr(Count({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;Employee={"=len(trim(Employee))&amp;gt;0"},&lt;/STRONG&gt;&lt;SPAN&gt;MonthDiff={0}&amp;gt;} Trades),Department, Employee))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576702#M740632</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576720#M740633</link>
      <description>Hi Mahitham,&lt;BR /&gt;I think you need to try to use rank() = 1 to get the user name list, then concat them, like you said, firstsortedvalue will have problem.&lt;BR /&gt;Please try.&lt;BR /&gt;Aiolos Zhao</description>
      <pubDate>Mon, 06 May 2019 05:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576720#M740633</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2019-05-06T05:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576747#M740634</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36751"&gt;@uacg0009&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Could you please provide the expression with rank() based on my expression . I am new to rank()&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 06:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576747#M740634</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2019-05-06T06:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576754#M740636</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;As Aiolos sugest, the following expression worked for me (I used a simplified data model):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Concat(Aggr(
	if(rank(Sum(Count), 1)=1, Only(Employee))
	,Department, Employee
), ', ')	&lt;/LI-CODE&gt;&lt;P&gt;This espression is used inside a simple table with &lt;STRONG&gt;only&lt;/STRONG&gt; department as dimension.&lt;/P&gt;&lt;P&gt;Bests,&lt;/P&gt;&lt;P&gt;Jaime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 07:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576754#M740636</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-05-06T07:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576758#M740638</link>
      <description>&lt;P&gt;May be like this?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=FirstSortedValue( Aggr(Concat(DISTINCT Employee, ','), Department, Count), -Aggr(Count, Count))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=Max(Count)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 729px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11452iD2260AC4F8DEBBCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 07:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576758#M740638</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-05-06T07:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576765#M740640</link>
      <description>&lt;P&gt;Nice one!&lt;/P&gt;&lt;P&gt;Isn't equivalent the second FirstSortedValue to Max(Count)? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 07:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576765#M740640</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-05-06T07:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576766#M740641</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":face_savoring_food:"&gt;😋&lt;/span&gt;sometimes one can do this!!&amp;nbsp; Thanks..corrected above.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 07:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576766#M740641</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-05-06T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Max of Employee Names</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576807#M740642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help,.&lt;/P&gt;&lt;P&gt;Could you please help me to insert these expression in your expression.&lt;/P&gt;&lt;P&gt;Here count is not the dimensions its an expression i.e., Count({&amp;lt;MonthDiff={0}&amp;gt;} Trades).&lt;/P&gt;&lt;P&gt;This table has some null Employees also those null employee&amp;nbsp; count is high so need to exclude in&lt;SPAN&gt; the expression like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;FirstSortedValue( &lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;Employee={"=len(trim(Employee))&amp;gt;0"}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN&gt;Employee, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Aggr(Count({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;Employee={"=len(trim(Employee))&amp;gt;0"}&lt;/STRONG&gt;&lt;SPAN&gt;,MonthDiff={0}&amp;gt;} Trades),Department, Employee))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1month back in the below post you have suggested the above expression. Its working fine but I got multiple employees with top count so I am looking for new expression in the same requirement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Max-of-trades-help/m-p/1553550#M371298" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-QlikView/Max-of-trades-help/m-p/1553550#M371298&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please help me on this.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Menlo,Monaco,Consolas,&amp;quot;Courier New&amp;quot;,monospace" color="#002000"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input Table.png" style="width: 406px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11461i50332066A05F0947/image-size/large?v=v2&amp;amp;px=999" role="button" title="Input Table.png" alt="Input Table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 09:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-Employee-Names/m-p/1576807#M740642</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2019-05-06T09:06:40Z</dc:date>
    </item>
  </channel>
</rss>

