<?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 Checking an expression against a Substring Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210822#M65251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming the code and text description are always separated by a dash, you should be able to use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;left(HFM_Code,&lt;B&gt;Index(HFM_Code,'-')-1&lt;/B&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If this isn't what you meant, please post sample data / expected result or a sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jul 2010 11:18:12 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2010-07-01T11:18:12Z</dc:date>
    <item>
      <title>Checking an expression against a Substring Value</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210821#M65250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;After a long period having some problem while developing finance analysis.&lt;/P&gt;&lt;P&gt;Actually i have a model where there is a field named "HFM_Code"which is having values like 'P0300000-Sales expenditure' which are string value . i need to calculate the sum(amount) incurred against the HFM_Code='P0300000' only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolve this ....&lt;/P&gt;&lt;P&gt;Reply appreciated&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 11:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210821#M65250</guid>
      <dc:creator>sunil2288</dc:creator>
      <dc:date>2010-07-01T11:13:44Z</dc:date>
    </item>
    <item>
      <title>Checking an expression against a Substring Value</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210822#M65251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming the code and text description are always separated by a dash, you should be able to use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;left(HFM_Code,&lt;B&gt;Index(HFM_Code,'-')-1&lt;/B&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If this isn't what you meant, please post sample data / expected result or a sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 11:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210822#M65251</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-07-01T11:18:12Z</dc:date>
    </item>
    <item>
      <title>Checking an expression against a Substring Value</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210823#M65252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood the question, in the script:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;subfield(HFM_Code,'-',1) as HFM_Code_Group&lt;/P&gt;&lt;P&gt;Then where you want to do the sum:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;HFM_Code_Group={'P0300000'}&amp;gt;} amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 22:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210823#M65252</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-01T22:10:20Z</dc:date>
    </item>
    <item>
      <title>Checking an expression against a Substring Value</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210824#M65253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow John.....&lt;/P&gt;&lt;P&gt;You understood my problem well and solved it quite comfortably.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 06:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-an-expression-against-a-Substring-Value/m-p/210824#M65253</guid>
      <dc:creator>sunil2288</dc:creator>
      <dc:date>2010-07-02T06:14:41Z</dc:date>
    </item>
  </channel>
</rss>

