<?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 Calculated expression to remove certain days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-expression-to-remove-certain-days/m-p/450957#M488549</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 have a straight table and thanks to this forum have a way of getting the count of all the Unassigned call from the database.&amp;nbsp; The expression I use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;call_status_full={'Unassigned'}&amp;gt;}suppgroup)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression check the &lt;STRONG&gt;call_status_full&lt;/STRONG&gt; field and if it equals unassigned, it tells me how many calls there are for each support group in field &lt;STRONG&gt;suppgroup.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I have been asked if I can expand the expression so it picks up unassigned call only if the field &lt;STRONG&gt;lastactdate &lt;/STRONG&gt;is 14 days or more older than the current system date.&lt;/P&gt;&lt;P&gt;EG: If a call was last updated on the system (&lt;STRONG&gt;lastactdate&lt;/STRONG&gt;) on 01/12/2012 and the date today is 19/12/2012, this call would show as 1 on the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; However if a call was last updated on the system (&lt;STRONG&gt;lastactdate&lt;/STRONG&gt;) on on 16/12/2012 and today is 19/12/2012, this would not show on the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon Ditchfield&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 12:08:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-19T12:08:45Z</dc:date>
    <item>
      <title>Calculated expression to remove certain days</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-expression-to-remove-certain-days/m-p/450957#M488549</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 have a straight table and thanks to this forum have a way of getting the count of all the Unassigned call from the database.&amp;nbsp; The expression I use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;call_status_full={'Unassigned'}&amp;gt;}suppgroup)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression check the &lt;STRONG&gt;call_status_full&lt;/STRONG&gt; field and if it equals unassigned, it tells me how many calls there are for each support group in field &lt;STRONG&gt;suppgroup.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I have been asked if I can expand the expression so it picks up unassigned call only if the field &lt;STRONG&gt;lastactdate &lt;/STRONG&gt;is 14 days or more older than the current system date.&lt;/P&gt;&lt;P&gt;EG: If a call was last updated on the system (&lt;STRONG&gt;lastactdate&lt;/STRONG&gt;) on 01/12/2012 and the date today is 19/12/2012, this call would show as 1 on the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; However if a call was last updated on the system (&lt;STRONG&gt;lastactdate&lt;/STRONG&gt;) on on 16/12/2012 and today is 19/12/2012, this would not show on the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon Ditchfield&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 12:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-expression-to-remove-certain-days/m-p/450957#M488549</guid>
      <dc:creator />
      <dc:date>2012-12-19T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression to remove certain days</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-expression-to-remove-certain-days/m-p/450958#M488551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;call_status_full={'Unassigned'}, lastactdate={'&amp;lt;=$(=date(today()-14))'}&amp;gt;}suppgroup)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 12:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-expression-to-remove-certain-days/m-p/450958#M488551</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-19T12:47:49Z</dc:date>
    </item>
  </channel>
</rss>

