<?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: Alt function question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778759#M537389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Did you tried Date function around the Date# ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ALT( Date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'DD/MM/YYYY')), Date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'MM/DD/YYYY')), Date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'DD/MM/YYYY')), 'No Date Found')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 10:41:10 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2014-11-06T10:41:10Z</dc:date>
    <item>
      <title>Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778758#M537387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question I was hoping someone would be able to help me with. I am trying to write a command to fetch the date format from a column filled with dates: some are ddmmyyyy, some are mmddyyyy and so on and so forth. I was advised to use the ALT function, which now takes the following shape:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;ALT( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, 'DD/MM/YYYY'), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, 'MM/DD/YYYY'), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, 'DD/MM/YYYY'), 'No Date Found') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Date Type] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;But the function populates my 'Date Type' column with 'No Date Found' and doesn't recognise any of the dates in the 'Date' String. I tried running a trial command using ALT(date#([Date], ' correct date format specified in the initial set command'), 'No Date Found'), and the function still returns 'No Date Found'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Any ideas on how to fix that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778758#M537387</guid>
      <dc:creator />
      <dc:date>2014-11-06T10:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778759#M537389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Did you tried Date function around the Date# ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ALT( Date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'DD/MM/YYYY')), Date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'MM/DD/YYYY')), Date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'DD/MM/YYYY')), 'No Date Found')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778759#M537389</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-11-06T10:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778760#M537391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You said your input is of format &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ddmmyyyy, mmddyyyy without '/'. But you have used '/' in Alt.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778760#M537391</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-06T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778761#M537393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;With your dates being DDMMYYYY or MMDDYYYY how can you tell if 01022014 refers to the 1st February 2014 or 2nd January 2014 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778761#M537393</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-11-06T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778762#M537395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date#() is not being able to parse it because of wrong format. Try(without '/' symbol), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALT( date#([Date], 'DDMMYYYY'), date#([Date], 'MMDDYYYY'), date#([Date], 'YYYYDDMM'), 'No Date Found') AS [Date Type]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778762#M537395</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-11-06T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778763#M537396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have two different formats like&lt;/P&gt;&lt;P&gt;DD/MM/YYYY and MM/DD/YYYY&lt;/P&gt;&lt;P&gt;There is no possibility to recognize them..&lt;/P&gt;&lt;P&gt;12/03/2014 and 12/03/2014.... Both could be either 3rd December or 12th March&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALT function can be used for more than one date formats something like&lt;/P&gt;&lt;P&gt;DD/MM/YYYY and DD.MM.YYYY and DD-MM-YYYY &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;DD/MM/YYYY and MM.DD.YYYY and YYY-MM-DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will make clear...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778763#M537396</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-06T10:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778764#M537398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used yyyyddmm and so forth as shorthand, the default format specified uses '/'s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778764#M537398</guid>
      <dc:creator />
      <dc:date>2014-11-06T10:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778765#M537399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. I tried 'DDMMYYYY' and so forth, as well as 'DD-MM-YYYY', to no avail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778765#M537399</guid>
      <dc:creator />
      <dc:date>2014-11-06T10:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778766#M537401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see- that actually makes perfect sense. I import my data from an excel spreadsheet and I was hoping that maybe it checks out the excel formatting while importing the data strings. Do you think there is any way to check the actual data format (DDMMYYYY vs MMDDYYYY and so forth)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778766#M537401</guid>
      <dc:creator />
      <dc:date>2014-11-06T10:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778767#M537402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With some dates the difference is obvious -&amp;nbsp; 31122014 can only be DDMMYYYY, but for dates in the first 12 days of the month, you cannot tell id a date is DDMMYYYY or MMDDYYYY as both options return valid dates.&lt;/P&gt;&lt;P&gt;02122014 can be 2nd December or 12th February.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to include some other indicator to show what date format is being used unless you can extract all dates in a common format.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 11:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778767#M537402</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-11-06T11:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778768#M537404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please provide sample data/application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 11:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778768#M537404</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-06T11:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alt function question</title>
      <link>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778769#M537405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this one. it is help full for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(alt(date#(DateString, 'YYYY-MM-DD'), date#(DateString, 'DD-MM-YYYY'), date#(DateString, 'DD/MM/YYYY'), 'NO DATA FOUND'),'DD/MM/YYYY') AS Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2015 14:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alt-function-question/m-p/778769#M537405</guid>
      <dc:creator>maniram23</dc:creator>
      <dc:date>2015-10-04T14:07:18Z</dc:date>
    </item>
  </channel>
</rss>

