<?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: MonthName is not working when I do script without LOAD statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821798#M1027400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but I dont know how to join the 2 tables by using LOAD statement. But I did it in the SELECT alone style. Please see below the script I am using currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO OTRS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; otrs.ticket.tn as "Ticket #",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; otrs.ticket.ticket_state_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month (otrs.ticket.create_time)as "Month",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year (otrs.ticket.create_time) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; otrs.ticket_state.name as "Status"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM otrs.ticket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN otrs.ticket_state&lt;/P&gt;&lt;P&gt;ON otrs.ticket.ticket_state_id=otrs.ticket_state.id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 is otrs.ticket&lt;/P&gt;&lt;P&gt;Table 2 is otrs.ticket_state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1 the column &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ticket_state_id = table 2 column id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;As a result the ticket # from table 1 will link to status from table 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;How should I do the above by using LOAD statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 14:35:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-03T14:35:01Z</dc:date>
    <item>
      <title>MonthName is not working when I do script without LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821796#M1027398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am joining tables (LEFT JOIN). When I use MonthName (Date Field) - I should get the result as Jan 2014 but I am getting only Jan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Script sample: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P&gt;B,&lt;/P&gt;&lt;P&gt;C,&lt;/P&gt;&lt;P&gt;Date Field,&lt;/P&gt;&lt;P&gt;MonthName (Date Field) as Month,&lt;/P&gt;&lt;P&gt;From Table 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I do the scripting using LOAD statement like below the result is Jan 2014... Why? Help required please...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;B,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;C,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Date Field,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;MonthName (Date Field) as Month,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;From Table 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821796#M1027398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-03T14:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: MonthName is not working when I do script without LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821797#M1027399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script syntax doesn't look syntactically correct , but i'm guessing that if you put the monthname() in the select statement the function is processed by the database and the database function may give you a different result than the qlikview function of the same name.&amp;nbsp; LOAD is strictly qlikview , so if you can't do the manipulation in the SQL you can do it in qlikview in the load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821797#M1027399</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-03T14:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: MonthName is not working when I do script without LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821798#M1027400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but I dont know how to join the 2 tables by using LOAD statement. But I did it in the SELECT alone style. Please see below the script I am using currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO OTRS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; otrs.ticket.tn as "Ticket #",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; otrs.ticket.ticket_state_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month (otrs.ticket.create_time)as "Month",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year (otrs.ticket.create_time) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; otrs.ticket_state.name as "Status"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM otrs.ticket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN otrs.ticket_state&lt;/P&gt;&lt;P&gt;ON otrs.ticket.ticket_state_id=otrs.ticket_state.id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 is otrs.ticket&lt;/P&gt;&lt;P&gt;Table 2 is otrs.ticket_state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1 the column &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ticket_state_id = table 2 column id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;As a result the ticket # from table 1 will link to status from table 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;How should I do the above by using LOAD statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821798#M1027400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-03T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: MonthName is not working when I do script without LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821799#M1027401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Check your field in SQL is stored as a Date Time Field and not text&lt;/P&gt;&lt;P&gt;2. Check format in Settings &amp;gt; Document Properties&amp;gt; Number if that is set to your liking&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If 1 and 2 fail try the following: &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;Date (MonthName (Date Field), 'MMM-YYYY') as Month,&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: 13px;"&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: 13px;"&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: 13px;"&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: 13px;"&gt;RL&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821799#M1027401</guid>
      <dc:creator />
      <dc:date>2015-03-03T14:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: MonthName is not working when I do script without LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821800#M1027402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you name the 2 fields the same, QlikView will link them automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;fieldname as alias&lt;/P&gt;&lt;P&gt;resident etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthName-is-not-working-when-I-do-script-without-LOAD-statement/m-p/821800#M1027402</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-03-03T14:38:39Z</dc:date>
    </item>
  </channel>
</rss>

