<?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 Qlik Sense - filter table based on selected date period in filter pane in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-filter-table-based-on-selected-date-period-in-filter/m-p/1707561#M54286</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In brief: This is a table of customers and their sales data, along with the date of their 1st order and the date of their last order. Pls see the image.&lt;/P&gt;&lt;P&gt;I have to find the new customers that have been acquired on a quarterly basis. Since all the customers do repeat business, we need to remove those who placed their first orders with us in a period earlier than what has been chosen in the filter pane.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a single data field in my data source -&amp;nbsp;&lt;STRONG&gt;SB_Date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;On the sheet, I have a filter pane' with dimension =&amp;nbsp;&lt;STRONG&gt;SB_Date.autoCalendar.YearQuarter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I choose date periods (in YYYY-Qtr) from the filter pane, I get a listing of records in the chosen date period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further, there are 2 more columns in the table which are calculated as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Started (the date of 1st order)&lt;/EM&gt; = Min({$&amp;lt;[SB_Date.autoCalendar.YearQuarter]=&amp;gt;}SB_Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Last order&lt;/EM&gt; =&amp;nbsp;Max({$&amp;lt;[SB_Date.autoCalendar.YearQuarter]=&amp;gt;}SB_Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now what I need help with is - that based on the filter pane date period selections, only those rows should appear in the table where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;Started (the date of 1st order)&lt;/EM&gt;&amp;nbsp; =&lt;/STRONG&gt;&amp;nbsp;selected date periods from the filter pane (&lt;STRONG&gt;SB_Date.autoCalendar.YearQuarter)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Wherever the Started &amp;lt;&amp;gt; Selected date period, the rows should not appear.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sjoshan_0-1591117063754.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34832i406B1F6285830189/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sjoshan_0-1591117063754.png" alt="sjoshan_0-1591117063754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 13:46:08 GMT</pubDate>
    <dc:creator>sjoshan</dc:creator>
    <dc:date>2021-04-01T13:46:08Z</dc:date>
    <item>
      <title>Qlik Sense - filter table based on selected date period in filter pane</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-filter-table-based-on-selected-date-period-in-filter/m-p/1707561#M54286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In brief: This is a table of customers and their sales data, along with the date of their 1st order and the date of their last order. Pls see the image.&lt;/P&gt;&lt;P&gt;I have to find the new customers that have been acquired on a quarterly basis. Since all the customers do repeat business, we need to remove those who placed their first orders with us in a period earlier than what has been chosen in the filter pane.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a single data field in my data source -&amp;nbsp;&lt;STRONG&gt;SB_Date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;On the sheet, I have a filter pane' with dimension =&amp;nbsp;&lt;STRONG&gt;SB_Date.autoCalendar.YearQuarter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I choose date periods (in YYYY-Qtr) from the filter pane, I get a listing of records in the chosen date period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further, there are 2 more columns in the table which are calculated as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Started (the date of 1st order)&lt;/EM&gt; = Min({$&amp;lt;[SB_Date.autoCalendar.YearQuarter]=&amp;gt;}SB_Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Last order&lt;/EM&gt; =&amp;nbsp;Max({$&amp;lt;[SB_Date.autoCalendar.YearQuarter]=&amp;gt;}SB_Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now what I need help with is - that based on the filter pane date period selections, only those rows should appear in the table where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;Started (the date of 1st order)&lt;/EM&gt;&amp;nbsp; =&lt;/STRONG&gt;&amp;nbsp;selected date periods from the filter pane (&lt;STRONG&gt;SB_Date.autoCalendar.YearQuarter)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Wherever the Started &amp;lt;&amp;gt; Selected date period, the rows should not appear.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sjoshan_0-1591117063754.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34832i406B1F6285830189/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sjoshan_0-1591117063754.png" alt="sjoshan_0-1591117063754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 13:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-filter-table-based-on-selected-date-period-in-filter/m-p/1707561#M54286</guid>
      <dc:creator>sjoshan</dc:creator>
      <dc:date>2021-04-01T13:46:08Z</dc:date>
    </item>
  </channel>
</rss>

