<?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: How to I sum one column ONLY when another column is NOT NULL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-I-sum-one-column-ONLY-when-another-column-is-NOT-NULL/m-p/1738037#M722341</link>
    <description>&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;Actual={"&amp;gt;0"}&amp;gt;} Projection)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// double quotes for greater than zero&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;Actual={"*"}&amp;gt;} Projection)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// for not null&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 05:14:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-08-24T05:14:22Z</dc:date>
    <item>
      <title>How to I sum one column ONLY when another column is NOT NULL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-I-sum-one-column-ONLY-when-another-column-is-NOT-NULL/m-p/1738021#M722340</link>
      <description>&lt;P&gt;I have a table with month, category, ACTUAL Revenue, and PROJECTED Revenue as variables. The Actual revenues are populated only for year-to-date (by month) so when I sum them, I get the Actual YTD revenue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate the YTD Projected Revenue by counting ONLY the monthly projected revenue values where the matching Actual Revenue value is NOT NULL.&lt;/P&gt;&lt;P&gt;I tried doing this multiple times and thought the following expression would work, but it's returning zero.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Actual={'&amp;gt;0'}&amp;gt;} Projection)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-I-sum-one-column-ONLY-when-another-column-is-NOT-NULL/m-p/1738021#M722340</guid>
      <dc:creator>KellyMc</dc:creator>
      <dc:date>2024-11-16T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to I sum one column ONLY when another column is NOT NULL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-I-sum-one-column-ONLY-when-another-column-is-NOT-NULL/m-p/1738037#M722341</link>
      <description>&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;Actual={"&amp;gt;0"}&amp;gt;} Projection)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// double quotes for greater than zero&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;Actual={"*"}&amp;gt;} Projection)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// for not null&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 05:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-I-sum-one-column-ONLY-when-another-column-is-NOT-NULL/m-p/1738037#M722341</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-08-24T05:14:22Z</dc:date>
    </item>
  </channel>
</rss>

