<?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: Expression check ! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-check/m-p/1089958#M640924</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Pick(Match(Debit_Credit_Indicator,'H','S'), -Amt_Local_Curr, Amt_Local_Curr))&lt;/SPAN&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 05:14:13 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-03-04T05:14:13Z</dc:date>
    <item>
      <title>Expression check !</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-check/m-p/1089956#M640922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having below case in order to calculate Net Value :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Net Value :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The net value will be calculated as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt; If Debit_Credit_Indicator = H, Amt_Local_Curr is negative (i.e. Amt_Local_Curr is 9.207,87 the value to calculate with is –9.207,87)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Debit_Credit_Indicator = S, Amt_Local_Curr is positive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get for each entry selected Amt_Local_Curr and convert to either negative or positive value.&lt;/P&gt;&lt;P&gt;Calculate &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt; the converted values to a net total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e. -100 + 50 = -50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this , I 'm doing below calculation :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(Debit_Credit_Indicator='H', -1) * Amt_Local_Curr)+ Sum(If(Debit_Credit_Indicator='S', 1)* Amt_Local_Curr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is correct or suggest what could be the best option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 04:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-check/m-p/1089956#M640922</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-04T04:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression check !</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-check/m-p/1089957#M640923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Debit_Credit_Indicator can only be 'H' or 'S', then this will suffice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(If(Debit_Credit_Indicator='H', -1, 1) * Amt_Local_Curr)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are other possible value that need to be ignored:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(If(Debit_Credit_Indicator='H', -1, If(Debit_Credit_Indicator='S', 1, 0)) * Amt_Local_Curr)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 05:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-check/m-p/1089957#M640923</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-03-04T05:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression check !</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-check/m-p/1089958#M640924</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Pick(Match(Debit_Credit_Indicator,'H','S'), -Amt_Local_Curr, Amt_Local_Curr))&lt;/SPAN&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 05:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-check/m-p/1089958#M640924</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-03-04T05:14:13Z</dc:date>
    </item>
  </channel>
</rss>

