<?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: Dates with different formats in same column.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-with-different-formats-in-same-column/m-p/1037690#M923162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the Alt() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14606691579355512 jive_text_macro" jivemacro_uid="_14606691579355512"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;If( Date &amp;lt;= [Cancel Date] , 'AA' , 'BB') as Flag;&lt;/P&gt;
&lt;P&gt;LOAD Date(Alt(Date#(Date,'DD-MMM-YYYY'),Date#(Date,'MM/DD/YYYY hh:mm:ss'),Date(Date),Date))as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(Alt( Date#([Cancel Date],'DD-MMM-YYYY'),Date#(&amp;nbsp; [Cancel Date],'YYYY/MM/DD hh:mm:ss'),Date(&amp;nbsp; [Cancel Date]),&amp;nbsp; [Cancel Date])) as&amp;nbsp;&amp;nbsp; [Cancel Date] &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 21:26:04 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-14T21:26:04Z</dc:date>
    <item>
      <title>Dates with different formats in same column..</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-with-different-formats-in-same-column/m-p/1037689#M923161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, I have a quick one.... I am having an issue with the dates i am trying to load.. i have a column cancel_date which have dates in two different formats in the same column.. one is 03-APR-2016 and the other one is 2016/03/01 00:00:0000..&lt;/P&gt;&lt;P&gt;When i am loading this QV is reading it in the string format.. and any condition given based on this is not working.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current issue is, i have one more date which is "date" - and my condition is as follows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Date &amp;lt;= [Cancel Date] &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, 'AA' , 'BB').. But QV is returning BB even at the places where the answer is AA..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;PFA excel sheet where i downloaded the data for both the dates... I have tried loading the cancel date with date, date#, floor functions but nothing worked.. but for the date field loading it using Floor(Date(date)) as date..&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-with-different-formats-in-same-column/m-p/1037689#M923161</guid>
      <dc:creator>maahivee</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dates with different formats in same column..</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-with-different-formats-in-same-column/m-p/1037690#M923162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the Alt() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14606691579355512 jive_text_macro" jivemacro_uid="_14606691579355512"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;If( Date &amp;lt;= [Cancel Date] , 'AA' , 'BB') as Flag;&lt;/P&gt;
&lt;P&gt;LOAD Date(Alt(Date#(Date,'DD-MMM-YYYY'),Date#(Date,'MM/DD/YYYY hh:mm:ss'),Date(Date),Date))as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(Alt( Date#([Cancel Date],'DD-MMM-YYYY'),Date#(&amp;nbsp; [Cancel Date],'YYYY/MM/DD hh:mm:ss'),Date(&amp;nbsp; [Cancel Date]),&amp;nbsp; [Cancel Date])) as&amp;nbsp;&amp;nbsp; [Cancel Date] &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-with-different-formats-in-same-column/m-p/1037690#M923162</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-14T21:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dates with different formats in same column..</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-with-different-formats-in-same-column/m-p/1037691#M923163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Swuehl..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 20:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-with-different-formats-in-same-column/m-p/1037691#M923163</guid>
      <dc:creator>maahivee</dc:creator>
      <dc:date>2016-04-15T20:23:34Z</dc:date>
    </item>
  </channel>
</rss>

