<?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 Calculate filtering the Data Model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-filtering-the-Data-Model/m-p/912035#M316501</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 am trying to do the following, let me explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data model I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ID&lt;/LI&gt;&lt;LI&gt;Test End Date&lt;/LI&gt;&lt;LI&gt;Report Approval Date&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;I want to filter the data model with the following criteria in order to calculate how many reports are pending to be reported in each month:&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;IDs with a Test End Date &amp;lt; Year Month&lt;/LI&gt;&lt;LI&gt;IDs with a ReportApprovalDate &amp;gt; Year Month + ReportApproval Date = Null&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;See below an example:&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt;ID1; Test End Date = 1-Jan-14; Report Approval Date = NullI&lt;/P&gt;&lt;P&gt;D2; Test End Date = 1-Jan-14; Report Approval Date = 3-Jan-14&lt;/P&gt;&lt;P&gt;ID3; Test End Date = 1-Jan-14; Report Approval Date = 27-Feb-14&lt;/P&gt;&lt;P&gt;ID4; Test End Date = 1-Jan-14; Report Approval Date = 17-Apr-14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt;In the Plot we should have the Year-Months in the X axe and the count of Pending Reports in the Y axe. In this case, see below the result that we should get:&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="padding: 2px; text-align: center; color: rgb(255, 255, 255); background-color: rgb(102, 144, 188);" valign="middle"&gt;&lt;STRONG&gt;Year Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: rgb(255, 255, 255); background-color: rgb(102, 144, 188);" valign="middle"&gt;&lt;STRONG&gt;Count Pending Reports&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: rgb(255, 255, 255); background-color: rgb(102, 144, 188);" valign="middle"&gt;&lt;STRONG&gt;IDs that should be counted&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-January&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1, ID3 and ID4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-February&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1 and ID4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-March&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1 and ID4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-April&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the best way to do this? I have tried several ways without success. The only way that I think that could be valid is creating an auxiliary data table inside the script (see the “AuxiliarTable” sheet in the attached excel table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to calculate the pending reports adding an dinamic expression in the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 12:30:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-05T12:30:09Z</dc:date>
    <item>
      <title>Calculate filtering the Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-filtering-the-Data-Model/m-p/912035#M316501</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 am trying to do the following, let me explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data model I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ID&lt;/LI&gt;&lt;LI&gt;Test End Date&lt;/LI&gt;&lt;LI&gt;Report Approval Date&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;I want to filter the data model with the following criteria in order to calculate how many reports are pending to be reported in each month:&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;IDs with a Test End Date &amp;lt; Year Month&lt;/LI&gt;&lt;LI&gt;IDs with a ReportApprovalDate &amp;gt; Year Month + ReportApproval Date = Null&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;See below an example:&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt;ID1; Test End Date = 1-Jan-14; Report Approval Date = NullI&lt;/P&gt;&lt;P&gt;D2; Test End Date = 1-Jan-14; Report Approval Date = 3-Jan-14&lt;/P&gt;&lt;P&gt;ID3; Test End Date = 1-Jan-14; Report Approval Date = 27-Feb-14&lt;/P&gt;&lt;P&gt;ID4; Test End Date = 1-Jan-14; Report Approval Date = 17-Apr-14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt;In the Plot we should have the Year-Months in the X axe and the count of Pending Reports in the Y axe. In this case, see below the result that we should get:&lt;SPAN _mce_keep="true"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN _mce_keep="true"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="padding: 2px; text-align: center; color: rgb(255, 255, 255); background-color: rgb(102, 144, 188);" valign="middle"&gt;&lt;STRONG&gt;Year Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: rgb(255, 255, 255); background-color: rgb(102, 144, 188);" valign="middle"&gt;&lt;STRONG&gt;Count Pending Reports&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: rgb(255, 255, 255); background-color: rgb(102, 144, 188);" valign="middle"&gt;&lt;STRONG&gt;IDs that should be counted&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-January&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1, ID3 and ID4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-February&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1 and ID4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-March&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1 and ID4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014-April&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;ID1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the best way to do this? I have tried several ways without success. The only way that I think that could be valid is creating an auxiliary data table inside the script (see the “AuxiliarTable” sheet in the attached excel table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to calculate the pending reports adding an dinamic expression in the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 12:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-filtering-the-Data-Model/m-p/912035#M316501</guid>
      <dc:creator />
      <dc:date>2015-08-05T12:30:09Z</dc:date>
    </item>
  </channel>
</rss>

