<?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 Separation of conditions in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Separation-of-conditions-in-Script/m-p/909736#M315898</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;&lt;/P&gt;&lt;P&gt;I've got some problem with separation of conditions of policies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="93592" alt="4.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93592_4.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And I know that for the policy "1" - the final condition - "Active" for the date: 31.08.2012, for the date: 31.08.2011 - condition "DC 1", &lt;SPAN style="font-size: 13.3333330154419px;"&gt;for the date: 31.08.2010 - condition "DC 2" and so on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Everything depends on number of change of conditions (No of States) and dates (BEGIN).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For instance for policy - "3", we've got only two conditions, Active - 25.06.2015 and DC 1 - 31.08.2014.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My task - is to make artificial field with names of conditions "Active", "DC 1", "DC 2", ...How I can do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be i need to Order by POLICY asc, and BEGIN desc, and to use the "Previous()" or "Peek()" functions, but how i find the second and third and rest conditions? May be i need to use some FOR...NEXT loop by rows ?&lt;/P&gt;&lt;P&gt;Hope i clearly explaned my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any &lt;SPAN style="font-size: 13.3333330154419px;"&gt;script, &lt;/SPAN&gt;thoughts, advices?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Source app in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 09:29:42 GMT</pubDate>
    <dc:creator>lylererger</dc:creator>
    <dc:date>2015-07-22T09:29:42Z</dc:date>
    <item>
      <title>Separation of conditions in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Separation-of-conditions-in-Script/m-p/909736#M315898</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;&lt;/P&gt;&lt;P&gt;I've got some problem with separation of conditions of policies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the table:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="93592" alt="4.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93592_4.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And I know that for the policy "1" - the final condition - "Active" for the date: 31.08.2012, for the date: 31.08.2011 - condition "DC 1", &lt;SPAN style="font-size: 13.3333330154419px;"&gt;for the date: 31.08.2010 - condition "DC 2" and so on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Everything depends on number of change of conditions (No of States) and dates (BEGIN).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For instance for policy - "3", we've got only two conditions, Active - 25.06.2015 and DC 1 - 31.08.2014.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My task - is to make artificial field with names of conditions "Active", "DC 1", "DC 2", ...How I can do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be i need to Order by POLICY asc, and BEGIN desc, and to use the "Previous()" or "Peek()" functions, but how i find the second and third and rest conditions? May be i need to use some FOR...NEXT loop by rows ?&lt;/P&gt;&lt;P&gt;Hope i clearly explaned my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any &lt;SPAN style="font-size: 13.3333330154419px;"&gt;script, &lt;/SPAN&gt;thoughts, advices?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Source app in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 09:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separation-of-conditions-in-Script/m-p/909736#M315898</guid>
      <dc:creator>lylererger</dc:creator>
      <dc:date>2015-07-22T09:29:42Z</dc:date>
    </item>
  </channel>
</rss>

