<?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: Datefield in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164224#M94547</link>
    <description>&lt;P&gt;Unfortunately this does not work.&lt;BR /&gt;The ATFLV field has several such values, not just the one&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 08:30:17 GMT</pubDate>
    <dc:creator>woody1982</dc:creator>
    <dc:date>2024-01-23T08:30:17Z</dc:date>
    <item>
      <title>Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2163895#M94507</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to analyse the ATFLV field from the SAP table AUSP.&lt;/P&gt;
&lt;P&gt;However, the date entered is in the format "2.0230502000000000000E+007".&lt;/P&gt;
&lt;P&gt;How can I convert this into a correct date?&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 13:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2163895#M94507</guid>
      <dc:creator>woody1982</dc:creator>
      <dc:date>2024-01-22T13:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2163933#M94510</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109104"&gt;@woody1982&lt;/a&gt;&amp;nbsp;Try with TimeStamp(), more can found here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/number-interpretation-variables.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/number-interpretation-variables.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 14:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2163933#M94510</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-22T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164139#M94534</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good morning&lt;BR /&gt;Unfortunately nothing works&lt;/P&gt;
&lt;P&gt;Timestamp( ATFLV,'YYYY-MM-DD hh.mm')&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 05:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164139#M94534</guid>
      <dc:creator>woody1982</dc:creator>
      <dc:date>2024-01-23T05:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164157#M94535</link>
      <description>&lt;P&gt;If the value from &lt;FONT face="courier new,courier"&gt;AUSP.ATFLV&lt;/FONT&gt; is read into Qlik Sense as "2.0230502000000000000E+007" and that then should mean 2023-05-02, my suggestion is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data:
NOCONCATENATE LOAD
  *, 
  Date(Date#(Left(ATFLV, 9) * pow(10, 7), 'YYYYMMDD'), 'YYYY-MM-DD') AS ATFLVDate;
LOAD * INLINE [
  ATFLV
  2.0230502000000000000E+007
];
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would give you:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steeefan_0-1705989699735.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127590i4C7C53EA03DFD2CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steeefan_0-1705989699735.png" alt="steeefan_0-1705989699735.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 06:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164157#M94535</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2024-01-23T06:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164224#M94547</link>
      <description>&lt;P&gt;Unfortunately this does not work.&lt;BR /&gt;The ATFLV field has several such values, not just the one&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164224#M94547</guid>
      <dc:creator>woody1982</dc:creator>
      <dc:date>2024-01-23T08:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164228#M94548</link>
      <description>&lt;P&gt;What do you mean?&lt;/P&gt;
&lt;P&gt;This was just an example based on the value you posted. If all the values in &lt;FONT face="courier new,courier"&gt;AUSP.ATFLV&lt;/FONT&gt; are formatted the same way, which they most likely will be, then the transformation I posted will work:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Date(Date#(Left(ATFLV, 9) * pow(10, 7), 'YYYYMMDD'), 'YYYY-MM-DD') AS ATFLVDate&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I only used &lt;FONT face="courier new,courier"&gt;LOAD * INLINE&lt;/FONT&gt; to get that specific value into my Qlik script.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164228#M94548</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2024-01-23T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164233#M94549</link>
      <description>&lt;P&gt;Ah okay, I understand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But unfortunately it still doesn't work&lt;/P&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;P&gt;Date(Date#(Left(ATFLV, 9) * pow(10, 7), 'YYYYMMDD'), 'YYYY-MM-DD') AS ATFLVDate&lt;/P&gt;
&lt;P&gt;the result see screenshot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164233#M94549</guid>
      <dc:creator>woody1982</dc:creator>
      <dc:date>2024-01-23T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164239#M94550</link>
      <description>&lt;P&gt;All I can say is: Works for me for any value that is formatted as specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;
Data:
NOCONCATENATE LOAD
  *, 
  Date(Date#(Left(ATFLV, 9) * pow(10, 7), 'YYYYMMDD'), 'YYYY-MM-DD') AS ATFLVDate;
LOAD * INLINE [
  ATFLV
  2.0230502000000000000E+007
  2.0230227000000000000E+007
  2.0230101000000000000E+007
  1.9700101000000000000E+007
  2.0200314000000000000E+007
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steeefan_1-1706000221554.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127607i8BF6803953CAAB38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steeefan_1-1706000221554.png" alt="steeefan_1-1706000221554.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you share the script you are using and ideally an export of some of the &lt;FONT face="courier new,courier"&gt;ATFLV&lt;/FONT&gt; values?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164239#M94550</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2024-01-23T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164243#M94553</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;LI-CODE lang="markup"&gt;SET ThousandSep='.';
SET DecimalSep=',';
SET MoneyThousandSep='.';
SET MoneyDecimalSep=',';
SET MoneyFormat='#.##0,00 €;-#.##0,00 €';
SET TimeFormat='hh:mm:ss';
SET DateFormat='YYYY-MM-DD';
SET TimestampFormat='YYYY-MM-DD hh:mm:ss[.fff]';
SET FirstWeekDay=0;
SET BrokenWeeks=0;
SET ReferenceDay=4;
SET FirstMonthOfYear=1;
SET CollationLocale='de-DE';
SET CreateSearchIndexOnReload=0;
SET MonthNames='Jan.;Feb.;März;Apr.;Mai;Juni;Juli;Aug.;Sep.;Okt.;Nov.;Dez.';
SET LongMonthNames='Januar;Februar;März;April;Mai;Juni;Juli;August;September;Oktober;November;Dezember';
SET DayNames='Mo.;Di.;Mi.;Do.;Fr.;Sa.;So.';
SET LongDayNames='Montag;Dienstag;Mittwoch;Donnerstag;Freitag;Samstag;Sonntag';
SET NumericalAbbreviation='3:k;6:M;9:G;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';

set vReplaceLeading0 = replace(ltrim(replace([$1], '0', ' ')), ' ', 0);


LOAD
    $(vReplaceLeading0(OBJEK)) as OBJEK,
    ATINN as %Key_ATINN,
    KLART as %Key_KLART,
    ATINN,
    KLART,
    ATWRT,
    ATFLV,
    Date(Date#(Left(ATFLV, 9) * pow(10, 7), 'YYYYMMDD'), 'YYYY-MM-DD') AS ATFLVDate
FROM [lib://Purchase:DataFiles/0010_QVD_Raw_Z_ERP_NEW_AUSP.qvd]
(qvd)
where
OBJEK &amp;gt; 000700000 and OBJEK &amp;lt; 0007999999;


Exit Script​&lt;/LI-CODE&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Here is the Script and the download of ATFLV&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 09:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164243#M94553</guid>
      <dc:creator>woody1982</dc:creator>
      <dc:date>2024-01-23T09:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164254#M94554</link>
      <description>&lt;P&gt;Still works for me: &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ATFLV:
NOCONCATENATE LOAD
  ATFLV, 
  Date(Date#(Left(ATFLV, 9) * pow(10, 7), 'YYYYMMDD'), 'YYYY-MM-DD') AS ATFLVDate
FROM
  [lib://00 Files/Debug/ATFLV.xlsx]
  (ooxml, embedded labels, table is Tabelle1);&lt;/LI-CODE&gt;
&lt;DIV id="tinyMceEditor_4f7d18a5c7c926steeefan_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard Image.jpg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127609iC28B6A6403F12A4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Clipboard Image.jpg" alt="Clipboard Image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just to be sure, I also stored these values as a QVD file. When opening it in a QVD explorer, the values are shown as expected, i.e. 2.02212310000000000E+007. But when previewing the same QVD in Qlik Sense, it shows something else:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard Image (1).jpg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127610i66439CD135ED2AFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Clipboard Image (1).jpg" alt="Clipboard Image (1).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When loaded from QVD, the format is apparently different. Maybe it's only because I created the file myself from your Excel export. Can you verify this?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 09:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164254#M94554</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2024-01-23T09:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164682#M94596</link>
      <description>&lt;P&gt;Sorry, I'm still an absolute beginner &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I can't understand that&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 06:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164682#M94596</guid>
      <dc:creator>woody1982</dc:creator>
      <dc:date>2024-01-24T06:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164703#M94597</link>
      <description>&lt;P&gt;In the QS data load editor, navigate to your library, then open it and select the QVD file you want to get the data from:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;On the right under "Data connections", select "Purchase:DataFiles"&lt;/LI&gt;
&lt;LI&gt;In there, select "0010_QVD_Raw_Z_ERP_NEW_AUSP.qvd"&lt;/LI&gt;
&lt;LI&gt;Click "Select"&lt;/LI&gt;
&lt;LI&gt;In the preview window, locate the column ATFLV and check it the format is the same as the one you specified earlier, i.e. 2.0230502000000000000E+007, or if its different.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;In my screenshot from yesterday, I have the data load preview on the left and the QVD opened in an external &lt;A href="https://www.etl-tools.com/products/q-eye.html" target="_blank" rel="noopener"&gt;QVD viewer application&lt;/A&gt; on the right:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steeefan_0-1706080513493.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127699i4CF1D4B133F696B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steeefan_0-1706080513493.png" alt="steeefan_0-1706080513493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the format in the preview window does not match the one you specified, my parsing script will not work and needs to be adapted.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 07:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2164703#M94597</guid>
      <dc:creator>steeefan</dc:creator>
      <dc:date>2024-01-24T07:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Datefield</title>
      <link>https://community.qlik.com/t5/App-Development/Datefield/m-p/2412309#M94724</link>
      <description>&lt;P&gt;Now we have the solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date(Date#(num(num(replace([ATFLV],'.',','),'(dez)'),'00000000'),'YYYYMMDD'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 05:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Datefield/m-p/2412309#M94724</guid>
      <dc:creator>woody1982</dc:creator>
      <dc:date>2024-01-30T05:51:07Z</dc:date>
    </item>
  </channel>
</rss>

