<?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: How do I pull Month and Year from a BMC SQL Timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591750#M1122663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you said it worked fine when you tried it without the&amp;nbsp; Month function, I would suggest storing the table in a qvd and then read from the QVD and then use the function there. Just trying different stuff until we crack this down. Just do a limited load with like 100 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 20:14:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-30T20:14:32Z</dc:date>
    <item>
      <title>How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591745#M1122658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pulling the data displays fine as 3/17/2011 2:40:42 AM. The SQL Field attri are Timestamp 23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried pre-load and in line .. below is a partial of my script. As you see the 2 "Month" tries I have commented out both return lexical errors or what ever.... I have also tried the date(floor(PBI."Last Modified Date")) as Month, with the same lexical error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also keep in mind I am not a DBA or programmer.. I am a network and telecom guy trying to help out and streamline processes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load dual(String,Num) as Month inline&lt;/P&gt;&lt;P&gt;[String,Num&lt;/P&gt;&lt;P&gt;Jan,1&lt;/P&gt;&lt;P&gt;Feb,2&lt;/P&gt;&lt;P&gt;Mar,3&lt;/P&gt;&lt;P&gt;Apr,4&lt;/P&gt;&lt;P&gt;May,5&lt;/P&gt;&lt;P&gt;June,6&lt;/P&gt;&lt;P&gt;July,7&lt;/P&gt;&lt;P&gt;Aug,8&lt;/P&gt;&lt;P&gt;Sept,9&lt;/P&gt;&lt;P&gt;Oct,10&lt;/P&gt;&lt;P&gt;Nov,11&lt;/P&gt;&lt;P&gt;Dec,12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [AR System ODBC Data Source] (XUserId is TdCTRRNMBDZaWQZNeA, XPassword is KAYRJEFMSDbKWcFGUBTA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&amp;nbsp;&amp;nbsp; SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; PBI.Assignee,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Assigned Group",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Assignee Pblm Mgr", &lt;/P&gt;&lt;P&gt;&amp;nbsp; PBI."Assigned Group Pblm Mgr" as "PM Group", &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Description" as "Short Description",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Detailed Decription" as "Description",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."First Name",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."First Reported On",&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTH(PBI."First Reported On") as "Month",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Last Modified Date",&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;//&amp;nbsp; month(Timestamp#(PBI."Last Modified Date", 'MM/DD/YYYY hh:mm:ss')) as month,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591745#M1122658</guid>
      <dc:creator />
      <dc:date>2014-01-30T19:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591746#M1122659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Chuck,&lt;/P&gt;&lt;P&gt;Please do a preload and use your functions there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount;&lt;/P&gt;&lt;P&gt;SQL Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;From DataBase;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: The code above SQL Select is called a preload and any Qlikview function can be used there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591746#M1122659</guid>
      <dc:creator />
      <dc:date>2014-01-30T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591747#M1122660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MONTH(PBI."First Reported On") as "Month"&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but it errored out as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591747#M1122660</guid>
      <dc:creator />
      <dc:date>2014-01-30T19:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591748#M1122661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mind putting the quotes outside the entire field name like &lt;STRONG&gt;"PBI.First Reported On"&lt;/STRONG&gt; for all the fields where there are special characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591748#M1122661</guid>
      <dc:creator />
      <dc:date>2014-01-30T19:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591749#M1122662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried and it doesnt work... it doesnt work on the normal SQL Select if I move or change the ""&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591749#M1122662</guid>
      <dc:creator />
      <dc:date>2014-01-30T19:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591750#M1122663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you said it worked fine when you tried it without the&amp;nbsp; Month function, I would suggest storing the table in a qvd and then read from the QVD and then use the function there. Just trying different stuff until we crack this down. Just do a limited load with like 100 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591750#M1122663</guid>
      <dc:creator />
      <dc:date>2014-01-30T20:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591751#M1122664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but I have a question... if I load the timestamp fields in another file and I refresh the main page will it also reload the timestamp page?? The reason I ask is I am setting this up for a realtime dashboard for problem tickets and if it isnt able to update from clicking the Update button it will confuse people &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591751#M1122664</guid>
      <dc:creator />
      <dc:date>2014-01-30T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591752#M1122665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then in that case store and read from the qvd in the same QVW file where you are reading from the DB. If you have two different qvws then both has to be reloaded for the data to be updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591752#M1122665</guid>
      <dc:creator />
      <dc:date>2014-01-30T20:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591753#M1122666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I try that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Jan 30, 2014 at 3:27 PM, Ajay Prabhakaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591753#M1122666</guid>
      <dc:creator />
      <dc:date>2014-01-30T20:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pull Month and Year from a BMC SQL Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591754#M1122667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL Select * &lt;/P&gt;&lt;P&gt;From DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Customer into Customer.qvd (qvd);&lt;/P&gt;&lt;P&gt;Drop Table Customer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;Load *, Month([&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PBI.First Reported On&lt;/STRONG&gt;]) as Reported_Month&lt;/P&gt;&lt;P&gt;From Customer.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For limited load:&lt;/P&gt;&lt;P&gt;Go to Edit Script &amp;gt; Debug(in the top) &amp;gt; Limited Load (check box) &amp;gt; enter 100 then Run&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-pull-Month-and-Year-from-a-BMC-SQL-Timestamp/m-p/591754#M1122667</guid>
      <dc:creator />
      <dc:date>2014-01-30T20:49:01Z</dc:date>
    </item>
  </channel>
</rss>

