<?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: Using variable in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995587#M945603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah enjoy &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2015 11:30:13 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-12-29T11:30:13Z</dc:date>
    <item>
      <title>Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995570#M945585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field name 'TimeDifference' which stores the &lt;SPAN style="font-size: 13.3333px;"&gt;difference in time interval.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But some of the fields are blank. How can i fill the blanks with some values based on another field Reference as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Reference=0,TimeDifference&lt;/P&gt;&lt;P&gt;if Reference=1,max(TimeDifference)+1&lt;/P&gt;&lt;P&gt;if Reference=2,min(TimeDifference)-1 as NewTimeDifference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="181.181818" style="border: 1px solid rgb(0, 0, 0); width: 371.182px; height: 183.182px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;TimeDifference&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;NewTimeDifference&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10.50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;10.50&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16.45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15.45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;15.45&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-19.05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-19.05&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-20.05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16.45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How to get the max and min of TimeDifference? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Anjali Gupta&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995570#M945585</guid>
      <dc:creator />
      <dc:date>2015-12-29T10:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995571#M945587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below script and run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Time Difference, Reference&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 10.50, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -, 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 15.45, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, -19.05, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, -, 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, -, 1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;JOIN&lt;BR /&gt;LOAD MIN([Time Difference]) AS MIN_TIME,&lt;BR /&gt;MAX([Time Difference]) AS MAX_TIME&lt;BR /&gt;RESIDENT Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;BR /&gt;Load ID,&lt;BR /&gt;IF(Reference=1,MAX_TIME+1,if(Reference=2,MIN_TIME-1,[Time Difference])) as new_Time_diff,&lt;BR /&gt;Reference&lt;BR /&gt;Resident Test;&lt;/P&gt;&lt;P&gt;drop table Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995571#M945587</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-12-29T10:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995572#M945588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there no other way to do this,&lt;/P&gt;&lt;P&gt;by using some variable and using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995572#M945588</guid>
      <dc:creator />
      <dc:date>2015-12-29T10:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995573#M945589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can use variable.&lt;/P&gt;&lt;P&gt;where you want to use variable in script or in front end expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below in above suggested script then no need to join the table and after setting value in variable you can drop table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let varMinTime=Peek('MIN_TIME');&lt;/P&gt;&lt;P&gt;let varMaxTime=PEEK('MAX_TIME');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995573#M945589</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-12-29T10:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995574#M945590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Why do you want to add variables? &lt;/SPAN&gt;You can save the Min and Max in a variable, but that would be just adding another step to the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995574#M945590</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-29T10:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995575#M945591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use it in script itself.&lt;/P&gt;&lt;P&gt;Could you please guide me again on how to use the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Anjali Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995575#M945591</guid>
      <dc:creator />
      <dc:date>2015-12-29T10:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995576#M945592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modifiying max's code:&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;STRONG&gt;Test:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Time Difference, Reference&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 10.50, 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -, 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 15.45, 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, -19.05, 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, -, 2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, -, 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;STRONG style="color: #ff0000;"&gt;Temp:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD Min([Time Difference]) as MIN_TIME,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Max([Time Difference]) as MAX_TIME&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RESIDENT Test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;LET vMin = Peek('MIN_TIME');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;LET vMax = Peek('MAX_TIME');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;DROP Table Temp;&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Final:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load ID,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IF(Reference=1, &lt;SPAN style="color: #ff0000;"&gt;$(vMax)&lt;/SPAN&gt;+1,if(Reference=2, &lt;SPAN style="color: #ff0000;"&gt;$(vMin)&lt;/SPAN&gt;-1, [Time Difference])) as new_Time_diff,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;drop table Test;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995576#M945592</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-29T10:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995577#M945593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve it using variables in front end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995577#M945593</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-29T10:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995578#M945594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Sunny,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to use it like :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxDifference= Max(TimeDifference)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMinDifference= Min(TimeDifference)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;then use in script as:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if Reference=0,TimeDifference&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if Reference=1,vMaxDifference+1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if Reference=2,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMinDifference&lt;/SPAN&gt;-1 as NewTimeDifference.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;as using max(TimeDifference) will be based on particular ID and not the whole.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995578#M945594</guid>
      <dc:creator />
      <dc:date>2015-12-29T10:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995579#M945595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So each ID will have it's unique Min and Max?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995579#M945595</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-29T10:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995580#M945596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max and Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995580#M945596</guid>
      <dc:creator />
      <dc:date>2015-12-29T11:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995581#M945597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are glad we were able to help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995581#M945597</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-29T11:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995582#M945598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Kush.. But i want to handle it on the back end, i.e. Script Level, and not on the front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995582#M945598</guid>
      <dc:creator />
      <dc:date>2015-12-29T11:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995583#M945599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Without variable also you can do it&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Time Difference, Reference&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 10.50, 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 15.45, 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, -19.05, 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, -, 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, -, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left Join&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD max([Time Difference]) as MaxTime,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;min([Time Difference]) as MinTime&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Final:&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;IF(Reference=1, MaxTime+1,if(Reference=2, MinTime-1, [Time Difference])) as new_Time_diff&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Data;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Fields MaxTime,MinTime;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110153_Capture.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995583#M945599</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-29T11:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995584#M945600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kush but I have used what Sunny and Max have suggested and it worked great. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995584#M945600</guid>
      <dc:creator />
      <dc:date>2015-12-29T11:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995585#M945601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes That's not a problem. I am glad that it worked for you. It's just an alternative &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995585#M945601</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-29T11:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995586#M945602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. Thanks Kush for the knowledge. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995586#M945602</guid>
      <dc:creator />
      <dc:date>2015-12-29T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995587#M945603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah enjoy &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 11:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-script/m-p/995587#M945603</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-29T11:30:13Z</dc:date>
    </item>
  </channel>
</rss>

