<?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: If function with two clauses from different tables (In chart) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-function-with-two-clauses-from-different-tables-In-chart/m-p/563177#M1143699</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Sales Lines - A]&lt;/SPAN&gt; -={'None'}, &lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Sales Lines - B]&lt;/SPAN&gt; -= {'Cancelled'}&amp;gt; }&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Sales Lines - Net Sales Amount]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 13:47:33 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2013-08-07T13:47:33Z</dc:date>
    <item>
      <title>If function with two clauses from different tables (In chart)</title>
      <link>https://community.qlik.com/t5/QlikView/If-function-with-two-clauses-from-different-tables-In-chart/m-p/563176#M1143698</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;I'm trying to make a simple Sum function, which should be dependent on two "IF" clauses, but for some reason I can't make it work... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function below should take the sum of [Sales Lines - Net Sales Amount], but only for the lines, which doesn't have either status None from table Sales Line - A or status Cancelled from table Sales Line - B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&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: #800000; font-size: 8pt;"&gt;[Sales Lines - A]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&amp;gt; 'None' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Lines - B]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&amp;gt; 'Cancelled', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Lines - Net Sales Amount]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to put this data into my script (since I'll be using this variable several times), but I was unsuccesful (Read: Not skilled enough &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to hear from you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 13:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function-with-two-clauses-from-different-tables-In-chart/m-p/563176#M1143698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-07T13:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: If function with two clauses from different tables (In chart)</title>
      <link>https://community.qlik.com/t5/QlikView/If-function-with-two-clauses-from-different-tables-In-chart/m-p/563177#M1143699</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Sales Lines - A]&lt;/SPAN&gt; -={'None'}, &lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Sales Lines - B]&lt;/SPAN&gt; -= {'Cancelled'}&amp;gt; }&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Sales Lines - Net Sales Amount]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 13:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function-with-two-clauses-from-different-tables-In-chart/m-p/563177#M1143699</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-08-07T13:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: If function with two clauses from different tables (In chart)</title>
      <link>https://community.qlik.com/t5/QlikView/If-function-with-two-clauses-from-different-tables-In-chart/m-p/563178#M1143700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mayil &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That did exactly what I was looking for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know the sum function could be used the way you just did, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 13:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-function-with-two-clauses-from-different-tables-In-chart/m-p/563178#M1143700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-07T13:59:21Z</dc:date>
    </item>
  </channel>
</rss>

