<?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 Auto Prioritization in Chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Auto-Prioritization-in-Chart/m-p/332808#M1169211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a whopper of a problem here. I've been requested to have QlikView automatically assign priority levels in real-time, depending on the submit_date field. If a request was submitted more than 14 days ago, its priority needs to be elevated a level (LOW to STANDARD to CRITICAL). Here's the fields from the database itself:&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13438496890558576" jivemacro_uid="_13438496890558576"&gt;&lt;UL&gt;&lt;LI&gt;priority_name (critical, low, high)&lt;/LI&gt;&lt;LI&gt;system_name (A, B, C, D, E, F, G)&lt;/LI&gt;&lt;/UL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the inline table I had to create for the original TaskPriority table/chart :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13438496890245249" jivemacro_uid="_13438496890245249"&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;TaskPriority:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskPriority,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; AutoNumber(priority_name &amp;amp; '-' &amp;amp; system_name) as priorityKey;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; priority_name, system_name, TaskPriority&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, A, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, B, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, C, 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, D, 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, E, 5&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, F, 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, G, 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, A, 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, B, 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, C, 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, D, 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, E, 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, F, 13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, G, 14&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ];&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine. For the auto prioritization, I tried implementing a "flag" in the load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1343849689008151" jivemacro_uid="_1343849689008151"&gt;&lt;P&gt;Load *,If(add_date&amp;gt;Today()-14,1,0) as idle_request;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and then I tried implementing the following change to the inline table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13438496890089706" jivemacro_uid="_13438496890089706"&gt;&lt;P&gt;TaskPriority:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskPriority,&lt;BR /&gt; AutoNumber(priority_name &amp;amp; '-' &amp;amp; system_name) as priorityKey;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; priority_name, system_name, idle_request, TaskPriority&lt;BR /&gt; Critical, A, 0, 1&lt;BR /&gt; Critical, B, 0, 2&lt;BR /&gt; Critical, C, 0, 3&lt;BR /&gt; Critical, D, 0, 4&lt;BR /&gt; Critical, E, 0, 5&lt;BR /&gt; Critical, F, 0, 6&lt;BR /&gt; Critical, G, 0, 7&lt;BR /&gt; Standard, A, 0, 8&lt;BR /&gt; Standard, B, 0, 9&lt;BR /&gt; Standard, C, 0, 10&lt;BR /&gt; Standard, D, 0, 11&lt;BR /&gt; Standard, E, 0, 12&lt;BR /&gt; Standard, F, 0, 13&lt;BR /&gt; Standard, G, 0, 14&lt;BR /&gt; Low, A, 0, 15&lt;BR /&gt; Low, B, 0, 16&lt;BR /&gt; Low, C, 0, 17&lt;BR /&gt; Low, D, 0, 18&lt;BR /&gt; Low, E, 0, 19&lt;BR /&gt; Low, F, 0, 20&lt;BR /&gt; Low, G, 0, 21&lt;BR /&gt; Critical, A, 1, 8&lt;BR /&gt; Critical, B, 1, 9&lt;BR /&gt; Critical, C, 1, 10&lt;BR /&gt; Critical, D, 1, 11&lt;BR /&gt; Critical, E, 1, 12&lt;BR /&gt; Critical, F, 1, 13&lt;BR /&gt; Critical, G, 1, 14&lt;BR /&gt; Standard, A, 1, 15&lt;BR /&gt; Standard, B, 1, 16&lt;BR /&gt; Standard, C, 1, 17&lt;BR /&gt; Standard, D, 1, 18&lt;BR /&gt; Standard, E, 1, 19&lt;BR /&gt; Standard, F, 1, 20&lt;BR /&gt; Standard, G, 1, 21&lt;BR /&gt; Low, A, 1, 22&lt;BR /&gt; Low, B, 1, 23&lt;BR /&gt; Low, C, 1, 24&lt;BR /&gt; Low, D, 1, 25&lt;BR /&gt; Low, E, 1, 26&lt;BR /&gt; Low, F, 1, 27&lt;BR /&gt; Low, G, 1, 28&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this gives me duplicate entries, like a request will be a TaskPriority value of both 2 AND 23. Given the task at hand, am I approaching this the wrong way? Any suggestions would help. Thank you all very much, this great community has never let me down before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 18:30:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-01T18:30:06Z</dc:date>
    <item>
      <title>Auto Prioritization in Chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-Prioritization-in-Chart/m-p/332808#M1169211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a whopper of a problem here. I've been requested to have QlikView automatically assign priority levels in real-time, depending on the submit_date field. If a request was submitted more than 14 days ago, its priority needs to be elevated a level (LOW to STANDARD to CRITICAL). Here's the fields from the database itself:&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13438496890558576" jivemacro_uid="_13438496890558576"&gt;&lt;UL&gt;&lt;LI&gt;priority_name (critical, low, high)&lt;/LI&gt;&lt;LI&gt;system_name (A, B, C, D, E, F, G)&lt;/LI&gt;&lt;/UL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the inline table I had to create for the original TaskPriority table/chart :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13438496890245249" jivemacro_uid="_13438496890245249"&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;TaskPriority:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskPriority,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; AutoNumber(priority_name &amp;amp; '-' &amp;amp; system_name) as priorityKey;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; priority_name, system_name, TaskPriority&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, A, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, B, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, C, 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, D, 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, E, 5&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, F, 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Critical, G, 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, A, 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, B, 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, C, 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, D, 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, E, 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, F, 13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard, G, 14&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ];&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine. For the auto prioritization, I tried implementing a "flag" in the load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1343849689008151" jivemacro_uid="_1343849689008151"&gt;&lt;P&gt;Load *,If(add_date&amp;gt;Today()-14,1,0) as idle_request;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and then I tried implementing the following change to the inline table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13438496890089706" jivemacro_uid="_13438496890089706"&gt;&lt;P&gt;TaskPriority:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskPriority,&lt;BR /&gt; AutoNumber(priority_name &amp;amp; '-' &amp;amp; system_name) as priorityKey;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; priority_name, system_name, idle_request, TaskPriority&lt;BR /&gt; Critical, A, 0, 1&lt;BR /&gt; Critical, B, 0, 2&lt;BR /&gt; Critical, C, 0, 3&lt;BR /&gt; Critical, D, 0, 4&lt;BR /&gt; Critical, E, 0, 5&lt;BR /&gt; Critical, F, 0, 6&lt;BR /&gt; Critical, G, 0, 7&lt;BR /&gt; Standard, A, 0, 8&lt;BR /&gt; Standard, B, 0, 9&lt;BR /&gt; Standard, C, 0, 10&lt;BR /&gt; Standard, D, 0, 11&lt;BR /&gt; Standard, E, 0, 12&lt;BR /&gt; Standard, F, 0, 13&lt;BR /&gt; Standard, G, 0, 14&lt;BR /&gt; Low, A, 0, 15&lt;BR /&gt; Low, B, 0, 16&lt;BR /&gt; Low, C, 0, 17&lt;BR /&gt; Low, D, 0, 18&lt;BR /&gt; Low, E, 0, 19&lt;BR /&gt; Low, F, 0, 20&lt;BR /&gt; Low, G, 0, 21&lt;BR /&gt; Critical, A, 1, 8&lt;BR /&gt; Critical, B, 1, 9&lt;BR /&gt; Critical, C, 1, 10&lt;BR /&gt; Critical, D, 1, 11&lt;BR /&gt; Critical, E, 1, 12&lt;BR /&gt; Critical, F, 1, 13&lt;BR /&gt; Critical, G, 1, 14&lt;BR /&gt; Standard, A, 1, 15&lt;BR /&gt; Standard, B, 1, 16&lt;BR /&gt; Standard, C, 1, 17&lt;BR /&gt; Standard, D, 1, 18&lt;BR /&gt; Standard, E, 1, 19&lt;BR /&gt; Standard, F, 1, 20&lt;BR /&gt; Standard, G, 1, 21&lt;BR /&gt; Low, A, 1, 22&lt;BR /&gt; Low, B, 1, 23&lt;BR /&gt; Low, C, 1, 24&lt;BR /&gt; Low, D, 1, 25&lt;BR /&gt; Low, E, 1, 26&lt;BR /&gt; Low, F, 1, 27&lt;BR /&gt; Low, G, 1, 28&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this gives me duplicate entries, like a request will be a TaskPriority value of both 2 AND 23. Given the task at hand, am I approaching this the wrong way? Any suggestions would help. Thank you all very much, this great community has never let me down before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 18:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-Prioritization-in-Chart/m-p/332808#M1169211</guid>
      <dc:creator />
      <dc:date>2012-08-01T18:30:06Z</dc:date>
    </item>
  </channel>
</rss>

