<?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: Issue with date format in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-date-format/m-p/2129067#M91829</link>
    <description>&lt;P&gt;Hi and many thanks for taking the time to respond.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hadn't tried that, when I moved floor inside it returned blank values, so I removed the formatting and it works.&lt;/P&gt;
&lt;P&gt;Originally:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;MvT281_load:

LOAD 

Floor(date([BUDAT_MKPF],'DD.MM.YYYY')) as DATE281,

CHARG&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MvT281_load:&lt;BR /&gt;LOAD &lt;BR /&gt;date(Floor([BUDAT_MKPF])) as DATE281,&lt;BR /&gt;CHARG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 07:24:46 GMT</pubDate>
    <dc:creator>Daryn</dc:creator>
    <dc:date>2023-10-17T07:24:46Z</dc:date>
    <item>
      <title>Issue with date format</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-date-format/m-p/2128877#M91820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an app that works, loading data in excel format, (from an SAP export). I am now trying to point this at a QVD (that is created using the Qlik/SAP connector). So new field names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The two date fields created in the second part of the load (DATE281 &amp;amp; DATE501 are not working correctly. The issue appears to be with the format.&lt;/P&gt;
&lt;P&gt;In the first part (along with other fields I am loading;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[MSEG]:
LOAD
Date(BUDAT_MKPF,'DD.MM.YYYY') AS [MSEG BUDAT],
BWART
FROM [lib://QVD-Generator_Connector/MSEG.qvd] (qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[MSEG BUDAT]&amp;nbsp; appears to be fine and correct;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daryn_2-1697468312813.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/118327i0BBA72C1E1EAA6C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daryn_2-1697468312813.png" alt="Daryn_2-1697468312813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I have;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// USED TO ONLY CALCULATE THE FIRST BOOKING IN (501) DATE AGAINST THE FIRST (281) BOOKED OUT DATE

Set dataManagerTables = '','MvT281', 'MvT501';     

For each name in $(dataManagerTables)

Let index = 0;

Let currentName = name;

Let tableNumber = TableNumber(name);

Let matches = 0;

Do while not IsNull(tableNumber) or (index &amp;gt; 0 and matches &amp;gt; 0)

index = index + 1;

currentName = name &amp;amp; '-' &amp;amp; index;

tableNumber = TableNumber(currentName)

matches = Match('$(currentName)', $(dataManagerTables));

Loop

If index &amp;gt; 0 then

Rename Table '$(name)' to '$(currentName)';

EndIf;

Next;

Set dataManagerTables = ;



MvT281_load:

LOAD 

Floor(date([BUDAT_MKPF],'DD.MM.YYYY')) as DATE281,

CHARG

FROM [lib://QVD-Generator_Connector/MSEG.qvd] (qvd) where BWART = 281;    



main:

NOCONCATENATE LOAD FirstValue (DATE281) AS DATE281,

CHARG

resident MvT281_load

group by CHARG

order by DATE281 asc

;

drop table MvT281_load;



MvT501_load:

LOAD  

Floor(date([BUDAT_MKPF],'DD.MM.YYYY')) AS DATE501,

CHARG

    

FROM [lib://QVD-Generator_Connector/MSEG.qvd] (qvd) where BWART = 501;



outer join (main)

LOAD FirstValue(DATE501) AS DATE501,

CHARG

resident MvT501_load

group by CHARG

order by DATE501 asc

;



drop table MvT501_load;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But both those date fields appear in the app as if they have not been formatted?&lt;/P&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="Daryn_0-1697467034130.png" style="width: 482px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/118324iECFA6BA212EEC019/image-dimensions/482x121?v=v2" width="482" height="121" role="button" title="Daryn_0-1697467034130.png" alt="Daryn_0-1697467034130.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried several option of the formatting (and with date#) but all come back in this wrong (above image) format.&lt;/P&gt;
&lt;P&gt;Any help appreciated.&lt;/P&gt;
&lt;P&gt;Thanks Daryn&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-date-format/m-p/2128877#M91820</guid>
      <dc:creator>Daryn</dc:creator>
      <dc:date>2023-10-16T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with date format</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-date-format/m-p/2128903#M91822</link>
      <description>&lt;P&gt;Could you try to put Floor inside the Date function and not outside?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 16:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-date-format/m-p/2128903#M91822</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-10-16T16:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with date format</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-date-format/m-p/2129067#M91829</link>
      <description>&lt;P&gt;Hi and many thanks for taking the time to respond.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hadn't tried that, when I moved floor inside it returned blank values, so I removed the formatting and it works.&lt;/P&gt;
&lt;P&gt;Originally:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;MvT281_load:

LOAD 

Floor(date([BUDAT_MKPF],'DD.MM.YYYY')) as DATE281,

CHARG&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MvT281_load:&lt;BR /&gt;LOAD &lt;BR /&gt;date(Floor([BUDAT_MKPF])) as DATE281,&lt;BR /&gt;CHARG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 07:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-date-format/m-p/2129067#M91829</guid>
      <dc:creator>Daryn</dc:creator>
      <dc:date>2023-10-17T07:24:46Z</dc:date>
    </item>
  </channel>
</rss>

