<?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: help with expresssion in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160106#M378241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or maybe like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [UserID,&amp;nbsp; Month,&amp;nbsp; PlanGrpCode,&amp;nbsp; PlanGrp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 1,&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 2,&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 3,&amp;nbsp; 2,&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 4,&amp;nbsp; 3,&amp;nbsp;&amp;nbsp; c&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 5,&amp;nbsp; , &lt;/P&gt;&lt;P&gt;];&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;bb:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;If(([UserID] = Previous([UserID])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And ([PlanGrpCode]&amp;lt;&amp;gt; previous([PlanGrpCode]) or ( isnull([PlanGrpCode]) and IsNull([PlanGrp])))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,0) as [DisenrolledIndicator];&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;resident aa order by UserID,Month desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table aa;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2016 13:42:26 GMT</pubDate>
    <dc:creator>florentina_doga</dc:creator>
    <dc:date>2016-09-07T13:42:26Z</dc:date>
    <item>
      <title>help with expresssion in load script</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160103#M378238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User ID&amp;nbsp; Month&amp;nbsp; Plan Grp Code&amp;nbsp; Plan Grp&lt;/P&gt;&lt;P&gt;1111&amp;nbsp; jan&amp;nbsp; 1&amp;nbsp;&amp;nbsp; A&lt;BR /&gt;1111&amp;nbsp; Feb&amp;nbsp; 1&amp;nbsp;&amp;nbsp; A&lt;BR /&gt;1111&amp;nbsp; Mar&amp;nbsp; 2&amp;nbsp;&amp;nbsp; B&lt;BR /&gt;1111&amp;nbsp; Apr&amp;nbsp; 3&amp;nbsp;&amp;nbsp; c&lt;BR /&gt;1111&amp;nbsp; May&amp;nbsp; -&amp;nbsp;&amp;nbsp; -&lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have to create a new field Disenrolled Field, where when a user changes group or has null&amp;nbsp; it should be 1 ,0. but the catch is it has to set 1 as disenrolled indicator in previous record. i was writting query as below but it sets 1 in current record and not in previous record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(([user Id] = Previous([user Id]) &lt;BR /&gt;&amp;nbsp;&amp;nbsp; And ([Plan Grp Code]&amp;lt;&amp;gt; previous([Plan Grp Code]) or ( isnull([Plan Grp Code]) and IsNull([Plan Grp])))),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,0) as [DisenrolledIndicator].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW is there any function as next() in qlikview. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160103#M378238</guid>
      <dc:creator>arusanah</dc:creator>
      <dc:date>2016-09-07T13:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with expresssion in load script</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160104#M378239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no such thing as &lt;STRONG&gt;Next&lt;/STRONG&gt;, but you can &lt;STRONG&gt;reverse sort&lt;/STRONG&gt; your table and then use &lt;STRONG&gt;Previous&lt;/STRONG&gt; which acts just the same way as you would expect &lt;STRONG&gt;Next&lt;/STRONG&gt; to behave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160104#M378239</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-07T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: help with expresssion in load script</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160105#M378240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aa:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;If(([UserID] = Previous([UserID])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And ([PlanGrpCode]&amp;lt;&amp;gt; previous([PlanGrpCode]) or ( isnull([PlanGrpCode]) and IsNull([PlanGrp])))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,0) as [DisenrolledIndicator];&lt;/P&gt;&lt;P&gt;load * inline [UserID,&amp;nbsp; Month,&amp;nbsp; PlanGrpCode,&amp;nbsp; PlanGrp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 1,&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 2,&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 3,&amp;nbsp; 2,&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 4,&amp;nbsp; 3,&amp;nbsp;&amp;nbsp; c&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 5,&amp;nbsp; , &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160105#M378240</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-09-07T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: help with expresssion in load script</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160106#M378241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or maybe like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aa:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [UserID,&amp;nbsp; Month,&amp;nbsp; PlanGrpCode,&amp;nbsp; PlanGrp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 1,&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 2,&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 3,&amp;nbsp; 2,&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 4,&amp;nbsp; 3,&amp;nbsp;&amp;nbsp; c&lt;/P&gt;&lt;P&gt;1111,&amp;nbsp; 5,&amp;nbsp; , &lt;/P&gt;&lt;P&gt;];&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;bb:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;If(([UserID] = Previous([UserID])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And ([PlanGrpCode]&amp;lt;&amp;gt; previous([PlanGrpCode]) or ( isnull([PlanGrpCode]) and IsNull([PlanGrp])))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,0) as [DisenrolledIndicator];&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;resident aa order by UserID,Month desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table aa;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160106#M378241</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-09-07T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: help with expresssion in load script</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160107#M378242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but how can I create / maintain inline for 5 yrs data for a user id&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160107#M378242</guid>
      <dc:creator>arusanah</dc:creator>
      <dc:date>2016-09-07T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: help with expresssion in load script</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160108#M378243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to create a inline, you've just need to import from a Excel, CSV File your data and you're good to go &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160108#M378243</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-09-07T13:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: help with expresssion in load script</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160109#M378244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace my inline with your source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-expresssion-in-load-script/m-p/1160109#M378244</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-09-07T13:59:44Z</dc:date>
    </item>
  </channel>
</rss>

