<?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: Creating a Sumif formula based on Distinct field Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303892#M844954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course that's the answer ?#$%^&amp;amp;? LOL!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thanks so much!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 21:35:58 GMT</pubDate>
    <dc:creator>leale1997</dc:creator>
    <dc:date>2017-03-29T21:35:58Z</dc:date>
    <item>
      <title>Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303890#M844950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel like this should be easy but I am just missing something.&amp;nbsp; I have tried aggr and sum and can't get this formula to work out correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data table that looks like the table below.&amp;nbsp; I would like to calculate the number of days a record that is not closed has been opened based on today's date and Distinct record ID's.&amp;nbsp; I have tried using variations of this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(distinct if([Status]='Urgent' and isnull(DateClosed), today()-DateCreated, [RecordID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="297"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;RecordID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="88"&gt;DateCreated&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Status&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="81"&gt;DateClosed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;02/05/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Urgent&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;02/25/16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/01/17&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;07/05/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;08/04/16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;09/10/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;02/10/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Urgent&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/06/17&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;07/10/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;09/15/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;02/15/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;03/11/16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/11/17&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;07/15/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;09/20/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;11/04/16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;02/20/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Urgent&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;14&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01/16/17&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Routine&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;07/20/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Urgent&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;09/18/16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;09/25/16&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Urgent&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303890#M844950</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303891#M844952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RecordID&lt;/SPAN&gt; = {"=Len(Trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateClosed)) = 0&lt;/SPAN&gt;"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Status&lt;/SPAN&gt; = {'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Urgent&lt;/SPAN&gt;'}&amp;gt;} Today() - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateCreated&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 21:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303891#M844952</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-29T21:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303892#M844954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course that's the answer ?#$%^&amp;amp;? LOL!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thanks so much!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 21:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303892#M844954</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2017-03-29T21:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303893#M844956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were such a help with my last question.  Wonder if you might field another.  I would like to do the same thing except leave out the second criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({} Today() - DateCreated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it’s not working.  What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303893#M844956</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2017-03-30T17:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303894#M844958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leave which criteria? Closed Date or Status?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303894#M844958</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-30T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303895#M844960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leaving closed date is null.&lt;/P&gt;&lt;P&gt;But not considering Status as a criteria at all.&lt;/P&gt;&lt;P&gt;In other words, summing today()-datecreated for distinct record ids that do not have a populated dateclosed field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The record id field may contain duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303895#M844960</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2017-03-30T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303896#M844961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;RecordID&lt;/SPAN&gt; = {"=Len(Trim(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;DateClosed)) = 0&lt;/SPAN&gt;"}&amp;gt;} Today() - &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;DateCreated&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303896#M844961</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-30T17:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303897#M844962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that worked!  Thanks so much.  I realize now I left out the ‘&amp;gt;’.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Way appreciate the assist. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303897#M844962</guid>
      <dc:creator>leale1997</dc:creator>
      <dc:date>2017-03-30T17:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Sumif formula based on Distinct field Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303898#M844963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Sumif-formula-based-on-Distinct-field-Values/m-p/1303898#M844963</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-30T17:34:52Z</dc:date>
    </item>
  </channel>
</rss>

