<?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 How to create a bookmark that does not affect current selections - is it possible? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497795#M102779</link>
    <description>&lt;P&gt;Here's the scenario:&lt;/P&gt;
&lt;P&gt;I am creating multiple bookmarks for the same sheet; the only difference for each bookmark is that the layout is changed for a pivot table and the bookmarks are meant to be an easy way for users to get the drill-down order they desire for the pivot table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the user may have already selected other filters, I do not want those filters to be cleared when they select a bookmark to change the layout of the pivot table. Is it possible to do this?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 22:09:56 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2024-12-12T22:09:56Z</dc:date>
    <item>
      <title>How to create a bookmark that does not affect current selections - is it possible?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497795#M102779</link>
      <description>&lt;P&gt;Here's the scenario:&lt;/P&gt;
&lt;P&gt;I am creating multiple bookmarks for the same sheet; the only difference for each bookmark is that the layout is changed for a pivot table and the bookmarks are meant to be an easy way for users to get the drill-down order they desire for the pivot table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the user may have already selected other filters, I do not want those filters to be cleared when they select a bookmark to change the layout of the pivot table. Is it possible to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 22:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497795#M102779</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2024-12-12T22:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a bookmark that does not affect current selections - is it possible?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497812#M102782</link>
      <description>&lt;P&gt;To my knowledge it’s not possible to exclude selections from bookmarks. However, an alternative solution is to use variables to control the pivot table's layout. Instead of relying on bookmarks, users can select a scenario from a variable dropdown, which dynamically updates the pivot table dimensions.&lt;/P&gt;
&lt;P&gt;Here’s how this can be achieved:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Variable Dropdown&lt;/STRONG&gt;:&lt;BR /&gt;Use a variable dropdown selector in the UI to let users choose a scenario. The dropdown can include options like "scenario1" "scenario2," and "scenario3."&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-12-12_20-36-35.png" style="width: 539px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175676i5AA2B507C4A51579/image-dimensions/539x631?v=v2" width="539" height="631" role="button" title="2024-12-12_20-36-35.png" alt="2024-12-12_20-36-35.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Dynamic Dimension Expression&lt;/STRONG&gt;:&lt;BR /&gt;Use the following expression in the pivot table's dimension to update its "order" based on the selected scenario:&lt;CODE class="!whitespace-pre hljs language-qlik"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=pick(Match('$(var)','scenario1','scenario2','scenario3'),Dim1,Dim2,Dim3)&lt;/LI-CODE&gt;
&lt;DIV class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950"&gt;
&lt;DIV class="sticky top-9 md:top-[5.75rem]"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Replace &lt;CODE&gt;Dim1&lt;/CODE&gt;, &lt;CODE&gt;Dim2&lt;/CODE&gt;, and &lt;CODE&gt;Dim3&lt;/CODE&gt; with the actual dimensions you want for each scenario.&lt;/LI&gt;
&lt;LI&gt;The &lt;CODE&gt;Match&lt;/CODE&gt; function evaluates the selected scenario, and the &lt;CODE&gt;pick&lt;/CODE&gt; function dynamically assigns the dimension.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-12-12_20-36-53.png" style="width: 575px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175677i0440071DE66D6C54/image-dimensions/575x673?v=v2" width="575" height="673" role="button" title="2024-12-12_20-36-53.png" alt="2024-12-12_20-36-53.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This approach ensures:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;User selections remain unaffected.&lt;/LI&gt;
&lt;LI&gt;The pivot table layout adjusts dynamically based on the scenario selected in the dropdown.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 04:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497812#M102782</guid>
      <dc:creator>nhenckel</dc:creator>
      <dc:date>2024-12-13T04:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a bookmark that does not affect current selections - is it possible?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497956#M102823</link>
      <description>&lt;P&gt;Thank you for this suggestion; it looks very promising. I'm struggling with it a bit, however, and have some questions. Here's what I've done so far:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Created a variable called vCustLevel&lt;/LI&gt;
&lt;LI&gt;Created a variable drop-down with multiple choices (see screen shot)&lt;/LI&gt;
&lt;LI&gt;Edited the Row dimensions with just a couple of choices for testing - sample formula for first dimension is&amp;nbsp;&lt;BR /&gt;=pick(Match('$(vCustLevel)','ParentCust','ShipTo','Salesperson','ItemGroup','PriceSegment','Commodity','OutsideFlexReason'),ParentCust,SoldTo,ShipTo,Item)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1734127152139.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175695i21903210EC5CB62F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1734127152139.png" alt="mikegrattan_0-1734127152139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on my understanding, I should be able to choose ParentCust from the drop-down, and the dimensions should dynamically be selected as ParentCust,SoldTo,ShipTo,Item.&amp;nbsp; It's not working quite that way, however, and it only shows ParentCust and ShipTo when I drill down.&lt;/P&gt;
&lt;P&gt;I have added a second dimension with the following formula:&lt;BR /&gt;=pick(Match('$(vCustLevel)','ParentCust','ShipTo','Salesperson','ItemGroup','PriceSegment','Commodity','OutsideFlexReason'),ShipTo,Commodity,Item) - this is intended to have a drilldown for ShipTo, Commodity, and Item, when vCustLeve = ShipTo.&lt;/P&gt;
&lt;P&gt;The result of selecting ShipTo, however, only has a drilldown for ShipTo and Commodity, but not Item. I'm guessing I have to keep adding the dimensions to the pivot table with formulas for every scenario, but I want to make sure I'm on the right track.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 21:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497956#M102823</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2024-12-13T21:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a bookmark that does not affect current selections - is it possible?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497995#M102830</link>
      <description>&lt;P&gt;It looks like the issue with your current setup is that the number of options in the &lt;CODE&gt;Match&lt;/CODE&gt; function doesn’t align with the number of dimensions in the &lt;CODE&gt;Pick&lt;/CODE&gt; function. For &lt;CODE&gt;Pick&lt;/CODE&gt; to work correctly, the index returned by &lt;CODE&gt;Match&lt;/CODE&gt; must correspond directly to the dimensions in &lt;CODE&gt;Pick&lt;/CODE&gt;. Each scenario in &lt;CODE&gt;Match&lt;/CODE&gt; needs a matching dimension in &lt;CODE&gt;Pick&lt;/CODE&gt;. Also, since you’re building a drilldown, you’ll need separate &lt;CODE&gt;Pick&lt;/CODE&gt; expressions for each dimension in the pivot table to handle the hierarchy properly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Alternative Approach:&lt;/STRONG&gt; Instead of dynamically building the pivot table dimensions with &lt;CODE&gt;Pick&lt;/CODE&gt; and &lt;CODE&gt;Match&lt;/CODE&gt;, you could simplify the process by creating a separate pivot table for each dropdown option. Place these pivot tables in a container object and use the &lt;CODE&gt;Show Condition&lt;/CODE&gt; property on the container to display the correct pivot table based on the selected dropdown value. This avoids the complexity of writing &lt;CODE&gt;Pick&lt;/CODE&gt; and &lt;CODE&gt;Match&lt;/CODE&gt; expressions and lets you design each pivot table exactly how you want.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2024 16:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2497995#M102830</guid>
      <dc:creator>nhenckel</dc:creator>
      <dc:date>2024-12-14T16:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a bookmark that does not affect current selections - is it possible?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2498175#M102849</link>
      <description>&lt;P&gt;Thanks for the additional info. I'll continue to play around with it some more; I think both approaches could work, but it looks like the Pick and Match approach has an unexpected side-effect...the drill-downs will probably work when set up correctly, but the dimensions aren't represented in the correct order in the Rows selection area, so that could be confusing for users.&lt;/P&gt;
&lt;P&gt;I think I'll probably end up going with the alternative approach, since that will likely give the users a more organic experience.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 15:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-bookmark-that-does-not-affect-current-selections/m-p/2498175#M102849</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2024-12-16T15:40:09Z</dc:date>
    </item>
  </channel>
</rss>

