<?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: right(index) syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007171#M946648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mid(CustID,Index(CustID,'\',1)+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Dec 2015 07:05:28 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-12-31T07:05:28Z</dc:date>
    <item>
      <title>right(index) syntax</title>
      <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007166#M946643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have customerId like this:&lt;/P&gt;&lt;P&gt;a\10&lt;/P&gt;&lt;P&gt;b\20&lt;/P&gt;&lt;P&gt;c\30&lt;/P&gt;&lt;P&gt;d\40&lt;/P&gt;&lt;P&gt;e\50&lt;/P&gt;&lt;P&gt;f\60&lt;/P&gt;&lt;P&gt;g\70&lt;/P&gt;&lt;P&gt;h\80&lt;/P&gt;&lt;P&gt;i\90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; I write this type of Syntax Right(CustomerId,2)as CustID&amp;nbsp;&amp;nbsp;&amp;nbsp; I got the result like this( I think this is correct)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; CustID &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 148px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="148"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17"&gt;&lt;P&gt;90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to use right and index function ( right(CustomerId, index(CustomerId, '\')+1) as custID) but&amp;nbsp; result is bad&lt;/P&gt;&lt;P&gt;\10&lt;/P&gt;&lt;P&gt;\20&lt;/P&gt;&lt;P&gt;\30&lt;/P&gt;&lt;P&gt;\40&lt;/P&gt;&lt;P&gt;\50&lt;/P&gt;&lt;P&gt;\60&lt;/P&gt;&lt;P&gt;\70&lt;/P&gt;&lt;P&gt;\80&lt;/P&gt;&lt;P&gt;\90&lt;/P&gt;&lt;P&gt; Syntax plz.( I want \ right side data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 05:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007166#M946643</guid>
      <dc:creator />
      <dc:date>2015-12-31T05:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: right(index) syntax</title>
      <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007167#M946644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use subfield function for this , try like this &lt;/P&gt;&lt;P&gt;SUBFIELD(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;customerId,'\',2&lt;/SPAN&gt;) as CustID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 05:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007167#M946644</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-12-31T05:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: right(index) syntax</title>
      <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007168#M946645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try this as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=mid(CustomerID,3,4) as CustomerID&lt;/STRONG&gt; where 3 show start position and 4 show end position&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 05:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007168#M946645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-31T05:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: right(index) syntax</title>
      <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007169#M946646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=right(CustomerId, index(CustomerId, '\'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 05:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007169#M946646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-31T05:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: right(index) syntax</title>
      <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007170#M946647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better you can use Subfield function here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:- =SubField(Col,'\',-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Col&lt;/P&gt;&lt;P&gt;a\10&lt;/P&gt;&lt;P&gt;b\20&lt;/P&gt;&lt;P&gt;c\30&lt;/P&gt;&lt;P&gt;d\40&lt;/P&gt;&lt;P&gt;e\50&lt;/P&gt;&lt;P&gt;f\60&lt;/P&gt;&lt;P&gt;g\70&lt;/P&gt;&lt;P&gt;h\80&lt;/P&gt;&lt;P&gt;i\90&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 31 Dec 2015 06:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007170#M946647</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2015-12-31T06:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: right(index) syntax</title>
      <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007171#M946648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mid(CustID,Index(CustID,'\',1)+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 07:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007171#M946648</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-31T07:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: right(index) syntax</title>
      <link>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007172#M946649</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;Check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14515463607754858" jivemacro_uid="_14515463607754858" modifiedtitle="true"&gt;
&lt;P&gt;T:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;Mid(CustomerID,3,4) as ModCustomerID ,&lt;/P&gt;
&lt;P&gt;SubField(CustomerID,'\',2) as ModCustomerID1,&lt;/P&gt;
&lt;P&gt;TextBetween(CustomerID,'\','') as ModCustomerID2,&lt;/P&gt;
&lt;P&gt;Right(CustomerID, Len(CustomerID)-Index(CustomerID, '\', 1)) as ModCustomerID3,&lt;/P&gt;
&lt;P&gt;Right(CustomerID,2) as ModCustomerID4&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;CustomerID&lt;/P&gt;
&lt;P&gt;a\10&lt;/P&gt;
&lt;P&gt;b\20&lt;/P&gt;
&lt;P&gt;c\30&lt;/P&gt;
&lt;P&gt;d\40&lt;/P&gt;
&lt;P&gt;e\50&lt;/P&gt;
&lt;P&gt;f\60&lt;/P&gt;
&lt;P&gt;g\70&lt;/P&gt;
&lt;P&gt;h\80&lt;/P&gt;
&lt;P&gt;i\90&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110363" alt="Mid Subfield.PNG" class="jive-image image-1" src="/legacyfs/online/110363_Mid Subfield.PNG" style="height: 120px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mostly You can use textbetween Or Subfield or right.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 07:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/right-index-syntax/m-p/1007172#M946649</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-12-31T07:23:29Z</dc:date>
    </item>
  </channel>
</rss>

