<?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 Date() function working as a measure but not in script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-function-working-as-a-measure-but-not-in-script/m-p/1959718#M79097</link>
    <description>&lt;P&gt;I have the following line of code:&lt;/P&gt;
&lt;P&gt;[Data]:&lt;BR /&gt;LOAD&lt;BR /&gt;[ID_Factura],&lt;BR /&gt;[Date],&lt;BR /&gt;Date(Date#([Date],'M/D/YYYY'),'DD/MM/YYYY') as miDate,&lt;BR /&gt;[Market],&lt;BR /&gt;[Product],&lt;BR /&gt;[Units],&lt;BR /&gt;[Sales]&lt;BR /&gt;FROM [lib://AttachedFiles/Data Workshop.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Data);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;miDate appears as null when I load the script. However when I write the same exact format line in any visualization, it works fine:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EugeniaCastilla_0-1658681266039.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84946i44C339285F191E8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EugeniaCastilla_0-1658681266039.png" alt="EugeniaCastilla_0-1658681266039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Why might this be happening? I have deleted all the time Formats and everything just in case it was that and nothing ... please help&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jul 2022 16:48:21 GMT</pubDate>
    <dc:creator>EugeniaCastilla</dc:creator>
    <dc:date>2022-07-24T16:48:21Z</dc:date>
    <item>
      <title>Date() function working as a measure but not in script</title>
      <link>https://community.qlik.com/t5/App-Development/Date-function-working-as-a-measure-but-not-in-script/m-p/1959718#M79097</link>
      <description>&lt;P&gt;I have the following line of code:&lt;/P&gt;
&lt;P&gt;[Data]:&lt;BR /&gt;LOAD&lt;BR /&gt;[ID_Factura],&lt;BR /&gt;[Date],&lt;BR /&gt;Date(Date#([Date],'M/D/YYYY'),'DD/MM/YYYY') as miDate,&lt;BR /&gt;[Market],&lt;BR /&gt;[Product],&lt;BR /&gt;[Units],&lt;BR /&gt;[Sales]&lt;BR /&gt;FROM [lib://AttachedFiles/Data Workshop.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Data);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;miDate appears as null when I load the script. However when I write the same exact format line in any visualization, it works fine:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EugeniaCastilla_0-1658681266039.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84946i44C339285F191E8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EugeniaCastilla_0-1658681266039.png" alt="EugeniaCastilla_0-1658681266039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Why might this be happening? I have deleted all the time Formats and everything just in case it was that and nothing ... please help&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 16:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-function-working-as-a-measure-but-not-in-script/m-p/1959718#M79097</guid>
      <dc:creator>EugeniaCastilla</dc:creator>
      <dc:date>2022-07-24T16:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date() function working as a measure but not in script</title>
      <link>https://community.qlik.com/t5/App-Development/Date-function-working-as-a-measure-but-not-in-script/m-p/1959724#M79099</link>
      <description>&lt;P&gt;Try this Just to figure out what is happening:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alt(&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date(Date([Date],'MM/DD/YYYY'),'DD/MM/YYYY'),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date([Date])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;)&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;as miDate,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;By seeing your table I guess the date field is already in date format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 19:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-function-working-as-a-measure-but-not-in-script/m-p/1959724#M79099</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2022-07-24T19:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date() function working as a measure but not in script</title>
      <link>https://community.qlik.com/t5/App-Development/Date-function-working-as-a-measure-but-not-in-script/m-p/1959792#M79101</link>
      <description>&lt;P&gt;Your formula worked ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EugeniaCastilla_0-1658732692557.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84963i19EF6BAF9A9F3161/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EugeniaCastilla_0-1658732692557.png" alt="EugeniaCastilla_0-1658732692557.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please please! Explain why becasue I am not understanding anything. Up to this point my approach has always worked.... I don0t understand why it doesn't on the script but yes in visualizations..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 07:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-function-working-as-a-measure-but-not-in-script/m-p/1959792#M79101</guid>
      <dc:creator>EugeniaCastilla</dc:creator>
      <dc:date>2022-07-25T07:05:59Z</dc:date>
    </item>
  </channel>
</rss>

