<?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 How can I create a Project status filter based on Billable Hours for a rolling 3 months? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-Project-status-filter-based-on-Billable-Hours/m-p/1120188#M462880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a filter that determines the following:&lt;/P&gt;&lt;P&gt;If a project has greater than 0 Billable Housr within the last rolling 3 months, then the project is Active&lt;/P&gt;&lt;P&gt;If a project has 0 Billable Hours within the last rolling 3 months, then the project is Inactive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I go about this? Do I need to build an Expression that states that if Project Billable Hour is &amp;gt; 0, then 'Active', and if Project Billable Hour is 0, then Inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a pretty novice user so any advice/ direction would be helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2016 20:55:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-16T20:55:44Z</dc:date>
    <item>
      <title>How can I create a Project status filter based on Billable Hours for a rolling 3 months?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-Project-status-filter-based-on-Billable-Hours/m-p/1120188#M462880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a filter that determines the following:&lt;/P&gt;&lt;P&gt;If a project has greater than 0 Billable Housr within the last rolling 3 months, then the project is Active&lt;/P&gt;&lt;P&gt;If a project has 0 Billable Hours within the last rolling 3 months, then the project is Inactive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I go about this? Do I need to build an Expression that states that if Project Billable Hour is &amp;gt; 0, then 'Active', and if Project Billable Hour is 0, then Inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a pretty novice user so any advice/ direction would be helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 20:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-create-a-Project-status-filter-based-on-Billable-Hours/m-p/1120188#M462880</guid>
      <dc:creator />
      <dc:date>2016-08-16T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a Project status filter based on Billable Hours for a rolling 3 months?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-create-a-Project-status-filter-based-on-Billable-Hours/m-p/1120189#M462881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a field in the script when you load the billable hours:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facts:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProjectID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateOfWork,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HoursOfWork,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(InMonths(DateOfWork, Today(), -2), 1, 0) as InLastThreeMonths&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....other fields....&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source data...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you could add a summary table with the active projects:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveProjects:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProjectID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Active' as Status&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facts&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InLastThreeMonths = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 07:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-create-a-Project-status-filter-based-on-Billable-Hours/m-p/1120189#M462881</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-17T07:37:41Z</dc:date>
    </item>
  </channel>
</rss>

