<?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: Pick characterse before “-” and then compare in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605598#M596365</link>
    <description>&lt;P&gt;Have you tried just this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SubField([P No.], '-', 1) as P_No_1&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 24 Jul 2019 11:25:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-07-24T11:25:33Z</dc:date>
    <item>
      <title>Pick characterse before “-” and then compare</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605552#M596362</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;Hi i have a data like this &lt;A href="https://i.stack.imgur.com/DMHdC.png" rel="nofollow noreferrer" target="_blank"&gt;&lt;IMG src="https://i.stack.imgur.com/DMHdC.png" border="0" alt="image" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in this image i am trying to do that there is 122-1 in P NO column and in P_No_1 there is 122 so i want to compare that if in P NO column any value come before " - " must match to P_NO_1 if value is matched then this should be renew else lost ..&lt;/P&gt;&lt;P&gt;this is file&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/sh/ytwjoflozm47dee/AACVuAJ-KI_DDz672i86kMtVa?dl=0" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/sh/ytwjoflozm47dee/AACVuAJ-KI_DDz672i86kMtVa?dl=0&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jul 2019 09:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605552#M596362</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-07-24T09:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pick characterse before “-” and then compare</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605566#M596363</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Use Subfield function:&lt;/P&gt;&lt;P&gt;=if(P_No_1=SubField([P No.],'-',1), 'Renew','Lost')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also, check attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 10:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605566#M596363</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2019-07-24T10:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pick characterse before “-” and then compare</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605594#M596364</link>
      <description>&lt;P&gt;one thing i want to ask here..&amp;nbsp;&lt;/P&gt;&lt;P&gt;after i tried i get solution what i want but there is another problem that&amp;nbsp;&lt;/P&gt;&lt;P&gt;here i apply condition on P No that whatever the value before " -1 " it should minus "-1" and paste value in P_No_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Right([P No.],2)='-1',SubField( [P No.],'-',1)) as P_No_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but here is incremental load thing apply on P NO that when polices increases with same P NO then increment apply &amp;nbsp; in data e.g. "P/03/Me/2018/00003-1" when another polices then this will be&amp;nbsp;P/03/Me/2018/00003-2 when 3rd time assigen then&amp;nbsp; this will be&amp;nbsp;P/03/Me/2018/00003-3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so here i want whatever the number after dash " - " this would be minus and before " - " sign whole value will paste in P_No_1 column&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how i do that..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updated file attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 11:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605594#M596364</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-07-24T11:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pick characterse before “-” and then compare</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605598#M596365</link>
      <description>&lt;P&gt;Have you tried just this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SubField([P No.], '-', 1) as P_No_1&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Jul 2019 11:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605598#M596365</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-24T11:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pick characterse before “-” and then compare</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605599#M596366</link>
      <description>&lt;P&gt;Not sure if i understand what you need, but try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Right([P No.],2)='-'&amp;amp;Text(SubField( [P No.],'-',2)),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SubField( [P No.],'-',1)) as P_No_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 11:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605599#M596366</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2019-07-24T11:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pick characterse before “-” and then compare</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605640#M596367</link>
      <description>&lt;P&gt;ok one more thing i want to ask&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 843px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15972iEE7CAE7256C811A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in these records some P NO year are 2019 so i want what ever polices are in 2019 and old policy no is not exist then this should be consider as new .. not lost.. how i do this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and policies who is not found in previous year ie. 00013 policy is not found in previous year then this should be as "LOST"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 12:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1605640#M596367</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-07-24T12:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pick characterse before “-” and then compare</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1606457#M596368</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/conditions-according-to-the-year/m-p/1606456#M378496" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/conditions-according-to-the-year/m-p/1606456#M378496&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 10:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-characterse-before-and-then-compare/m-p/1606457#M596368</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2019-07-26T10:54:26Z</dc:date>
    </item>
  </channel>
</rss>

