<?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: Need Help with IF AND statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934589#M322770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hm... in which type of chart are you trying to do so? Straight table? Text Object?&lt;/P&gt;&lt;P&gt;What dimensions are there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 06:43:41 GMT</pubDate>
    <dc:creator>crusader_</dc:creator>
    <dc:date>2015-09-14T06:43:41Z</dc:date>
    <item>
      <title>Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934586#M322767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with an IF AND statement for my chart expressions . I have two&lt;BR /&gt;fields where I want to sum the amount if it meets the criteria. To put it in&lt;BR /&gt;words, IF Description=”EMV” AND Amount=0, then&amp;nbsp; Sum everything in the Amount field&amp;nbsp; Else Description=”EMV” AND Amount &amp;gt;0, Sum&lt;BR /&gt;just the SELL field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below example.&lt;/P&gt;&lt;P&gt;#1&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 178px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="71"&gt;Description&lt;/TD&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="107"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17"&gt;Buy&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;-1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Sell&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Interest&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;EMV&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73"&gt;-140&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want to return the sum of amount -140&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#2&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 178px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="71"&gt;Description&lt;/TD&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="107"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17"&gt;Buy&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;-1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Sell&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Interest&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;EMV&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="17"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73"&gt;360&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want to return just the Sell for 600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 13:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934586#M322767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-11T13:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934587#M322768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below expression:&lt;/P&gt;&lt;P&gt;=Sum(if(match(Desc,'EMV') and Amount&amp;lt;=0,0,Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 14:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934587#M322768</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-09-11T14:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934588#M322769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AND part didnt works even if i change it to greater or less than zero. It goes to the else and return the Amount.&lt;/P&gt;&lt;P&gt;Let me know if you can help.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'EMV') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=0,0,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 14:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934588#M322769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-11T14:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934589#M322770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hm... in which type of chart are you trying to do so? Straight table? Text Object?&lt;/P&gt;&lt;P&gt;What dimensions are there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934589#M322770</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-09-14T06:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934590#M322771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;You can test both scenario by making change in inline table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 07:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934590#M322771</guid>
      <dc:creator>ankit777</dc:creator>
      <dc:date>2015-09-14T07:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934591#M322772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a straight table with 3 dimensions. See below&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 179px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="44"&gt;Name&lt;/TD&gt;&lt;TD width="78"&gt;Description&lt;/TD&gt;&lt;TD width="57"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Apple&lt;/TD&gt;&lt;TD&gt;Buy&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;-1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Apple&lt;/TD&gt;&lt;TD&gt;Sell&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Apple&lt;/TD&gt;&lt;TD&gt;EMV&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;500 or 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Apple&lt;/TD&gt;&lt;TD&gt;Interest&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;P&gt;260&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*** Example EMV - either 500 or 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'EMV') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=0,0,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want to return the amount field with these 2 criterias.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If&amp;nbsp; Descritpion= EMV and Amount = 0 then&lt;BR /&gt;Sum(Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Elseif Descritpion= EMV and Amount &amp;gt; 0 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(Amount) - Only the SELL's (600)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;End if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i didnt confuse you. Many Thanks,&lt;BR /&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934591#M322772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T13:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934592#M322773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did test it out, only works for one scenario. Only returns the Amount even if i change the EMV =0.&amp;nbsp; Below if statement is what i want to accomplish (also, please see my recent post to Andrei).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If&amp;nbsp; Descritpion= EMV and Amount = 0 then&lt;BR /&gt;Sum(Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Elseif Descritpion= EMV and Amount &amp;gt; 0 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(Amount) - Only the SELL's (600)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;End if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'EMV') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0,0,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Your formula works if EMV &amp;gt;0&amp;nbsp; and return sum of Amount. Once i change the EMV value to =0 , still return sum of the Amount.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Many Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934592#M322773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934593#M322774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second condition seems a bit confusing, but have a look on my expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(match(Description,'EMV') and Amount=0, sum(TOTAL Amount), //Means sum(Amount) of all cells(rows)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( match(Description,'EMV') and Amount&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(TOTAL Amount)-sum({&amp;lt;Description={'Sell'}&amp;gt;} TOTAL Amount) //Means sum(Amount) of all rows - (minus) Only the SELL's row.. If you need SELL's row only just drop first part before (including) minus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; sum(Amount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps or just shed light on the solution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 14:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934593#M322774</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-09-14T14:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934594#M322775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrei,&amp;nbsp; Thanks for your help!. I tweeted your formula a bit and still didnt come to a solution that i wanted. Let me know if you can take a look at my sample QVW.&lt;/P&gt;&lt;P&gt;I have a Straight Table&amp;nbsp; where i use Name, Description and an expression with If statement.&amp;nbsp; The formula works in a way when i click "Table" Name such as Apple or Orange.&amp;nbsp; For instance, if i click Apple it returns 360 and Orange returns 700 (only Sell) which both returns are correct with this formula. But when i clear it,&amp;nbsp; it shows a different numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, how can i show Name level in straight table? I tried without the description, no data at all.&lt;/P&gt;&lt;P&gt;for example - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;Apple 360&lt;/P&gt;&lt;P&gt;Orange 700&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Many Thanks.&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 18:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934594#M322775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934595#M322776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached one, it works for both the condition with the sample -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Name, Description,Amount&lt;/P&gt;&lt;P&gt;Apple,Buy,-1000&lt;/P&gt;&lt;P&gt;Apple,Sell,600&lt;/P&gt;&lt;P&gt;Apple,Interest,260&lt;/P&gt;&lt;P&gt;Apple,EMV,200&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;IMG alt="182.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98887_182.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 20:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934595#M322776</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-14T20:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with IF AND statement</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934596#M322777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Digvijay , Ankit , and Andrei. Thanks all for the help!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 14:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-with-IF-AND-statement/m-p/934596#M322777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-15T14:44:17Z</dc:date>
    </item>
  </channel>
</rss>

