<?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: Need to get Employee data based upon the priority in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8648#M788676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;t1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load * Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Emp_id, "priority type", status&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, a, active&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, b, inactive&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, c, absent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, b, inactive&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, c, absent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, a, active&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, c, absent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Emp_id,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue("priority type", Ord("priority type")) as "priority type",&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(status, Ord("priority type")) as CurrentStatus&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident t1 Group by Emp_id;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Drop Table t1;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193111_Capture.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 12:04:04 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-02-12T12:04:04Z</dc:date>
    <item>
      <title>Need to get Employee data based upon the priority in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8647#M788675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I need to get the Employee status based upon the priority during the load script as attached excel for your reference and screenshot too. Kindly share your knowledge as it would be very helpful.&lt;IMG alt="priority_Status.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193102_priority_Status.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8647#M788675</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get Employee data based upon the priority in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8648#M788676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;t1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load * Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Emp_id, "priority type", status&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, a, active&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, b, inactive&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1, c, absent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, b, inactive&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2, c, absent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, a, active&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3, c, absent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Emp_id,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue("priority type", Ord("priority type")) as "priority type",&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(status, Ord("priority type")) as CurrentStatus&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident t1 Group by Emp_id;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Drop Table t1;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193111_Capture.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8648#M788676</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get Employee data based upon the priority in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8649#M788677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I have found the script for above question while im trying and pasted below. Please share if any quick way to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priority:&lt;/P&gt;&lt;P&gt;LOAD Emp_id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [priority type], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([priority type]='a','1',if([priority type]='b','2',if([priority type]='c','3'))) as prior_order,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Source table]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;new:&lt;/P&gt;&lt;P&gt;load Emp_id,MinString(prior_order) as prior_order resident Priority Group by Emp_id; &lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;load * resident Priority;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table Priority;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8649#M788677</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2018-02-12T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get Employee data based upon the priority in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8650#M788678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi tresesco,&lt;/P&gt;&lt;P&gt;Thank you very much for your answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;The above script which you gave was working correctly. but small thing which i need to clarify is that a,b and c are in alphabetical order so that above script was working fine. suppose b was my first priority means , how can i get that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8650#M788678</guid>
      <dc:creator>praveenkumar_s</dc:creator>
      <dc:date>2018-02-12T12:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get Employee data based upon the priority in script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8651#M788679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you can use an IF statement or match() to assign it an incremental numeric values (or, if the priority field has many values, you may want to maintain a mapping table) , and then use firstsortedvalue()..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-get-Employee-data-based-upon-the-priority-in-script/m-p/8651#M788679</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T12:14:12Z</dc:date>
    </item>
  </channel>
</rss>

