<?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 Create an Expression with multi substracting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821519#M289602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, I need to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called CAUSALE that can take multiple values (FE, IN, NC, IP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create an expression to perform a subtraction between a field called CNIMPF and field CNRATA when CNCAU has a certain value (IN or IP). The subtraction can have more of a subtracting based on how many are the occurrences of the value IN in the field CNCAU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example it's possible to have this situations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNIMPF - (CNRATA-CNRATA-CNRATA-CNRATA-CNRATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNIMPF - (CNRATA -CNRATA-CNRATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNIMPF - (CNRATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible to do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 14:26:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-17T14:26:34Z</dc:date>
    <item>
      <title>Create an Expression with multi substracting</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821519#M289602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, I need to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called CAUSALE that can take multiple values (FE, IN, NC, IP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create an expression to perform a subtraction between a field called CNIMPF and field CNRATA when CNCAU has a certain value (IN or IP). The subtraction can have more of a subtracting based on how many are the occurrences of the value IN in the field CNCAU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example it's possible to have this situations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNIMPF - (CNRATA-CNRATA-CNRATA-CNRATA-CNRATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNIMPF - (CNRATA -CNRATA-CNRATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CNIMPF - (CNRATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible to do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821519#M289602</guid>
      <dc:creator />
      <dc:date>2015-02-17T14:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create an Expression with multi substracting</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821520#M289603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly sure what you are trying to accomplish here, would you be able to give an example here? (May be a sample qvw)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821520#M289603</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-17T14:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create an Expression with multi substracting</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821521#M289604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide sample data along with your exact expectations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 15:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821521#M289604</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-02-17T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create an Expression with multi substracting</title>
      <link>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821522#M289605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I attache an example of a file.&lt;/P&gt;&lt;P&gt;What I do is this:&lt;/P&gt;&lt;P&gt;The field RESIDUO is the difference of the FIELD "IMPORTO FATTURA - IMPORTO SCADENZA".&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;In case there are&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;two lines&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in this case&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for the field&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;"&lt;/SPAN&gt;NUMERO FATTURA", you &lt;SPAN class="hps"&gt;need to either&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;residual&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;calculated as&lt;/SPAN&gt; "IMPORTO SCADENZA" &lt;SPAN class="hps"&gt;where&lt;/SPAN&gt; field CAUSALE &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;"&lt;/SPAN&gt;FE" &lt;SPAN class="hps"&gt;less&lt;/SPAN&gt; "IMPORTO SCADENZA" &lt;SPAN class="hps"&gt;where the field&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is equal to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;IN&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;It&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;'&lt;/SPAN&gt;possible that there are &lt;SPAN class="hps"&gt;multiple lines&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for the field&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;"&lt;/SPAN&gt;CAUSALE" &lt;SPAN class="atn hps"&gt;equal to "&lt;/SPAN&gt;IN".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 08:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-an-Expression-with-multi-substracting/m-p/821522#M289605</guid>
      <dc:creator />
      <dc:date>2015-02-18T08:50:37Z</dc:date>
    </item>
  </channel>
</rss>

