<?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 Re: Dynamic Bookmark creation on Date field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2503187#M103571</link>
    <description>&lt;P&gt;Hi try setting up a variable for vMaxDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let vMaxDate = date(today(), 'DD/MM/YYYY');&lt;/P&gt;
&lt;P&gt;The use the autoCalender to get the date from your timestamp.&lt;/P&gt;
&lt;P&gt;[autoCalendar]: &lt;BR /&gt;DECLARE FIELD DEFINITION Tagged ('$time','$Date')&lt;BR /&gt;FIELDS&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;DERIVE FIELDS FROM FIELDS &lt;BR /&gt;your_date_time&lt;BR /&gt;USING [autoCalendar] ;&lt;/P&gt;
&lt;P&gt;Go to your date field and add in the following, it should then show your required date&lt;/P&gt;
&lt;P&gt;=your_date_time.autoCalendar.Date=vMaxDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Save your bookmark now.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 07:21:53 GMT</pubDate>
    <dc:creator>Mandy</dc:creator>
    <dc:date>2025-01-28T07:21:53Z</dc:date>
    <item>
      <title>Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502859#M103515</link>
      <description>&lt;P&gt;Date format : DD/MM/YYYY&lt;/P&gt;
&lt;P&gt;I need to create a Dynamic Bookmark on date field filter for current day -1. If someone can help please do&lt;/P&gt;
&lt;P&gt;I tried the below expressions but no luck&lt;/P&gt;
&lt;P&gt;=Num([Date Field]) = Max(Total[Date Field] -1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I don't subtact 1 I'm getting the max date value with this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Num([Date Field]) = Max(Total[Date Field])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 14:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502859#M103515</guid>
      <dc:creator>sunny_ryuke</dc:creator>
      <dc:date>2025-01-24T14:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502889#M103518</link>
      <description>&lt;P&gt;If you're just trying to get the max value within your entire dataset (ignoring all filters), then this should do it:&lt;/P&gt;
&lt;P&gt;max({1} [Date Field])-1&lt;/P&gt;
&lt;P&gt;or if you need it formatted a certain way, wrap it in date():&lt;/P&gt;
&lt;P&gt;date(max({1} [Date Field])-1,'DD/MM/YYYY')&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 16:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502889#M103518</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2025-01-24T16:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502890#M103519</link>
      <description>&lt;P&gt;Maybe in this way:&amp;nbsp;&lt;SPAN&gt;=Num([Date Field]) = (Max([Date Field]) &lt;STRONG&gt;-1&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 16:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502890#M103519</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-01-24T16:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502960#M103534</link>
      <description>&lt;P&gt;I have tried these already they didn't work&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 04:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502960#M103534</guid>
      <dc:creator>sunny_ryuke</dc:creator>
      <dc:date>2025-01-27T04:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502961#M103535</link>
      <description>&lt;P&gt;No it didn't work&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 05:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502961#M103535</guid>
      <dc:creator>sunny_ryuke</dc:creator>
      <dc:date>2025-01-27T05:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502962#M103536</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/325535"&gt;@sunny_ryuke&lt;/a&gt;&amp;nbsp;I need filter data based on Date filed using bookmark. so used one filter pane with respective date field and applied below expression in that filter search box and the created bookmark.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=Date(Field,'DD/MM/YYYY')&amp;gt;=Date(Yearstart(today(),0,4),'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 05:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502962#M103536</guid>
      <dc:creator>Bhushan_Mahajan</dc:creator>
      <dc:date>2025-01-27T05:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502991#M103540</link>
      <description>&lt;P&gt;I'm not sure why that doesn't work. I've implemented similar many times, and it always works fine. It might be the way you're applying the filter. I think I should have expanded on my original post:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;This is how to set the variable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you're just trying to get the max value within your entire dataset (ignoring all filters), then this should do it:&lt;/P&gt;
&lt;P&gt;max({1} [Date Field])-1&lt;/P&gt;
&lt;P&gt;or if you need it formatted a certain way, wrap it in date():&lt;/P&gt;
&lt;P&gt;date(max({1} [Date Field])-1,'DD/MM/YYYY')&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;... and this is how to apply the filter for the bookmark:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. Create a filter pane containing your date field.&lt;/P&gt;
&lt;P&gt;2. Filter your date field on the variable, not on the value... so in the example below, I have vBookmarkTest set as&amp;nbsp;=max({1} WK_COMM)-7 . I then filter my date field (WK_COMM) as below, specifying that the field must equal the value of the variable. Press enter to make the selection (don't click the tick icon).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ben_P_1-1737966111298.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176881i5EA8A7233F109C0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ben_P_1-1737966111298.png" alt="Ben_P_1-1737966111298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Create your bookmark.&lt;/P&gt;
&lt;P&gt;4. You can then check that this has worked by viewing bookmark details, and you will see that the variable is specified.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ben_P_2-1737966346696.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176883i3E315A0D370A4A1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ben_P_2-1737966346696.png" alt="Ben_P_2-1737966346696.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 08:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2502991#M103540</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2025-01-27T08:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2503176#M103570</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/325535"&gt;@sunny_ryuke&lt;/a&gt;&amp;nbsp;I think It will not work since max can be used in Measure and filter works on dimension.&lt;/P&gt;
&lt;P&gt;Maybe You can do it in backend and then apply bookmark.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 04:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2503176#M103570</guid>
      <dc:creator>Bhushan_Mahajan</dc:creator>
      <dc:date>2025-01-28T04:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Bookmark creation on Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2503187#M103571</link>
      <description>&lt;P&gt;Hi try setting up a variable for vMaxDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let vMaxDate = date(today(), 'DD/MM/YYYY');&lt;/P&gt;
&lt;P&gt;The use the autoCalender to get the date from your timestamp.&lt;/P&gt;
&lt;P&gt;[autoCalendar]: &lt;BR /&gt;DECLARE FIELD DEFINITION Tagged ('$time','$Date')&lt;BR /&gt;FIELDS&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;DERIVE FIELDS FROM FIELDS &lt;BR /&gt;your_date_time&lt;BR /&gt;USING [autoCalendar] ;&lt;/P&gt;
&lt;P&gt;Go to your date field and add in the following, it should then show your required date&lt;/P&gt;
&lt;P&gt;=your_date_time.autoCalendar.Date=vMaxDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Save your bookmark now.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 07:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Bookmark-creation-on-Date-field/m-p/2503187#M103571</guid>
      <dc:creator>Mandy</dc:creator>
      <dc:date>2025-01-28T07:21:53Z</dc:date>
    </item>
  </channel>
</rss>

