<?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 Dynamic previous day filter for table box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-previous-day-filter-for-table-box/m-p/2036323#M1222545</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;My application has two filters: current date and previous date.&lt;/P&gt;
&lt;P&gt;When a user selects a date, such as today, in previous date the value is -1 and display it in the table box.&lt;/P&gt;
&lt;P&gt;Now the requirement is the previous date must be dynamic, which implies that it must default to the current date-1 while still allowing users to pick any other previous dates concurrently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 07:15:11 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2023-02-10T07:15:11Z</dc:date>
    <item>
      <title>Dynamic previous day filter for table box</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-previous-day-filter-for-table-box/m-p/2036323#M1222545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;My application has two filters: current date and previous date.&lt;/P&gt;
&lt;P&gt;When a user selects a date, such as today, in previous date the value is -1 and display it in the table box.&lt;/P&gt;
&lt;P&gt;Now the requirement is the previous date must be dynamic, which implies that it must default to the current date-1 while still allowing users to pick any other previous dates concurrently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 07:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-previous-day-filter-for-table-box/m-p/2036323#M1222545</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2023-02-10T07:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic previous day filter for table box</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-previous-day-filter-for-table-box/m-p/2040560#M1222695</link>
      <description>&lt;P&gt;if i understand it correcty, you have 2 fields CURRENT DATE and PREVIOUS DATE.&amp;nbsp; what you want is when the user selects CURRENT DATE, you want PREVIOUS DATE to default to CURRENT DATE -1.&lt;BR /&gt;&lt;BR /&gt;Are you using Qlikview?&amp;nbsp; if so, add a field event on CURRENT DATE when selected, select PREVIOUS DATE&lt;BR /&gt;&lt;BR /&gt;if you are using QLik Sense, unfortunately, there are no triggers that will select a 2nd field when you select any field.&amp;nbsp; however, you can associate CURRENT DATE to all PREVIOUS DATEs that are &amp;lt;CURRENT DATE.&amp;nbsp; meaning, all dates prior to CURRENT DATE are now selectable.&amp;nbsp; then create a variable that gets the date(max(PREVIOUS DATE)) and use that in your calculation as set analysis modifier.&amp;nbsp; this means CURRENT DATE -1 becomes the default should no selection for PREVIOUS DATE be made.&amp;nbsp; the user can then select any PREVIOUS DATE and since max(of the selected PREVIOUS DATE) = selected PREVIOUS DATE then it gets inserted into your calculation&lt;BR /&gt;&lt;BR /&gt;vPreviousDateDefault = date(max([PREVIOUS DATE]))&lt;BR /&gt;&lt;BR /&gt;your expression will need the set analysis modifier&lt;BR /&gt;&lt;BR /&gt;{&amp;lt;[PREVIOUS DATE]={'$(vPreviousDateDefault )'}&amp;gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 18:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-previous-day-filter-for-table-box/m-p/2040560#M1222695</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-02-21T18:48:58Z</dc:date>
    </item>
  </channel>
</rss>

