<?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: Range values should hold in variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257198#M97238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are now getting&amp;nbsp; the correct Start Lot DateTime and End Lot DateTime, do you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you are not getting the correct LotNo.&lt;/P&gt;&lt;P&gt;because you have multiple LotStartDates for some LoNo and &lt;/P&gt;&lt;P&gt;multiple LotNo for some LotStartDates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we need to use a different approach to get the LotNo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 12:39:01 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-14T12:39:01Z</dc:date>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257176#M97216</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;- In my sheet i've four inputboxes. First 2 inputboxes are able to choose date and time and when i click the button the applicaton holds data with in the range.&lt;/P&gt;&lt;P&gt;- Now, i want to hold one field value in 3rd inputbox. But the input box not able to hold it, for eg as shown in the below image of 2nd textobject value should hold in 3rd inutbox.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7226_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;- In button action itself i written for the variable to hold this value.&lt;/P&gt;&lt;P&gt;For your reference i'm attaching my qvw file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 07:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257176#M97216</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-09-13T07:19:19Z</dc:date>
    </item>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257177#M97217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what you are trying to achieve. To me, it seems that your button is workin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the values for the Start Lot / End Lot input boxes and then press the button, the variables are set to the value you show in the bottom text box (i.e. the first value of your concatenated list), that's what the expression of your text box and the two identical set variable actions (besides the variable name)&amp;nbsp; of the button say, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can't see an error, unless you are trying to achieve something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 08:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257177#M97217</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T08:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257178#M97218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also having the same problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not about the range appy.The inputbox doesn't show the value with in the range default. If you click on two times the same button it is showing the minimum value with in the range and maxvalue with in the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it is happening i don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide the solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 09:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257178#M97218</guid>
      <dc:creator />
      <dc:date>2011-09-13T09:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257179#M97219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't just get the point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are selecting CaptureDateTime in the first two input boxes, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will lead to implicitely selected list of distinct LotStartDateTime values, the list is printed in the first text box.&lt;/P&gt;&lt;P&gt;Please note that these LotStartDateTime don't necessarile fall inbetween the selected CaptureDateTime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on the same button events, you set two variables: vLotStart and vLotEnd to the same value (which is the first value in the just mentioned list. This seems to work, regardless of how many times I click the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I am just using QV 10 SR2).&lt;/P&gt;&lt;P&gt;In the posted example, I see :&lt;/P&gt;&lt;P&gt;06-26-2011 23:26:42(B00BST3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in both input boxes for Lot start and end selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and if you want to select the last value in above mentioned list for the end lot date / vLotEnd variable, I think you need to replace the last subfield parameter 1 to -1 :&lt;/P&gt;&lt;P&gt;=SubField(Concat(DISTINCT Timestamp(LotStartDateTime,'MM-DD-YYYY hh:mm:ss')&amp;amp; '(' &amp;amp; LotNo &amp;amp; ')' ,','),',',&lt;STRONG&gt;-1&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 10:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257179#M97219</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T10:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257180#M97220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change the variables value like this&lt;/P&gt;&lt;P&gt;vLotStart=SubField(Min(Timestamp(LotStartDateTime,'MM-DD-YYYY hh:mm:ss')) &amp;amp; '(' &amp;amp; Minstring(LotNo) &amp;amp; ')',',',1)&lt;/P&gt;&lt;P&gt;vLotEnd=SubField(Max(Timestamp(LotStartDateTime,'MM-DD-YYYY hh:mm:ss')) &amp;amp; '(' &amp;amp; Maxstring(LotNo) &amp;amp; ')',',',1)&lt;/P&gt;&lt;P&gt;This is is my crrent selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7230" alt="Capturesc.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7230_Capturesc.PNG" /&gt;&lt;/P&gt;&lt;P&gt;After applying this range &lt;/P&gt;&lt;P&gt;The first inputbox(Start Lot) showing the garbage value (like &lt;IMG alt="123.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7237_123.PNG" /&gt;)default and&amp;nbsp; the selcond inputbox(End Lot) showing the&amp;nbsp; garabage value(like&lt;IMG __jive_id="7231" alt="Captureqw.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7231_Captureqw.PNG" /&gt;) But actually there it needs to show the values like &lt;IMG alt="345.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7238_345.PNG" /&gt;,&lt;IMG __jive_id="7236" alt="Capture12.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7236_Capture12.PNG" /&gt;.But if i click again that value is showing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the changes and observe why it happens.&lt;/P&gt;&lt;P&gt;Let me know what is the problem happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 10:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257180#M97220</guid>
      <dc:creator />
      <dc:date>2011-09-13T10:47:59Z</dc:date>
    </item>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257181#M97221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why this happens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a race condition between the first action (set selection) and the two actions setting the variable based on the selections range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Well, I don't really think so, but I tried using two buttons, one for the set selection in field, one for the two variable assignments, and it worked in one path. I then tried to add a macro with a sleep within the set selection in field and the two other actions, but with no success. Would be IMHO bad design of the trigger actions anyway, given that you could assign a priority / order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here's a at least workaround: Apply the set also for the Capturedate as set expression to your min/max functions like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubField(Min({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;}Timestamp(LotStartDateTime,'MM-DD-YYYY hh:mm:ss'))&lt;/P&gt;&lt;P&gt; &amp;amp; '(' &amp;amp; Minstring({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;} LotNo) &amp;amp; ')',',',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, I am not sure if your Minstring is such a good idea in terms of performance and results, are you sure you always get the corresponding LotNo to the min LotStartDate returned (or maybe just the minstring (alphabetical ordered) )? And do you still need the subfield when using then min-functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 14:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257181#M97221</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T14:14:24Z</dc:date>
    </item>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257182#M97222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Me again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding my last comment, I would probably try to get the timestamp formatting stuff out of the min functions and do the formatting on the results only. Then, as mentioned, I think I would try to use the results from the min to get a corresponding value for the LotNo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;=timestamp(Min({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;} LotStartDateTime),'MM-DD-YYYY hh:mm:ss') &lt;/P&gt;&lt;P&gt;&amp;amp; '('&amp;amp; FieldValue('LotNo',FieldIndex('LotStartDateTime',Min({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;} LotStartDateTime))) &amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to perform much better also (at least at my site).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 14:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257182#M97222</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T14:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257183#M97223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;I need to display LotstartDateTime along with Lotno that is why i use concatenation there.&lt;/P&gt;&lt;P&gt;Comming to MinString,If&amp;nbsp; am not using ,i am getting ()(emty brackets in the place of LotNo)Because it is not able to find Min(LotNo) and the field is of string type.I know i may not get the LotstartDateTime corresponding Lotno.&lt;/P&gt;&lt;P&gt;Comming to subfield,If i dont use,I am getting all the values in the same line as default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solutions to overcome the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way thans for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 14:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257183#M97223</guid>
      <dc:creator />
      <dc:date>2011-09-13T14:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257184#M97224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your Setanalysis expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can i get the corresponding Min and Max LotNo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you had any solution please share with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 15:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257184#M97224</guid>
      <dc:creator />
      <dc:date>2011-09-13T15:18:17Z</dc:date>
    </item>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257185#M97225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the expression of my last post should result in the full string (timestamp + LotNo), where I lookup the corresponding LotNo to the found minimum LotStartDateTime. I think this should be correct, don't you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 15:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257185#M97225</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T15:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257186#M97226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;swuehl,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Actually i didn't see your previous post and replied.But after use the latest expression, the corresponding lot is getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i can't undestand the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain a bit detailed.If you do like that i may know what you had done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 15:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257186#M97226</guid>
      <dc:creator />
      <dc:date>2011-09-13T15:45:18Z</dc:date>
    </item>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257187#M97227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=timestamp(Min({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;} LotStartDateTime),'MM-DD-YYYY hh:mm:ss') &lt;/P&gt;&lt;P&gt;&amp;amp; '('&amp;amp; FieldValue('LotNo',FieldIndex('LotStartDateTime',Min({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;} LotStartDateTime))) &amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has two parts, first builds the timestamp string:&lt;/P&gt;&lt;P&gt;timestamp(Min({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;} LotStartDateTime),'MM-DD-YYYY hh:mm:ss') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I think this should be clear, finding the min LotStartDate using a set expression to limit on certain CaptureDateTimes, then formatting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second part &lt;/P&gt;&lt;P&gt;&amp;amp; '('&amp;amp; FieldValue('LotNo',FieldIndex('LotStartDateTime',Min({&amp;lt;CaptureDateTime={"&amp;gt;=$(=vStartDate&amp;amp; ' ' &amp;amp; vStartTime)&amp;lt;=$(=vEndDate &amp;amp; ' ' &amp;amp; vEndTime)"} &amp;gt;} LotStartDateTime))) &amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is doing a lookup of the LotNo directly in your fields, I am using &lt;EM&gt;FieldIndex('Fieldname',Fieldvalue) &lt;/EM&gt;to retrieve the index of the just found minimum LotStartDateTime (and hopefully QV will optimize the min search, because it's already performed once) and then input this to the &lt;EM&gt;FieldValue('FieldName',Index)&lt;/EM&gt; function as second parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rest is just adding brackets around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes it clear,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 15:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257187#M97227</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-13T15:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257188#M97228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;Sorry for disturbing you again on the same post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached file&lt;/P&gt;&lt;P&gt;I have changed the data and it is not showing correct results as it is working with previous data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you find what happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 06:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257188#M97228</guid>
      <dc:creator />
      <dc:date>2011-09-14T06:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257189#M97229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see &lt;EM&gt;any &lt;/EM&gt;contained data in your qvw (no tables successfully loaded?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check your load. You got two FROM statements in your load. I get an error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 08:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257189#M97229</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-14T08:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257190#M97230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Swuehl&lt;/P&gt;&lt;P&gt;This time you will found the correct attachment&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 08:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257190#M97230</guid>
      <dc:creator />
      <dc:date>2011-09-14T08:48:01Z</dc:date>
    </item>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257191#M97231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot swuehl&amp;nbsp; I'll try and get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 09:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257191#M97231</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-09-14T09:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257192#M97232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your capture date time is not formatted like 'MM-DD-YYYY hh:mm:ss' ,the format you used before and is used in the actions to select on field and in set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either format your field on load or change your action expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 09:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257192#M97232</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-14T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257193#M97233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how can i made that correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 09:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257193#M97233</guid>
      <dc:creator />
      <dc:date>2011-09-14T09:45:59Z</dc:date>
    </item>
    <item>
      <title>Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257194#M97234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As already said (now I focus in formatting in load):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeData:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;timestamp(CaptureDateTime,'MM-DD-YYYY hh:mm:ss') as CaptureDateTime,&lt;/P&gt;&lt;P&gt;timestamp(LotStartDateTime,'MM-DD-YYYY hh:mm:ss') as LotStartDateTime,&lt;/P&gt;&lt;P&gt;LotNo,&lt;/P&gt;&lt;P&gt; Date(Floor(CaptureDateTime), 'MM-DD-YYYY') as DistinctCaptureDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\2_QVDGenerator\QVD\HistoricalYears.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 10:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257194#M97234</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-14T10:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Range values should hold in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257195#M97235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed my load staement with timestamps for all fields except LotNo and tested but i didn' t get exactly.that is why i posted again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 10:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Range-values-should-hold-in-variable/m-p/257195#M97235</guid>
      <dc:creator />
      <dc:date>2011-09-14T10:57:28Z</dc:date>
    </item>
  </channel>
</rss>

