<?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 If Not Match in Script Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655139#M593845</link>
    <description>&lt;P&gt;My raw data sometimes has a final ';' and sometimes does not. If it does not, I would like to concat it to the end of the value so I can then run the rest of the code but I can't get the first line syntax correct :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( Not FindOneOf(right([EST_NON_PROD_BUILD_HRS]),1), ';'),concat([EST_NON_PROD_BUILD_HRS],';'),&lt;/P&gt;&lt;P&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'ClinDoc:' , ';' ) )) as SUB_BUILD_NP_EST_CLINDOC,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Mpage:' , ';' ) )) as SUB_BUILD_NP_EST_MPAGE,&lt;BR /&gt;num(trim( TextBetween([EST_NON_PROD_BUILD_HRS], 'Rules:' , ';' ) )) as SUB_BUILD_NP_EST_RULES,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'CPOE:' , ';' ) )) as SUB_BUILD_NP_EST_CPOE,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'CCL:' , ';' ) )) as SUB_BUILD_NP_EST_CCL,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Charges:' , ';' )) ) as SUB_BUILD_NP_EST_CHARGES,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'HIM:' , ';' ) )) as SUB_BUILD_NP_EST_HIM,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Lab:' , ';' )) ) as SUB_BUILD_NP_EST_LAB,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'CMpage:' , ';' )) ) as SUB_BUILD_NP_EST_CMPAGE,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Pharm:' , ';' ) )) as SUB_BUILD_NP_EST_PHARM,&lt;BR /&gt;num(trim( TextBetween([EST_NON_PROD_BUILD_HRS], 'ProvDoc:' , ';' )) ) as SUB_BUILD_NP_EST_PROVDOC,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Rad:' , ';' )) ) as SUB_BUILD_NP_EST_RAD,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Surgery:' , ';' )) ) as SUB_BUILD_NP_EST_SURGERY,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Core:' , ';' )) ) as SUB_BUILD_NP_EST_CORE,&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 21:08:23 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2019-12-06T21:08:23Z</dc:date>
    <item>
      <title>If Not Match in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655139#M593845</link>
      <description>&lt;P&gt;My raw data sometimes has a final ';' and sometimes does not. If it does not, I would like to concat it to the end of the value so I can then run the rest of the code but I can't get the first line syntax correct :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( Not FindOneOf(right([EST_NON_PROD_BUILD_HRS]),1), ';'),concat([EST_NON_PROD_BUILD_HRS],';'),&lt;/P&gt;&lt;P&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'ClinDoc:' , ';' ) )) as SUB_BUILD_NP_EST_CLINDOC,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Mpage:' , ';' ) )) as SUB_BUILD_NP_EST_MPAGE,&lt;BR /&gt;num(trim( TextBetween([EST_NON_PROD_BUILD_HRS], 'Rules:' , ';' ) )) as SUB_BUILD_NP_EST_RULES,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'CPOE:' , ';' ) )) as SUB_BUILD_NP_EST_CPOE,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'CCL:' , ';' ) )) as SUB_BUILD_NP_EST_CCL,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Charges:' , ';' )) ) as SUB_BUILD_NP_EST_CHARGES,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'HIM:' , ';' ) )) as SUB_BUILD_NP_EST_HIM,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Lab:' , ';' )) ) as SUB_BUILD_NP_EST_LAB,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'CMpage:' , ';' )) ) as SUB_BUILD_NP_EST_CMPAGE,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Pharm:' , ';' ) )) as SUB_BUILD_NP_EST_PHARM,&lt;BR /&gt;num(trim( TextBetween([EST_NON_PROD_BUILD_HRS], 'ProvDoc:' , ';' )) ) as SUB_BUILD_NP_EST_PROVDOC,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Rad:' , ';' )) ) as SUB_BUILD_NP_EST_RAD,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Surgery:' , ';' )) ) as SUB_BUILD_NP_EST_SURGERY,&lt;BR /&gt;num(trim( TextBetween( [EST_NON_PROD_BUILD_HRS], 'Core:' , ';' )) ) as SUB_BUILD_NP_EST_CORE,&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 21:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655139#M593845</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2019-12-06T21:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: If Not Match in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655143#M593846</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( wildmatch(right([EST_NON_PROD_BUILD_HRS],1), ';'),[EST_NON_PROD_BUILD_HRS],'Last char is not&amp;nbsp;;')as DesiredResult,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will check if the last char is ; and give you the full field if it is. Otherwise it will populate&amp;nbsp;'Last char is not&amp;nbsp;;'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 21:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655143#M593846</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-12-06T21:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: If Not Match in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655144#M593847</link>
      <description>&lt;P&gt;Thanks but I need to concat the last character as a ';' if it's not there for the rest of the code to work.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 21:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655144#M593847</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2019-12-06T21:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: If Not Match in Script Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655145#M593848</link>
      <description>&lt;P&gt;So if it is missing at last position, you want to add it?&lt;/P&gt;&lt;P&gt;That’s how you can do that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( wildmatch(right([EST_NON_PROD_BUILD_HRS],1), ';'),[EST_NON_PROD_BUILD_HRS],[EST_NON_PROD_BUILD_HRS]&amp;amp;';') as DesiredResult,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 21:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Not-Match-in-Script-Load/m-p/1655145#M593848</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-12-06T21:46:23Z</dc:date>
    </item>
  </channel>
</rss>

