<?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: Recognizing multiple date formats withing a column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989779#M947488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter and Marcus,&lt;/P&gt;&lt;P&gt;It was very helpful ,I would incorporate your Suggestion from now.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Kaushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Dec 2015 11:12:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-28T11:12:38Z</dc:date>
    <item>
      <title>Recognizing multiple date formats withing a column</title>
      <link>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989774#M947483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a table which consist of 10 columns ,out of which one is a date column and others are text and numeric fields,&lt;/P&gt;&lt;P&gt;I have written a code using TextCount and Numeric count, so as to identify&amp;nbsp; format of the column whether it contains numeric values, text values, or both . How can i modify the current script so that it can identify that column contains date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NumericCount($(vFieldName)) as NumericCount,&lt;/P&gt;&lt;P&gt;TextCount($(vFieldName)) as TextCount,&lt;/P&gt;&lt;P&gt;if(TextCount($(vFieldName)) &amp;gt;= 1 and NumericCount($(vFieldName)) &amp;gt;= 1, 'mixed',&lt;/P&gt;&lt;P&gt;if(TextCount($(vFieldName)) &amp;gt;= 1, 'string', 'numeric')) as Format,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add something which can identify it contains date. like Function_date(&lt;SPAN style="font-size: 13.3333px;"&gt;$(vFieldName))=output as yes or no for date &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 09:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989774#M947483</guid>
      <dc:creator />
      <dc:date>2015-12-28T09:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Recognizing multiple date formats withing a column</title>
      <link>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989775#M947484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use the alt-function in a way like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;alt(date#(date,'YYYY/MM/DD'), date#(date,'MM/DD/YYYY'), date#(date,'DD.MM.YY'),&lt;/P&gt;&lt;P class="Code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'no valid date-format')&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;and/or&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;if(isnum(date) and date &amp;gt; &lt;STRONG&gt;40000&lt;/STRONG&gt; and date &amp;lt; &lt;STRONG&gt;44000&lt;/STRONG&gt;, date, 'no date')&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;With the (bold) numbers you could specify the date-area which you are expect.&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 10:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989775#M947484</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-28T10:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Recognizing multiple date formats withing a column</title>
      <link>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989776#M947485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;So according to the code you mentioned , i need to have an idea about the distinct date formats present in my column, lets assume, i do not know before hand that what date formats are present in my data, i might have an idea about the date range of the data , ( I am loading the raw file directly into the Qlik View application)&lt;/P&gt;&lt;P&gt;what should i do in that case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 10:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989776#M947485</guid>
      <dc:creator />
      <dc:date>2015-12-28T10:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Recognizing multiple date formats withing a column</title>
      <link>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989777#M947486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You &lt;EM&gt;should&lt;/EM&gt; have an idea about the date formats that will be present in your data source. Otherwise you can never decide on dates like 2/5/2015 (5th of february or 2nd of may?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 10:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989777#M947486</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-28T10:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Recognizing multiple date formats withing a column</title>
      <link>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989778#M947487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter is right - you need a certain degree of knowledge about the data with whom you handled. You could of course extend the above mentioned checkings to further 10/20/... loops but in the end you will get blurring data without knowing the data-structure and data-quality. And are there any issues with them you should try to improve the quality and output from the source-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 11:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989778#M947487</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-28T11:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Recognizing multiple date formats withing a column</title>
      <link>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989779#M947488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter and Marcus,&lt;/P&gt;&lt;P&gt;It was very helpful ,I would incorporate your Suggestion from now.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Kaushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 11:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recognizing-multiple-date-formats-withing-a-column/m-p/989779#M947488</guid>
      <dc:creator />
      <dc:date>2015-12-28T11:12:38Z</dc:date>
    </item>
  </channel>
</rss>

