<?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 Filter Bookmark Unique Selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1835109#M68975</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;assuming you always want the last record that was added to the field.&lt;BR /&gt;you should paste this expression to the field search box&lt;BR /&gt;and then create a bookmark&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Cycle=fieldvalue('Cycle',FieldValueCount('Cycle'))&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 10 Sep 2021 05:59:17 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2021-09-10T05:59:17Z</dc:date>
    <item>
      <title>[SOLVED] Dynamic Filter Bookmark Unique Selection</title>
      <link>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1835092#M68969</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am trying to automatically filter when user log in the last Cycle which should be the max value of the field.&lt;/P&gt;
&lt;P&gt;This is a single selection filter field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Field = [Cycle]&lt;/P&gt;
&lt;P&gt;Values of Field = {"Actual, 92020, 102020, 122020, 42021, 52021"}&amp;nbsp; // date as "myyyy" format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the values above, the selected should be 52021.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I achieve this and save as dynamic bookmark.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance!!!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 14:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1835092#M68969</guid>
      <dc:creator>LucasD</dc:creator>
      <dc:date>2021-12-06T14:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Filter Bookmark Unique Selection</title>
      <link>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1835109#M68975</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;assuming you always want the last record that was added to the field.&lt;BR /&gt;you should paste this expression to the field search box&lt;BR /&gt;and then create a bookmark&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Cycle=fieldvalue('Cycle',FieldValueCount('Cycle'))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Sep 2021 05:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1835109#M68975</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2021-09-10T05:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Filter Bookmark Unique Selection</title>
      <link>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1835188#M68989</link>
      <description>&lt;P&gt;Thanks for Replying!&lt;BR /&gt;&lt;BR /&gt;It couldn't find any match, but I think it was due set analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I included only and {1} to ignore the selections, I was able to get the right value, but when saving the bookmark it doesn't save as formula but already transformed to the value.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=only({1}Cycle)=FieldValue('Cycle',FieldValueCount('Cycle'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried disabling the unique selection, saving the bookmark and afterwards making it unique again, but no success.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 12:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1835188#M68989</guid>
      <dc:creator>LucasD</dc:creator>
      <dc:date>2021-09-10T12:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Filter Bookmark Unique Selection</title>
      <link>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1867147#M71604</link>
      <description>&lt;P&gt;Few months later... I'VE JUST SOLVED!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I was facing problems by using dynamic filter selections, because some of my calculated measures was using "GetFieldSelection". Thus, since my selection was now given by the formula below, not the value, it couldn't be calculated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=only({1}Cycle)=FieldValue('Cycle',FieldValueCount('Cycle'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to solve, instead of using "GetFieldSelection", I changed to max of field (since it was an unique selection).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also I changed a lit bit the formula to get the max values no matter the months 12022 and 122021 (12022 should be the max).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Final Filter Selection&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=only({1}Cycle)= $(vMaxCycle)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where vMaxCycle is given by:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Num(
concat(right(Max({1}TOTAL RIGHT(Cycle,4)&amp;amp;if(len(Cycle)=5,'0'&amp;amp;left(Cycle,1),left(Cycle,2))),2)
&amp;amp;
left(Max({1}TOTAL RIGHT(Cycle,4)&amp;amp;if(len(Cycle)=5,'0'&amp;amp;left(Cycle,1),left(Cycle,2))),4),'')
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 14:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SOLVED-Dynamic-Filter-Bookmark-Unique-Selection/m-p/1867147#M71604</guid>
      <dc:creator>LucasD</dc:creator>
      <dc:date>2021-12-06T14:58:56Z</dc:date>
    </item>
  </channel>
</rss>

