<?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: Date Conversion From Numerical Value in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453452#M13690</link>
    <description>&lt;P&gt;Maybe this.&lt;/P&gt;
&lt;P&gt;Year(Floor("SHIP DATE")) as "Ship Year"&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 06:19:41 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2024-05-17T06:19:41Z</dc:date>
    <item>
      <title>Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453290#M13674</link>
      <description>&lt;P&gt;How can you convert the numerical date/time value to just the year?&lt;/P&gt;
&lt;P&gt;I'm uploading data for a historical view of activity and am trying to extract the year from the shipment date.&lt;/P&gt;
&lt;P&gt;The shipment date is being imported as the numerical value, instead of the actual date. The excel file has this field in date format. I attempted to remove the time stamp but the time value is apparently still there.&lt;/P&gt;
&lt;P&gt;I've tried to convert to date when loading the data with:&amp;nbsp;Year(Date#("SHIP DATE", 'MM/DD/YYYY')) As "Ship Year" but this produces no result. Screen capture below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AMorella_0-1715874793880.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166238iE2F3AD4E1C81CE25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AMorella_0-1715874793880.png" alt="AMorella_0-1715874793880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 15:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453290#M13674</guid>
      <dc:creator>AMorella</dc:creator>
      <dc:date>2024-05-16T15:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453310#M13676</link>
      <description>&lt;P&gt;Have you tried&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Year(Date("SHIP DATE", 'MM/DD/YYYY')) As "Ship Year"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Without the "#"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to know a bit more about the difference: &lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/The-difference-between-Date-and-Date/td-p/12426" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 16:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453310#M13676</guid>
      <dc:creator>rodrigo_martins</dc:creator>
      <dc:date>2024-05-16T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453316#M13677</link>
      <description>&lt;P&gt;Unfortunately, that doesn't produce any result, either.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 17:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453316#M13677</guid>
      <dc:creator>AMorella</dc:creator>
      <dc:date>2024-05-16T17:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453340#M13683</link>
      <description>&lt;PRE&gt;[Dates]:&lt;BR /&gt;Load &lt;BR /&gt;[SHIP DATE],&lt;BR /&gt;Year([SHIP DATE]) AS YEAR,&lt;BR /&gt;Date([SHIP DATE]) AS [SHIP DATE FORMATTED]&lt;BR /&gt;Inline [&lt;BR /&gt;SHIP DATE&lt;BR /&gt;43454.817361111&lt;BR /&gt;44102.817361111&lt;BR /&gt;44176.859722222&lt;BR /&gt;44060.761111111&lt;BR /&gt;];&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1715882491569.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166249i2D9A9C7A3ED1D9B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1715882491569.png" alt="marksouzacosta_0-1715882491569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 18:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453340#M13683</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-05-16T18:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453344#M13684</link>
      <description>&lt;P&gt;Unfortunately, that doesn't work, either. I'm wondering if there's something wrong with the excel spreadsheet format that's forcing a bad result. I've pulled in Date/Time fields before without issue.&lt;/P&gt;
&lt;P&gt;It was originally a Date/Time field. I cut the time element from the field and it's formatted as a date...but only puts the numerical values shown; and it doesn't let me calculate the year.&lt;/P&gt;
&lt;P&gt;I also tried to force the year by creating a Column in the spreadsheet, but this doesn't produce a value, either.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 18:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453344#M13684</guid>
      <dc:creator>AMorella</dc:creator>
      <dc:date>2024-05-16T18:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453362#M13689</link>
      <description>&lt;P&gt;Can you share the spreadsheet file?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 18:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453362#M13689</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-05-16T18:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453452#M13690</link>
      <description>&lt;P&gt;Maybe this.&lt;/P&gt;
&lt;P&gt;Year(Floor("SHIP DATE")) as "Ship Year"&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 06:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453452#M13690</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-05-17T06:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion From Numerical Value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453646#M13692</link>
      <description>&lt;P&gt;What could be happening here is just a formatting issue. In Qlik's initial script, some culture variables are defined, such as date and time formats, decimal and thousands separators, money masks, month names, among others.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rodrigo_martins_0-1715948019880.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166324iB2EA79CB4D0F3CF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="rodrigo_martins_0-1715948019880.png" alt="rodrigo_martins_0-1715948019880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If your script is in a culture where the decimal separator is the comma (like pt-br and unlike en-us), you will face this behavior.&lt;/P&gt;
&lt;P&gt;The solution would be an expression like this:&lt;/P&gt;
&lt;PRE&gt;=Year(Date(Num#([SHIP DATE],'###','.',',')))&lt;/PRE&gt;
&lt;P&gt;You can apply this expression on the script, creating a new field, or directly on the visualization. Both should work.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 12:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Date-Conversion-From-Numerical-Value/m-p/2453646#M13692</guid>
      <dc:creator>rodrigo_martins</dc:creator>
      <dc:date>2024-05-17T12:16:23Z</dc:date>
    </item>
  </channel>
</rss>

