<?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 Analysis in Load script itself in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453889#M490341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nate,,&lt;/P&gt;&lt;P&gt;could you please reply me once..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 08:43:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-27T08:43:24Z</dc:date>
    <item>
      <title>Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453879#M490307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys i want to know if we can do set analysis on the load script itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 13:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453879#M490307</guid>
      <dc:creator />
      <dc:date>2012-09-28T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453880#M490308</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;I am afraid the simple answer is no. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can use SQL where clauses for SQL SELECTs (using SQL commands) and SQL-like where clauses in LOAD statements (using QV commands).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the value(s) for the script logic, you can get them from the loaded tables using Peek().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 13:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453880#M490308</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-09-28T13:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453881#M490309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I run accross this issue here and there and I build Flags to identify conditions that I need to use in Set Analysis.&amp;nbsp; I then use those flags in formulas in the needed expressions.&amp;nbsp; If you build the flags in Layer 2 of your data model, you could then use where clauses to limit the data load.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe if you let us in on what you need to accomplish, we can help you formulate a solution....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 14:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453881#M490309</guid>
      <dc:creator>hallquist_nate</dc:creator>
      <dc:date>2012-09-28T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453882#M490310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for replying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 14:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453882#M490310</guid>
      <dc:creator />
      <dc:date>2012-09-28T14:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453883#M490313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nate,&lt;/P&gt;&lt;P&gt;could you please tell me, how to write a set expression in load script.. I have an sql query in which a field value prod time has the values from three different Tags. usually, i use the below set expression&amp;nbsp; &lt;/P&gt;&lt;P&gt;Expresion : Sum({$&amp;lt;TagName={fillA}&amp;gt;}[ProdTime])&lt;/P&gt;&lt;P&gt;to get the value corresponding to each Tag.. But now, I want that value to before assigning that value to some variable..&lt;/P&gt;&lt;P&gt;so i want that to be done in load script.&lt;/P&gt;&lt;P&gt;In the above reply, you ar saying about some flags and layer2 of data model. could you please explain me this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453883#M490313</guid>
      <dc:creator />
      <dc:date>2016-06-22T14:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453884#M490318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, you can't use Set Expressions in the Load script, because the data is not in memory yet.&amp;nbsp; Here is how the Layers work.&amp;nbsp; Layer 1 QVD's are simply an extract of the raw database table.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Something like this...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;From Data.Table;&lt;/P&gt;&lt;P&gt;Store Table1 into [Layer1\Table1.qvd];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer 2 is where you further refine your data, making it more user friendly, formatting it correctly, and other transformation activities.&amp;nbsp; This is where you can build flags to identify data for use in Set Analysis in the presentation layer.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Something like this...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;FactTable2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1 as TransactionType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2 as TransactionID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Field3) as TransactionDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Field1='Govt', 1, 0) as &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;GovtTransFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From Table1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In Layer 2, I am specifically identifying a Govt Transaction as a 1, for that field.&amp;nbsp; This will allow me to specifically filter for Govt Transactions, using Set analysis in my Presentation Application.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, since you can't use Set Analysis in the script, I would specifically create a field called [FillA Prod Time].&amp;nbsp; I would do this by writing a bit a script that is something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(TagName ='FillA', ProdTime, Null()) as FillA_ProdTime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a field that populates the Prod Time for every line item that has a FillA Tag name.&amp;nbsp; Then, you can use that field in your presentation application.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453884#M490318</guid>
      <dc:creator>hallquist_nate</dc:creator>
      <dc:date>2016-06-22T14:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453885#M490322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nate, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you so much..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;it is working for my situation.. its really helpful for me..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to use, Resident keyword and get the FillA_ProdTime,,i mean to use in layer2.&lt;/P&gt;&lt;P&gt;because i dont want to crearte the QVD file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 09:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453885#M490322</guid>
      <dc:creator />
      <dc:date>2016-06-23T09:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453886#M490326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the table in memory, you can do a Resident Load.&amp;nbsp; The scripting would be the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453886#M490326</guid>
      <dc:creator>hallquist_nate</dc:creator>
      <dc:date>2016-06-23T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453887#M490332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah i did it... and it worked&lt;/P&gt;&lt;P&gt;But, i am unable to figure it out, why I am unable to get the Field value when i use Peak function..&lt;/P&gt;&lt;P&gt;for my surprise, since i have three tags, i used three if conditions like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF(TagName ='FillA', ProdTime, 0) as FillA_ProdTime,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(TagName ='FillB', ProdTime, 0) as FillB_ProdTime,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(TagName ='FillC', ProdTime, 0) as FillC_ProdTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;than i used peak function to access the value in a variable for further use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET vFillA_ProdTime = Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FillA_ProdTime&lt;/SPAN&gt;',-1,'ProdTable');&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="font-size: 13.3333px;"&gt;vFillB_ProdTime&lt;/SPAN&gt;=Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FillB_ProdTime&lt;/SPAN&gt;',-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;ProdTable&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="font-size: 13.3333px;"&gt;vFillC_ProdTime&lt;/SPAN&gt;=Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FillC_ProdTime&lt;/SPAN&gt;',-1,'&lt;SPAN style="font-size: 13.3333px;"&gt;ProdTable&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, I am getting the value for vFillC_ProdTime but not for other two.. &lt;/P&gt;&lt;P&gt;I am unable to figure it out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, i am able to see the values for field values when i see in table box .. so there is no problem with the code.. some thing wrong with my peek function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453887#M490332</guid>
      <dc:creator />
      <dc:date>2016-06-23T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453888#M490336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nate&lt;/P&gt;&lt;P&gt;could you please tell me, is there a way to get the last value for each field in the table..&lt;/P&gt;&lt;P&gt;To be clear, in the above situation, for each tag I will have lot of rows, but I am interested in the last row of each Tagname. Is there a way to get a last record for each value.&lt;/P&gt;&lt;P&gt;usually, we use Peak function to get the Filed value in a Table,we have to give the row number for accessing the value..&lt;/P&gt;&lt;P&gt;In my case, each tag will have more than one value and i have three tagnames, Its impossible to find, which is the last value for each field.. is there a way or any function to do so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me wit this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 16:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453888#M490336</guid>
      <dc:creator />
      <dc:date>2016-06-24T16:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453889#M490341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nate,,&lt;/P&gt;&lt;P&gt;could you please reply me once..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 08:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453889#M490341</guid>
      <dc:creator />
      <dc:date>2016-06-27T08:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453890#M490344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a timestamp that identifies that last row?&amp;nbsp; if there is, you could use that.&amp;nbsp; Since the Peek function isn't working, maybe you could use a GroupBy function to group the Tagnames and then get the max record.&amp;nbsp; I'd have to see some sample data to get more specific.&amp;nbsp; Is there a specific reason why the Peek function isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453890#M490344</guid>
      <dc:creator>hallquist_nate</dc:creator>
      <dc:date>2016-06-27T12:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453891#M490347</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 nate, thanks for the reply. I have used&amp;nbsp; Max function, but, I am unable to the date value into a variable, but I am able to get the Date value in text object&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;please look at the code below&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;vTagForPO=(FillA, FillB,FillC);&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;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; GetPOTime:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; SELECT TagName as TagsForPOTime,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DateTime as POTime&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; History&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TagName IN$(vTagForPO)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AND DateTime &amp;gt;= '$(vProdStartTime)'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AND DateTime &amp;lt;= '$(vThisExecTime)'&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FactGetPOChangeTime:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TagsForPOTime,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(TagsForPOTime='Fill A',POTime,0) as Fill A Time,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(TagsForPOTime='&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Fill B&lt;/SPAN&gt;',POTime,0) as Fill B Time,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; if(TagsForPOTime='&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Fill C&lt;/SPAN&gt;',POTime,0) as Fill C Time&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Resident GetPOChangeTime;&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;&amp;nbsp; LET vFillATime=Max([Fill A Time]);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LET vFillBTime=Max([Fill B Time]);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;LET vFillCPOTime=Timestamp(Max(Fill C TIme),'YYYY-MM-DD hh:mm:ss');&lt;/SPAN&gt;&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;when i use the this &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Timestamp(Max(Fill C TIme),'YYYY-MM-DD hh:mm:ss'); expression in a text object, I am getting the exact value&lt;/SPAN&gt;&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;//LET vFillCPOTime1=Time(Max(Time#([BoschCPOTIme],' YYYY-MM-DD hh:mm:ss')),'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 13:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453891#M490347</guid>
      <dc:creator />
      <dc:date>2016-06-27T13:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453892#M490352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;damn where did nate go&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453892#M490352</guid>
      <dc:creator />
      <dc:date>2017-06-20T20:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453893#M490361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, been busy with client work and a Job change.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this still an open issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453893#M490361</guid>
      <dc:creator>hallquist_nate</dc:creator>
      <dc:date>2017-06-20T20:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load script itself</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453894#M490369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I was just looking through old threads trying to solve my issue. I think this thread is resolved though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 20:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Load-script-itself/m-p/453894#M490369</guid>
      <dc:creator />
      <dc:date>2017-06-20T20:41:52Z</dc:date>
    </item>
  </channel>
</rss>

