<?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: how this expression works? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-this-expression-works/m-p/700975#M1057944</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;index(Code, ' '), subfield(Code, ' ')&lt;/P&gt;&lt;P&gt;Index() returns position of space if it returns true i.e. position value more than 0&lt;/P&gt;&lt;P&gt;then perform Subfield ()&lt;/P&gt;&lt;P&gt;Subfield() gives data of Code before space&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;if code = abc cde&lt;/P&gt;&lt;P&gt;then index(Code,' ')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 4&lt;/P&gt;&lt;P&gt;then Subfield(Code,' ') Operation Performs which return abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if code = abc-cde&lt;/P&gt;&lt;P&gt;then second condition i.e. if(index(Code, '-'), subfield(Code, '-') perform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if code = abcde&lt;/P&gt;&lt;P&gt;then final else i.e. return all string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 12:47:01 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-10-10T12:47:01Z</dc:date>
    <item>
      <title>how this expression works?</title>
      <link>https://community.qlik.com/t5/QlikView/how-this-expression-works/m-p/700974#M1057943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Load *, if(index(Code, ' '), subfield(Code, ' '), if(index(Code, '-'), subfield(Code, '-'), Code)) as Test&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-this-expression-works/m-p/700974#M1057943</guid>
      <dc:creator />
      <dc:date>2014-10-10T12:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: how this expression works?</title>
      <link>https://community.qlik.com/t5/QlikView/how-this-expression-works/m-p/700975#M1057944</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;index(Code, ' '), subfield(Code, ' ')&lt;/P&gt;&lt;P&gt;Index() returns position of space if it returns true i.e. position value more than 0&lt;/P&gt;&lt;P&gt;then perform Subfield ()&lt;/P&gt;&lt;P&gt;Subfield() gives data of Code before space&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;if code = abc cde&lt;/P&gt;&lt;P&gt;then index(Code,' ')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 4&lt;/P&gt;&lt;P&gt;then Subfield(Code,' ') Operation Performs which return abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if code = abc-cde&lt;/P&gt;&lt;P&gt;then second condition i.e. if(index(Code, '-'), subfield(Code, '-') perform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if code = abcde&lt;/P&gt;&lt;P&gt;then final else i.e. return all string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-this-expression-works/m-p/700975#M1057944</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-10T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: how this expression works?</title>
      <link>https://community.qlik.com/t5/QlikView/how-this-expression-works/m-p/700976#M1057945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as well as i have&amp;nbsp; araised one more&amp;nbsp; question expr2&amp;nbsp;&amp;nbsp; please explain me that also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-this-expression-works/m-p/700976#M1057945</guid>
      <dc:creator />
      <dc:date>2014-10-10T12:51:19Z</dc:date>
    </item>
  </channel>
</rss>

