<?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 Mid or Weekday - is not an integrated function name recognized - why? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365293#M824004</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 need help to programmer a script with a new variable which is created from another variable of my database.&lt;/P&gt;&lt;P&gt;I need add in the SELECT a new variable, similar to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and mid(BILLNUMBER,3,1) in ('A','B') then 'White'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and mid(BILLNUMBER,3,1) in ('C','D') then 'Black'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when BILLNUMBER is null then 'Green'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 'Blue'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end as CreatedVariable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;I have also tried&lt;/SPAN&gt; with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and (mid(BILLNUMBER,3,1)='A' or&amp;nbsp; mid(BILLNUMBER,3,1)='B') then 'White'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and (mid(BILLNUMBER,3,1)='C' or&amp;nbsp; mid(BILLNUMBER,3,1)='D') then 'Black'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when BILLNUMBER is null then 'Green'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 'Blue'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end as CreatedVariable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;SPAN class="short_text" lang="en"&gt;I have also tried&lt;/SPAN&gt; in the LOAD and with the función "SubstringCount"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the program tell me the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P class="headline edc_error"&gt;Se ha producido el siguiente error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;Unable to get column information for the fields that are used in the query: ERROR [HY000] [Qlik][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]'mid' no es un nombre de función integrada reconocido. ERROR [HY000] [Qlik][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]No se pudo analizar el lote debido a errores de compilación.&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;"&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;To what should?, with the rest of functions as year, month, within a case I have not given problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Mid or Weekday - is not an integrated function name recognized - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365293#M824004</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 need help to programmer a script with a new variable which is created from another variable of my database.&lt;/P&gt;&lt;P&gt;I need add in the SELECT a new variable, similar to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and mid(BILLNUMBER,3,1) in ('A','B') then 'White'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and mid(BILLNUMBER,3,1) in ('C','D') then 'Black'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when BILLNUMBER is null then 'Green'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 'Blue'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end as CreatedVariable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;I have also tried&lt;/SPAN&gt; with...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and (mid(BILLNUMBER,3,1)='A' or&amp;nbsp; mid(BILLNUMBER,3,1)='B') then 'White'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when MY&lt;SPAN class="short_text" lang="en"&gt;VARIABLESTRING&lt;/SPAN&gt; is not null and (mid(BILLNUMBER,3,1)='C' or&amp;nbsp; mid(BILLNUMBER,3,1)='D') then 'Black'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when BILLNUMBER is null then 'Green'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 'Blue'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end as CreatedVariable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;SPAN class="short_text" lang="en"&gt;I have also tried&lt;/SPAN&gt; in the LOAD and with the función "SubstringCount"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the program tell me the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P class="headline edc_error"&gt;Se ha producido el siguiente error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;Unable to get column information for the fields that are used in the query: ERROR [HY000] [Qlik][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]'mid' no es un nombre de función integrada reconocido. ERROR [HY000] [Qlik][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]No se pudo analizar el lote debido a errores de compilación.&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;"&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;To what should?, with the rest of functions as year, month, within a case I have not given problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="edc_error"&gt;&lt;SPAN lang="en"&gt;Regards,&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/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365293#M824004</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mid or Weekday - is not an integrated function name recognized - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365294#M824005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you are using mid() in sql query or load query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your database source is sql server then use substring(column_name,start,length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 11:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365294#M824005</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-07-25T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mid or Weekday - is not an integrated function name recognized - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365295#M824006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quizá deberías hacer la sentencia SQL más sencilla y elaborar la parte del LOAD, siguiendo tu ejemplo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabla:&lt;/P&gt;&lt;P&gt;LOAD If(Len(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MY&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en" style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit;"&gt;VARIABLESTRING&lt;/SPAN&gt;) &amp;gt; 0 AND Match(Mid(BILLNUMBER, 3, 1), 'A', 'B') &amp;gt; 0, 'White',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;If(Len(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MY&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en" style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit;"&gt;VARIABLESTRING&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) &amp;gt; 0 AND Match(Mid(BILLNUMBER, 3, 1), 'C', 'D') &amp;gt; 0, 'Black') AS Field&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Si no me ha fallado ningún paréntesis, el campo "Field" tendrá ahora el valor "White" o "Black" dependiendo de las condiciones mencionadas.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Como clarificación, MYVARIABLESTRING y BILLNUMBER en el caso de arriba deben ser campos de la tabla incluida en la sentencia SELECT o variables ya definidas en el script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 12:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365295#M824006</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-07-25T12:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mid or Weekday - is not an integrated function name recognized - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365296#M824007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;I have used substring(column_name, start, length) in the Select of the query, and It has worked!! For all that you have indicated to me, being the sql server.&lt;/P&gt;&lt;P&gt;As I know the code of queries in sql server, now everything goes very well !!&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365296#M824007</guid>
      <dc:creator />
      <dc:date>2017-08-01T09:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mid or Weekday - is not an integrated function name recognized - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365297#M824008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muchas gracias Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aun, la parte del LOAD la tengo un poco menos controlada y me ha servido para para poder hacer sentencias en esa parte. Muchas muchas gracias!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mid-or-Weekday-is-not-an-integrated-function-name-recognized-why/m-p/1365297#M824008</guid>
      <dc:creator />
      <dc:date>2017-08-01T09:57:54Z</dc:date>
    </item>
  </channel>
</rss>

