<?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: Syntax for instr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-for-instr/m-p/1723129#M722339</link>
    <description>&lt;P&gt;Yes , this does the job&lt;/P&gt;&lt;P&gt;if(a = '1300' , left(Reason,index(Reason,'| ',1)-1),Mid(Reason,index(Reason,': ',1)+2,12)) as Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;regards Jack&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2020 14:35:17 GMT</pubDate>
    <dc:creator>JACKNIEKERK</dc:creator>
    <dc:date>2020-06-29T14:35:17Z</dc:date>
    <item>
      <title>Syntax for instr</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-instr/m-p/1722834#M722337</link>
      <description>&lt;P&gt;a field in a tabelrecord wich shows based on 2 options wich i can filter,&lt;/P&gt;&lt;P&gt;option a&amp;nbsp;&lt;/P&gt;&lt;P&gt;a$="INVOICE 200010 CUSTOMERCODE:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1296 KLM&amp;nbsp; SHIPPING&lt;/P&gt;&lt;P&gt;here in VB i can do&amp;nbsp; Code$ = mid$(a$,instr(a$,":")+1), 12)&amp;nbsp;&lt;/P&gt;&lt;P&gt;option b&lt;/P&gt;&lt;P&gt;1296| 200010|KLM&amp;nbsp; SHIPPING&lt;/P&gt;&lt;P&gt;here in VB i can do&amp;nbsp; Code$ = left$(a$,instr(a$,"|")-1)&lt;/P&gt;&lt;P&gt;Now i have to do this qlikview&amp;nbsp; during load something like:&lt;/P&gt;&lt;P&gt;if (option = 'a' , mid(a$,instr(a$,':')+-1),12)&amp;nbsp; as Code,&lt;/P&gt;&lt;P&gt;if (option = 'b' , left(a$,instr(a$,'|')-1) as Code,&lt;/P&gt;&lt;P&gt;Please advice , thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-instr/m-p/1722834#M722337</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2024-11-16T00:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for instr</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-instr/m-p/1723061#M722338</link>
      <description>&lt;P&gt;Just replace instr() with index() and it should work nearly without further adjustments whereby the use of subfield() might be even more suitable.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 10:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-instr/m-p/1723061#M722338</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-06-29T10:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for instr</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-instr/m-p/1723129#M722339</link>
      <description>&lt;P&gt;Yes , this does the job&lt;/P&gt;&lt;P&gt;if(a = '1300' , left(Reason,index(Reason,'| ',1)-1),Mid(Reason,index(Reason,': ',1)+2,12)) as Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;regards Jack&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 14:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-instr/m-p/1723129#M722339</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2020-06-29T14:35:17Z</dc:date>
    </item>
  </channel>
</rss>

