<?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: Possible Syntax Error. Dynamic Date for bookmark in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Possible-Syntax-Error-Dynamic-Date-for-bookmark/m-p/2477346#M100363</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/310263"&gt;@paul1204&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Look like this, inside the search box:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=[POI Date.Year]=Year(Today())&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;- Matheus&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 18:41:18 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2024-08-21T18:41:18Z</dc:date>
    <item>
      <title>Possible Syntax Error. Dynamic Date for bookmark</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Syntax-Error-Dynamic-Date-for-bookmark/m-p/2477335#M100361</link>
      <description>&lt;P&gt;Hello good people of the Qlik Community&lt;/P&gt;
&lt;P&gt;We have a Year drop down and the User can select the Year they want to view.&lt;/P&gt;
&lt;P&gt;The problem is that it defaults to year 2023 when entering the sheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want to change it to use a dynamic value GL.Year = Year((Today(0)). but when doing so, the expression is blank on the bookmark.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;What am I missing? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;Here's some screenshots to illustrate.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;LI-WRAPPER&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul1204_0-1724261626782.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/170851i3C2B742E48A06508/image-size/large?v=v2&amp;amp;px=999" role="button" title="paul1204_0-1724261626782.png" alt="paul1204_0-1724261626782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Heres the bookmark&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul1204_1-1724261737168.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/170852i470F98D7334502DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul1204_1-1724261737168.png" alt="paul1204_1-1724261737168.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example where it's hardcoded a year. We don't want a hardcoded year, would like to have Year(Today(0)) to keep it dynamic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul1204_2-1724261809477.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/170853iD32F47D4FBB2F261/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul1204_2-1724261809477.png" alt="paul1204_2-1724261809477.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm able to achieve this using the Action, but it only applies to one sheet in a application. Looking for more of a "global" config where all sheets in the app use Year(today(0)) as the Year selection&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 17:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Syntax-Error-Dynamic-Date-for-bookmark/m-p/2477335#M100361</guid>
      <dc:creator>paul1204</dc:creator>
      <dc:date>2024-08-21T17:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Syntax Error. Dynamic Date for bookmark</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Syntax-Error-Dynamic-Date-for-bookmark/m-p/2477344#M100362</link>
      <description>&lt;P&gt;To set a dynamic default year in Qlik Sense bookmarks, you can use the following approach:&lt;/P&gt;
&lt;P&gt;1. Create a new variable, e.g., &lt;STRONG&gt;vCurrentYear&lt;/STRONG&gt;, with the definition: &lt;STRONG&gt;Year(Today())&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;2. Create a bookmark with the desired selections. Instead of hardcoding the year, use the variable you created. For example, in the Year field, use &lt;STRONG&gt;=$(vCurrentYear)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3. Ensure that the bookmark is applied when the sheet is opened. You can do this by setting the bookmark as the default bookmark for the sheet.&lt;/P&gt;
&lt;P&gt;This method ensures that the bookmark dynamically updates to the current year whenever the sheet is accessed.&lt;/P&gt;
&lt;P&gt;If you encounter issues with the expression being blank, double-check the variable definition and ensure it is correctly referenced in the bookmark. Additionally, verify that the variable is properly defined and accessible in the context where the bookmark is applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 18:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Syntax-Error-Dynamic-Date-for-bookmark/m-p/2477344#M100362</guid>
      <dc:creator>Sayed_Mannan</dc:creator>
      <dc:date>2024-08-21T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Syntax Error. Dynamic Date for bookmark</title>
      <link>https://community.qlik.com/t5/App-Development/Possible-Syntax-Error-Dynamic-Date-for-bookmark/m-p/2477346#M100363</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/310263"&gt;@paul1204&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Look like this, inside the search box:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=[POI Date.Year]=Year(Today())&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;- Matheus&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 18:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Possible-Syntax-Error-Dynamic-Date-for-bookmark/m-p/2477346#M100363</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-08-21T18:41:18Z</dc:date>
    </item>
  </channel>
</rss>

