<?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: Using Lefts and Rights in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626339#M734219</link>
    <description>&lt;P&gt;Thanks for this, It didn't work though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give you the full details I'm importing from and OLE DB for SQL, my import code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OOHEAD:
SQL SELECT 
OAORNO as OrderNo,
OAORDT,
Date(Date#(OAORDT, 'YYYYMMDD'), 'DD/MM/YYYY') as Date1,
OASMCD as Salesman
FROM Movex.dbo.OOHEAD;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has given me the following error on reload:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OleDb error

Connector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: 'Date#' is not a recognized built-in function name.

OOHEAD:
SQL SELECT 
OAORNO as OrderNo,
OAORDT,
Date(Date#(OAORDT, 'YYYYMMDD'), 'DD/MM/YYYY') as Date1,
OASMCD as Salesman
FROM Movex.dbo.OOHEAD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 13:10:48 GMT</pubDate>
    <dc:creator>Eureka99</dc:creator>
    <dc:date>2019-09-20T13:10:48Z</dc:date>
    <item>
      <title>Using Lefts and Rights</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626328#M734217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm relatively new to Qlik view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date field which&amp;nbsp; is causing issues as it will not link to my Fiscal Calendar. On investigation it seem the date has imported in reverse order "YYYYMMDD"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Right(OAORDT,2) &amp;amp; '/' &amp;amp; Right(Left(OAORDT,6),2) &amp;amp; '/' &amp;amp; Left(OAORDT,4) as Date1&lt;/LI-CODE&gt;&lt;P&gt;I've tried using the above left and rights to fix this, but its not working. Can someone help explain where I've gone wrong or the correct way to do this in Qlikview&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626328#M734217</guid>
      <dc:creator>Eureka99</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lefts and Rights</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626329#M734218</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date(Date#(OAORDT, 'YYYYMMDD'), 'DD/MM/YYYY') as Date1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626329#M734218</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-20T13:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lefts and Rights</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626339#M734219</link>
      <description>&lt;P&gt;Thanks for this, It didn't work though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give you the full details I'm importing from and OLE DB for SQL, my import code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OOHEAD:
SQL SELECT 
OAORNO as OrderNo,
OAORDT,
Date(Date#(OAORDT, 'YYYYMMDD'), 'DD/MM/YYYY') as Date1,
OASMCD as Salesman
FROM Movex.dbo.OOHEAD;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has given me the following error on reload:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OleDb error

Connector reply error: ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: 'Date#' is not a recognized built-in function name.

OOHEAD:
SQL SELECT 
OAORNO as OrderNo,
OAORDT,
Date(Date#(OAORDT, 'YYYYMMDD'), 'DD/MM/YYYY') as Date1,
OASMCD as Salesman
FROM Movex.dbo.OOHEAD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626339#M734219</guid>
      <dc:creator>Eureka99</dc:creator>
      <dc:date>2019-09-20T13:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lefts and Rights</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626347#M734220</link>
      <description>&lt;P&gt;Try this instead&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OOHEAD:
LOAD OrderNo,
     Date(Date#(OAORDT, 'YYYYMMDD'), 'DD/MM/YYYY') as Date1,
     OAORDT,
     Salesman;
SQL SELECT 
OAORNO as OrderNo,
OAORDT,
OASMCD as Salesman
FROM Movex.dbo.OOHEAD;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626347#M734220</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-20T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lefts and Rights</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626352#M734221</link>
      <description>&lt;P&gt;Thanks Sunny, that worked!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626352#M734221</guid>
      <dc:creator>Eureka99</dc:creator>
      <dc:date>2019-09-20T13:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lefts and Rights</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626631#M734222</link>
      <description>&lt;P&gt;Hi, if your question is solved please check Sunny's answer as an accepted solution.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 10:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Lefts-and-Rights/m-p/1626631#M734222</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-09-22T10:03:22Z</dc:date>
    </item>
  </channel>
</rss>

