<?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: explination of expr? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/explination-of-expr/m-p/766912#M1041560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression &lt;STRONG&gt;index(path,'\',4)&lt;/STRONG&gt; this search the position of ( '\' ) from left for 4th symbol that is not in the path if you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index(path,'\',3) this gives 14&lt;/P&gt;&lt;P&gt;index(path,'\',2) this gives 2&lt;/P&gt;&lt;P&gt;index(path,'\',1) this gives 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly if you use&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=left(path,index(path,'\',4)-1)&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This gives nothing but if you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=left(path,index(path,'\',3)-1) &lt;/P&gt;&lt;P&gt;This gives nothing but if you use&amp;nbsp; string&lt;STRONG&gt; \\zwcghtbu723&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From left of Path 14-1 = 13 means upto 13&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 10:38:25 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-12-03T10:38:25Z</dc:date>
    <item>
      <title>explination of expr?</title>
      <link>https://community.qlik.com/t5/QlikView/explination-of-expr/m-p/766910#M1041558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;upper(left(path,index(path,'\',4)-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;path is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \\zwcghtbu723\kmtot0123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how it works for this path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index(path,'\',4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(path,index(path,'\',4)-1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; give me explination pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 10:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/explination-of-expr/m-p/766910#M1041558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-03T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: explination of expr?</title>
      <link>https://community.qlik.com/t5/QlikView/explination-of-expr/m-p/766911#M1041559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;index(path,'\',4) will return the position of the 4th \ character in the text string value of the path field. In your example there are only three \ characters so this returns 0. 0-1 is -1. The left function doesn't accept a negative length so the expression will return null. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 10:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/explination-of-expr/m-p/766911#M1041559</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-03T10:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: explination of expr?</title>
      <link>https://community.qlik.com/t5/QlikView/explination-of-expr/m-p/766912#M1041560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression &lt;STRONG&gt;index(path,'\',4)&lt;/STRONG&gt; this search the position of ( '\' ) from left for 4th symbol that is not in the path if you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;index(path,'\',3) this gives 14&lt;/P&gt;&lt;P&gt;index(path,'\',2) this gives 2&lt;/P&gt;&lt;P&gt;index(path,'\',1) this gives 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly if you use&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=left(path,index(path,'\',4)-1)&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This gives nothing but if you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=left(path,index(path,'\',3)-1) &lt;/P&gt;&lt;P&gt;This gives nothing but if you use&amp;nbsp; string&lt;STRONG&gt; \\zwcghtbu723&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From left of Path 14-1 = 13 means upto 13&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 10:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/explination-of-expr/m-p/766912#M1041560</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-03T10:38:25Z</dc:date>
    </item>
  </channel>
</rss>

