<?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: Set Condition in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177877#M902457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From_State&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To_State&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Route_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;From_State=3 and &lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1, &lt;SPAN style="font-size: 13.3333px;"&gt;Route_Date) as Data_Entry_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1001 and &lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1002, &lt;SPAN style="font-size: 13.3333px;"&gt;Route_Date) as Review_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1002 and &lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1003, &lt;SPAN style="font-size: 13.3333px;"&gt;Route_Date) as Finalize_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source_table...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(&lt;SPAN style="font-size: 13.3333px;"&gt;Data_Entry_Date) as &lt;SPAN style="font-size: 13.3333px;"&gt;Data_Entry_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(&lt;SPAN style="font-size: 13.3333px;"&gt;Review_Date) as &lt;SPAN style="font-size: 13.3333px;"&gt;Review_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(&lt;SPAN style="font-size: 13.3333px;"&gt;Finalize_Date) as &lt;SPAN style="font-size: 13.3333px;"&gt;Finalize_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;GROUP BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, the dates need to be real dates since the max() function won't work on text values. Use the Date#() if necessary to convert text values into date values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2016 15:56:53 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-07-05T15:56:53Z</dc:date>
    <item>
      <title>Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177876#M902455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a table includes data fields: Case_ID, From_State, To_State, Route_Date. There are three types of States, Data Entry (From_State '3' to To_State '4'), Review (From_State '4' to To_State '1001'), Finalize (From_State '1001' to To_State '1002').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My goal here is to get specific date for each of the state. Please find the attached example excel sheet that may understand my requirement easier. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And this is what I did as below,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;In Transformation layer&lt;/STRONG&gt;, I created 3 new columns based on exsiting data fields: Data_Entry, Review_Date and Finalize_Date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table A:&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CASE_ID&lt;/SPAN&gt; , &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;ROUTE_DATE&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;From_State, &lt;/SPAN&gt; &lt;BR /&gt; To_State, &lt;BR /&gt; 'NA' &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DATA_ENTRY&lt;/SPAN&gt;,&lt;BR /&gt; 'NA' &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; Review&lt;SPAN style="color: #800000;"&gt;_DATE&lt;/SPAN&gt;,&lt;BR /&gt; 'NA' &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; Finalize&lt;SPAN style="color: #800000;"&gt;_DATE &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;From...table A; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;STORE&lt;/STRONG&gt;&lt;/SPAN&gt; * &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; Table A &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; Table A;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;In the Data Model layer, I set up IF condition, but this wans't work&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table A:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;CASE_ID&lt;/SPAN&gt; , &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;ROUTE_DATE&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;From_State, &lt;/SPAN&gt; &lt;BR /&gt; To_State, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FR_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '3' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TO_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '4', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ROUTE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'NA') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATA_ENTRY_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FR_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '4' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TO_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '100010', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ROUTE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'NA') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QC_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FR_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '100010' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TO_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '100011', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ROUTE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'NA') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MR_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;From Table A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What I got is only the Finalize_Date have date records in it. But the data hasn't connect to Case_ID and other data fields. Data_Entry and Review_Date only have 'NA' in it. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please let me know any of your suggestions, how to make this right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;In the Presentation layer: &lt;/STRONG&gt;which related to the Final Result I would like to get in the attached excel sheet. But I haven't gone for that far yet.&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It's a little bit complex, please let me know if you are having trouble to understand my question or the goal. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Becky&lt;/SPAN&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/Set-Condition-in-Load-Script/m-p/1177876#M902455</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177877#M902457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From_State&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To_State&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Route_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;From_State=3 and &lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1, &lt;SPAN style="font-size: 13.3333px;"&gt;Route_Date) as Data_Entry_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1001 and &lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1002, &lt;SPAN style="font-size: 13.3333px;"&gt;Route_Date) as Review_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1002 and &lt;SPAN style="font-size: 13.3333px;"&gt;From_State=1003, &lt;SPAN style="font-size: 13.3333px;"&gt;Route_Date) as Finalize_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source_table...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(&lt;SPAN style="font-size: 13.3333px;"&gt;Data_Entry_Date) as &lt;SPAN style="font-size: 13.3333px;"&gt;Data_Entry_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(&lt;SPAN style="font-size: 13.3333px;"&gt;Review_Date) as &lt;SPAN style="font-size: 13.3333px;"&gt;Review_Date,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(&lt;SPAN style="font-size: 13.3333px;"&gt;Finalize_Date) as &lt;SPAN style="font-size: 13.3333px;"&gt;Finalize_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;GROUP BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, the dates need to be real dates since the max() function won't work on text values. Use the Date#() if necessary to convert text values into date values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177877#M902457</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-05T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177878#M902458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a flexible approach using GENERIC LOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GENERIC&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; Case_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 'Date' &amp;amp; From_State &amp;amp; To_State,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Route_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Case_ID From_State To_State Route_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10001 3 4 1/3/2007 08:30am&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10001 1001 1002 1/8/2007 15:30pm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10001 1002 1003 1/8/2007 16:40pm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10002 3 4 03/29/2010 9:45am&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10002 4 3 3/29/2010&amp;nbsp; 10:10am&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10002 3 4 3/29/2010 14:15pm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10002 1001 1002 04/03/2010 10:15am&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10002 1002 1003 04/04/2010 9:00am&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10003 1002 1003 .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10003 3 4 .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;] (delimiter is '\t')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RENAME FIELD Date34 TO [Data Entry Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RENAME FIELD Date10011002 TO [Review Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RENAME FIELD Date10021003 TO [Finalize Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Optional - We don't care about the 4-3 transition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE Data.Date43;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example attached, see also &lt;A href="http://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/" title="http://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/"&gt;Use cases for Generic Load | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 16:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177878#M902458</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-05T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177879#M902460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;Hi Gysbert, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;Thanks a lot for your input. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;But I got similar result as I did earlier. The Case ID is not associate with any of the three stages...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;"Route_Date" is timestamp format. I will need to keep the format. Not sure if this effect the result as you said need to use Date#(). How do you think? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels j-gamification-status-level"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 17:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177879#M902460</guid>
      <dc:creator />
      <dc:date>2016-07-05T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177880#M902462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Bob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are hundred and thousands of data. So I am not sure how to use Inline Load here as I cannot type they all in. My bad didn't express it clearly.&amp;nbsp; So instead of using Inline Load, can I use regular load? How do you think if I modify the script as below? And why at the end of the script we only drop table Data34?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; Case_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; From_State,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; To_State&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;[CASE_ROUTING.QVD](&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;G&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ENERIC &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;'Date' &amp;amp; From_State &amp;amp; To_State,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ROUTE_DATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;RESIDENT CASE_ROUTING&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;R&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ENAME FIELD Date34 TO [Data Entry Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;RENAME FIELD Date41001 TO [Review Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;RENAME FIELD Date10011002 TO [Finalize Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;DROP TABLE CASE_ROUTING.Date34;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 17:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177880#M902462</guid>
      <dc:creator />
      <dc:date>2016-07-05T17:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177881#M902463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inline LOAD was used only for demonstration here in the post. You can load from QVD, xls, or any other source, No need to do an additional Resident.&amp;nbsp; You would still use the same Generic Load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;CaseRouting:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;GENERIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; Case_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; 'Date' &amp;amp; From_State &amp;amp; To_State,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; Route_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;FROM &lt;SPAN style="font-size: 12pt; font-family: Calibri; color: #000000;"&gt;[CASE_ROUTING.QVD](&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri; color: #000000;"&gt;qvd);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;Each pair of From_State &amp;amp; To_State routing is going to generate a separate table named Tablename.Date&amp;amp;FromState&amp;amp;To_State For example, in the load above the 1001 &amp;amp; 1002 will generate a table "CaseRouting.Date1001002".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;I dropped the "43" table because you did not seem interested in the From_State=3 to To_State=4 events. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 21:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177881#M902463</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-05T21:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177882#M902464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks for sharing more details which really helped me think through. But I am more confused here as well. A couple of questions in my mind:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. If we can use the Generic Load. Shall I still use the Regular Load above the Generic Load. If so, why do we need two Load statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;CASE_ROUTING:&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Case_ID&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;ROUTE_DATE&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FR_STATE&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;TO_STATE&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt; &lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;[CASE_ROUTING.QVD]&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;GENERIC&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Case_ID&lt;/SPAN&gt;,&lt;BR /&gt; 'Date' &amp;amp; &lt;SPAN style="color: #800000;"&gt;TO_STATE&lt;/SPAN&gt;,&lt;SPAN style="color: #008000;"&gt; &lt;BR /&gt; &lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ROUTE_DATE&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; [CASE_ROUTING.QVD]&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;RENAME&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FIELD&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Date3&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Data_Entry_Date&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;RENAME&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FIELD&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Date1001&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Review_Date&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;RENAME&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FIELD&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Date1002&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; Finalization&lt;SPAN style="color: #800000;"&gt;_Date&lt;/SPAN&gt;; &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;2. As you explained, I understand that e&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-style: inherit; font-weight: inherit;"&gt;ach pair of "Date &amp;amp; To_State" routing is going to generate a separate table. And we can drop any tables afterward. Instead of drop a bunch of tables/events that I am not interested in, is there a way not to load they before generate those table? For example, I only want to show To_State, From_State with values (3,4,1001,1002). However, there are more than (3,4,1001,1002) values exsting in the To_State, From_State data fileds.&amp;nbsp; I tried to do this, but it didn't work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;Dummy_A:&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; *&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; FR_STATE_ID&lt;BR /&gt; 3&lt;BR /&gt; 4&lt;BR /&gt; 1001&lt;BR /&gt; 1002&lt;BR /&gt; 1003 ]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; Dummy_B:&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; *&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; TO_STATE_ID&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt; 3&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt; 4&lt;BR /&gt; 1001&lt;BR /&gt; 1002&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt; 1003&lt;/SPAN&gt; ]&lt;/SPAN&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;CASE_ROUTING:&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Case_ID&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;ROUTE_DATE&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FR_STATE&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;TO_STATE&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt; &lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;[CASE_ROUTING.QVD]&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;GENERIC&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Case_ID&lt;/SPAN&gt;,&lt;BR /&gt; 'Date' &amp;amp; &lt;SPAN style="color: #800000;"&gt;TO_STATE&lt;/SPAN&gt;,&lt;SPAN style="color: #008000;"&gt; &lt;BR /&gt; &lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ROUTE_DATE&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; [CASE_ROUTING.QVD]&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;RENAME&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FIELD&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Date3&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Data_Entry_Date&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;RENAME&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FIELD&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Date1001&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Review_Date&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="; color: #0000ff;"&gt;&lt;STRONG&gt;RENAME&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FIELD&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Date1002&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Finalization_Date&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;Drop Table Dummy_A;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;Drop Table Dummy_B;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I also tried drop those tables: &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; CASE_ROUTING.Date21;&amp;nbsp; But when I runthe script, it show me error "Table not found - DROP TABLES statement". How can I only shows the specific values? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks a lot,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Becky&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 14:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177882#M902464</guid>
      <dc:creator />
      <dc:date>2016-07-06T14:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177883#M902465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need two load statements. One will do. And you can filter the input with a WHERE clause to include only the transitions you are interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GENERIC&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; Case_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 'Date' &amp;amp; From_State &amp;amp; To_State,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Route_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Example.xlsx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From_State&amp;amp;To_State = 34&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OR From_State&amp;amp;To_State = 10011002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OR From_State&amp;amp;To_State = 10021003&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RENAME FIELD Date34 TO [Data Entry Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RENAME FIELD Date10011002 TO [Review Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RENAME FIELD Date10021003 TO [Finalize Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 17:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177883#M902465</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-06T17:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177884#M902466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use only one Load statement which is Generic Load. However, it created synthetic key with CaseID + 'Date' &amp;amp; To_State + Route date.&amp;nbsp; This won't happen if I use two load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you kindly let me know how to eliminate synthetic key in one load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Becky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177884#M902466</guid>
      <dc:creator />
      <dc:date>2016-07-07T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177885#M902467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample QVW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177885#M902467</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-07T15:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177886#M902468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the sample. Please take a look at it. Thanks Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177886#M902468</guid>
      <dc:creator />
      <dc:date>2016-07-07T16:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177887#M902469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I know where went wrong. I am not sure why and what's the theroy behind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached case, it load 4 data fields. If I commented "From_State_ID" or "Route Date", then there is no synthetic key. But how if I want to show "From_Sate_ID" and "Route Date" in the chart?&amp;nbsp; And I cannot only load 2 data fields as it shows Generic load needs at least three Fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 17:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177887#M902469</guid>
      <dc:creator />
      <dc:date>2016-07-07T17:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177888#M902470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Rob,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have another question. I set up the value of different states in different variables. Such as below,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DataEntryDate&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '3,30';&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;ReviewDate&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '1001';&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;FinalizationDate&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '1002'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TO_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(DataEntryDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TO_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(ReviewDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TO_STATE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(FinalizationDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can I use variables while renaming the generated data fields? What would be the correct sytax to replace "Date3", "Date1001", "Date 1002" as below? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RENAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FIELD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Data_Entry_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RENAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FIELD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date1001&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Review_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RENAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FIELD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date1002&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Finalization_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Becky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 17:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177888#M902470</guid>
      <dc:creator />
      <dc:date>2016-07-07T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177889#M902471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured it out by using the way in the attached QVW. I also tried the technique you shared to consolidate new generated tables.However, I am still in process of figuring out how to use variables in RENAME statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 18:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Condition-in-Load-Script/m-p/1177889#M902471</guid>
      <dc:creator />
      <dc:date>2016-07-07T18:44:18Z</dc:date>
    </item>
  </channel>
</rss>

