<?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 Loading Month Values from Excel File in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2422371#M95794</link>
    <description>&lt;P&gt;I am trying to load dates coming from an Excel file. The field name in Excel is Month. The values are set to a custom format where it shows the date as (MMM-YY) for example "Jan-23". I wan to load the Jan portion of the value into Qlik as Month. When I try to so, qlik makes the values into 3 digits like 450 rather then the 3 letters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what I was placing in the data load editor:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;Left("Month",3) as Q_Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 14:20:11 GMT</pubDate>
    <dc:creator>Qlik_dev03</dc:creator>
    <dc:date>2024-02-22T14:20:11Z</dc:date>
    <item>
      <title>Loading Month Values from Excel File</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2422371#M95794</link>
      <description>&lt;P&gt;I am trying to load dates coming from an Excel file. The field name in Excel is Month. The values are set to a custom format where it shows the date as (MMM-YY) for example "Jan-23". I wan to load the Jan portion of the value into Qlik as Month. When I try to so, qlik makes the values into 3 digits like 450 rather then the 3 letters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what I was placing in the data load editor:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;Left("Month",3) as Q_Month&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 14:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2422371#M95794</guid>
      <dc:creator>Qlik_dev03</dc:creator>
      <dc:date>2024-02-22T14:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Month Values from Excel File</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2422415#M95802</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can try this :&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;LOAD
    Month("Month") as Q_Month&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Feb 2024 14:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2422415#M95802</guid>
      <dc:creator>Pierrick</dc:creator>
      <dc:date>2024-02-22T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Month Values from Excel File</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2422431#M95805</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;try this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhanThanhSon_0-1708614543959.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160444i69D0AE2A130A617C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhanThanhSon_0-1708614543959.png" alt="PhanThanhSon_0-1708614543959.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards Son&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2422431#M95805</guid>
      <dc:creator>PhanThanhSon</dc:creator>
      <dc:date>2024-02-22T15:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Month Values from Excel File</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2423169#M95874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/289464"&gt;@Qlik_dev03&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason you are getting the result you are getting is that Excel is storing the value as a date, which behind the scenes is the number of days since 1st Jan 1900 (before then are negative numbers). Today the date is&amp;nbsp;&lt;STRONG&gt;45346&lt;/STRONG&gt;, so you can see why the left three characters comes out as it does.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142975"&gt;@Pierrick&lt;/a&gt;'s solution is spot on.&lt;/P&gt;
&lt;P&gt;It's worth knowing you can get all kinds of other variations from there also:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Year(Month) as Year,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Month(Month) as [Month Name],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date(MonthStart(Month), 'MMM-YYY') as [Month Year],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Q' &amp;amp; ceil(Month/3) as Quarter,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;There are many more functions also.&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 20:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Month-Values-from-Excel-File/m-p/2423169#M95874</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2024-02-24T20:49:09Z</dc:date>
    </item>
  </channel>
</rss>

