<?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: Getting a date from a column in a select, then using it in a text object after reformatting it in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728836#M1071844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upper(text(month(Date))) will give you that. If that gives you APRIL, then use&lt;/P&gt;&lt;P&gt;Left(Upper(text(month(Date))),3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 18:59:28 GMT</pubDate>
    <dc:creator>simenkg</dc:creator>
    <dc:date>2014-08-06T18:59:28Z</dc:date>
    <item>
      <title>Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728834#M1071842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I would like to select the top record from a SQL Server table, like SELECT TOP 1 Date FROM Table_X, and assign that value to a variable, then pull the month out from the date, and then for lack of a better word, substring the first three letters of the month, and then apply that three letter word to a text object field... anyone know how this can be done?&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, 06 Aug 2014 18:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728834#M1071842</guid>
      <dc:creator />
      <dc:date>2014-08-06T18:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728835#M1071843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So something like 04/01/2014 would become -&amp;gt; April -&amp;gt; APR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 18:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728835#M1071843</guid>
      <dc:creator />
      <dc:date>2014-08-06T18:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728836#M1071844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upper(text(month(Date))) will give you that. If that gives you APRIL, then use&lt;/P&gt;&lt;P&gt;Left(Upper(text(month(Date))),3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 18:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728836#M1071844</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-06T18:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728837#M1071845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok great, what abou the load script. How would I pull a top value from a tablecolumn and assign it to a variable?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 19:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728837#M1071845</guid>
      <dc:creator />
      <dc:date>2014-08-06T19:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728838#M1071846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on how you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a table like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates:&lt;/P&gt;&lt;P&gt;load Date from Table1 order by Date desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vDate = peek('Date',0,'Dates');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should give you the highest Date. If it gives you the lowest change desc to asc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really ONLY need the top date, then you can load a date like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates:&lt;/P&gt;&lt;P&gt;Load max(Date) as MaxDate from Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vDate = peek('MaxDate',0,'Dates');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 19:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728838#M1071846</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-08-06T19:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728839#M1071847</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;After you made connection string with database&lt;/P&gt;&lt;P&gt;same SQL will work&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;SELECT TOP 1 Date FROM Table_X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Later use peek function to hold a value to variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;ASHFAQ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 19:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728839#M1071847</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-06T19:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728840#M1071848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I must be missing something, here's what I got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; Date:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;SPAN style="font-size: 8pt;"&gt; SELECT TOP 1 REPORT_DATE &lt;BR /&gt;FROM Sales;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vMonth&lt;/EM&gt;&lt;/STRONG&gt;&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;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('REPORT_DATE',0,'Date'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;When I step thru the load, the value of vMonth is null, but it shows one record has been loaded into the table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 19:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728840#M1071848</guid>
      <dc:creator />
      <dc:date>2014-08-06T19:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a date from a column in a select, then using it in a text object after reformatting it</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728841#M1071849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try below&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;vMonth&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;('REPORT_DATE',-1,'Date');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 19:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-date-from-a-column-in-a-select-then-using-it-in-a-text/m-p/728841#M1071849</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-06T19:21:08Z</dc:date>
    </item>
  </channel>
</rss>

