<?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: How to populate category based on Max(AssignmentDate) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16072#M2623</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;Try maxstring instead of only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 11:22:27 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2018-02-27T11:22:27Z</dc:date>
    <item>
      <title>How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16066#M2617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my table and i have to show the "employee category name" instead of LEI_Assignemnet_End_date. I&amp;nbsp; have successfully calculated the max assignment date but i want to show the employe category name of max assignment date in chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me how to to bring it on chart level. data and QVW is also attached here for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : we have to do it on front end only because there are too many complex rotations and calculation &lt;/P&gt;&lt;P&gt;implemented in backend. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Snap3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/194677_Snap3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Snap1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194675_Snap1.png" style="height: 57px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above example it should show confirmed staff only as a employee category because it has max assignment end date. other record should get suppressed.&lt;/P&gt;&lt;P&gt;Exmaple 2:&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Snap2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/194676_Snap2.png" style="height: 190px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example we should get only highest record based on assignement end date only but it should populate "Resigned " as employee category in chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌&amp;nbsp; please comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above clarify the requirement. and help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sarfaraz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16066#M2617</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-02-27T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16067#M2618</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep Employee as dimension and below expression for category&lt;/P&gt;&lt;P&gt;If( FirstSortedValue([Employee Category],-LEI_Assignment_End_Date)='-','Resigned',FirstSortedValue([Employee Category],-LEI_Assignment_End_Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached file for more understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 09:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16067#M2618</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-02-27T09:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16068#M2619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kaushik for your reply.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i put Lei_Assignment_date as dimension then all the assignment end date is coming however we want only max assignment date should get populate infronnt of Employee Category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incorrect &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Snap5.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/194690_Snap5.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Corrcet One should be like this .&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Snap4.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194686_Snap4.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;sarfaraz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 09:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16068#M2619</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-02-27T09:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16069#M2620</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;It is because you have also added the End date in dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove that and you will get what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 09:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16069#M2620</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-02-27T09:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16070#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the End Date use another expression i.e Max(EndDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 09:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16070#M2621</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-02-27T09:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16071#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kaushik,&amp;nbsp; Thanks again for your help ....However we have multiple fields included in same pivot table and Max(end date) is giving me values but how we can suppress the record which we do not want in expression column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly correct me if i am wrong.&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt;Below is the expression i made for max values &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;LEI_Assignment_End_Date={"$(=Aggr(Max(LEI_Assignment_End_Date),[Employee No]))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If(IsNull([Employee Category]) or Len(Trim([Employee Category]))=0 or WildMatch([Employee Category],'*-*'),'Resigned',[Employee Category]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="snap6.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194695_snap6.png" style="height: 159px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When i selected then it is showing me the correct value when i deselect then nothing is appearing ...can you please help with expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sarfaraz&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16071#M2622</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-02-27T11:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16072#M2623</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;Try maxstring instead of only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16072#M2623</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-02-27T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate category based on Max(AssignmentDate)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16073#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried MaxString, concat etc but it same result ....when deselect everything getting null &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sarfaraz &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-populate-category-based-on-Max-AssignmentDate/m-p/16073#M2624</guid>
      <dc:creator>sarfaraz_sheikh</dc:creator>
      <dc:date>2018-02-27T11:36:06Z</dc:date>
    </item>
  </channel>
</rss>

