<?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 filter table base on selected bookmark in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/filter-table-base-on-selected-bookmark/m-p/1889509#M199596</link>
    <description>&lt;P&gt;Hi team, I have two tables. Table 1(Main table) and Table 2(Item table). I want to filter Table 2 base on the value selected&amp;nbsp;in Table 1 by clicking button or automatically other wise I want Table 2 remain empty.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Table 1:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ravin1_0-1644140311818.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71688i9B2B0CF70EAA981E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ravin1_0-1644140311818.png" alt="Ravin1_0-1644140311818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Table 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ravin1_1-1644140345105.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71689i032B20D4A3708E29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ravin1_1-1644140345105.png" alt="Ravin1_1-1644140345105.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example scenario:- Let say, I selected value " ID=8 " in Table 1 then Table 2 should filter "ID=8". So, I able to see the items for the selected ID only. Once clear the selected value then Table 2 need to be empty.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Feb 2022 09:51:10 GMT</pubDate>
    <dc:creator>Ravin1</dc:creator>
    <dc:date>2022-02-06T09:51:10Z</dc:date>
    <item>
      <title>filter table base on selected bookmark</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/filter-table-base-on-selected-bookmark/m-p/1889509#M199596</link>
      <description>&lt;P&gt;Hi team, I have two tables. Table 1(Main table) and Table 2(Item table). I want to filter Table 2 base on the value selected&amp;nbsp;in Table 1 by clicking button or automatically other wise I want Table 2 remain empty.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Table 1:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ravin1_0-1644140311818.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71688i9B2B0CF70EAA981E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ravin1_0-1644140311818.png" alt="Ravin1_0-1644140311818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Table 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ravin1_1-1644140345105.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71689i032B20D4A3708E29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ravin1_1-1644140345105.png" alt="Ravin1_1-1644140345105.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example scenario:- Let say, I selected value " ID=8 " in Table 1 then Table 2 should filter "ID=8". So, I able to see the items for the selected ID only. Once clear the selected value then Table 2 need to be empty.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 09:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/filter-table-base-on-selected-bookmark/m-p/1889509#M199596</guid>
      <dc:creator>Ravin1</dc:creator>
      <dc:date>2022-02-06T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: filter table base on selected bookmark</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/filter-table-base-on-selected-bookmark/m-p/1890833#M199727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If my understanding is correct, you would like to filter the data in &lt;STRONG&gt;Table 2&lt;/STRONG&gt;&amp;nbsp;based on the selected &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;values of &lt;STRONG&gt;Table 1&lt;/STRONG&gt;, but in the event that non of the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;are selected, the table should display nothing. This can be done with different ways:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;STRONG&gt;A. This case describes the scenario where IDs are linked.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1. If you load the following dataset:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/8be95112-502f-4d21-afaa-53a2162a16ea.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You will notice that the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;field in both tables is the same. So they are linked together and thus the &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;Data model viewer &lt;/STRONG&gt;&lt;/SPAN&gt;shows the following output:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/ec2a1549-2030-499d-a566-d4dc2e1f269d.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;As you can see both &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;fields are linked with each other, which means that if you select the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;8 on the &lt;STRONG&gt;Table 1&lt;/STRONG&gt;, it will also filter the data on the second table as follows:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/3b1e8a9c-c83e-4323-87ed-9f69e9498e5f.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. Now if you want to avoid displaying any data if non of the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;is selected, then you can go to&amp;nbsp;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;&amp;nbsp;Edit sheet &amp;gt; Select Table 2 &amp;gt; Add-ons &amp;gt; Data handling &amp;gt; Calculation condition&lt;/STRONG&gt;&lt;/SPAN&gt; and use the expression&lt;STRONG&gt;&amp;nbsp;=&lt;SPAN style="color:#2980b9"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color:#f39c12"&gt;ID&lt;/SPAN&gt;) &amp;gt; 0&lt;/STRONG&gt;. The outcome is:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/47075f9f-29ed-4c8f-9c8d-01d8d348f92c.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;As you can see it first checks if there are any &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;selected and if this statement is true then it allow the display of the data, otherwise it will show a custom message for unmet condition.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;STRONG&gt;B. In case the &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;STRONG&gt;fields in both tables have different names and thus are not linked with each other, you have to follow a different approach. For example here is the dataset:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/27d0b401-43ea-4c84-8c1c-be40659094c8.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;As you can see the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;field in first table is now named &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID1&lt;/STRONG&gt;&lt;/SPAN&gt; and the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;field in second table is now named &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID2&lt;/STRONG&gt;&lt;/SPAN&gt;. Therefore, those 2 &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;are not linked with each other in the &lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Data model viewer&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/0c816180-0a21-46a2-985f-5e992ab6114a.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1. For the second table instead of using &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID2 &lt;/STRONG&gt;&lt;/SPAN&gt;as the first dimension, I have used the following expression:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color:#2980b9"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color:#2980b9"&gt;WildMatch&lt;/SPAN&gt;(&lt;SPAN style="color:#2980b9"&gt;GetFieldSelections&lt;/SPAN&gt;(&lt;SPAN style="color:#f39c12"&gt;ID1&lt;/SPAN&gt;), '*' &amp;amp; &lt;SPAN style="color:#f39c12"&gt;ID2 &lt;/SPAN&gt;&amp;amp; '*'), &lt;SPAN style="color:#f39c12"&gt;ID2&lt;/SPAN&gt;, &lt;SPAN style="color:#2980b9"&gt;Null&lt;/SPAN&gt;())&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This expression will first get all the selected fields from &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID1 &lt;/STRONG&gt;&lt;/SPAN&gt;and will check to see which &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;from &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID2 &lt;/STRONG&gt;&lt;/SPAN&gt;field are matching. If the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt; match it will return the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;, but otherwise it will return&lt;STRONG&gt; &lt;SPAN style="color:#2980b9"&gt;Null&lt;/SPAN&gt;()&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. Now I have un-checked the option &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;"Include null values"&lt;/STRONG&gt;&lt;/SPAN&gt; for that dimension&lt;/P&gt;

&lt;P&gt;3. Under &lt;STRONG&gt;Add-ons &amp;gt; Data handling&amp;nbsp;&amp;gt; Calculation condition &lt;/STRONG&gt;I have used the expression&amp;nbsp;&lt;STRONG&gt;=&lt;SPAN style="color:#2980b9"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color:#f39c12"&gt;ID1&lt;/SPAN&gt;) &amp;gt; 0&lt;/STRONG&gt; which checks if any &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;are selected from the first table.&lt;/P&gt;

&lt;P&gt;4. The outcome if non of the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;are selected is:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/d69a4423-acbd-4603-80fa-4110c61dea80.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;5. The outcome if one &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;is selected is:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/cd9e99e7-94ad-439a-8016-d4ca5dc33c2f.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;6. The outcome if more than one &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;are selected:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="IMAGE" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/fa2d1f67-6bfe-498e-91b1-9be804f18da2.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;As you can see if non of the &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;IDs &lt;/STRONG&gt;&lt;/SPAN&gt;are selected the second table displays a custom message for unmet condition, otherwise it filters the second table based on selected values from the first one.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;&lt;STRONG&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 08:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/filter-table-base-on-selected-bookmark/m-p/1890833#M199727</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2022-02-09T08:45:18Z</dc:date>
    </item>
  </channel>
</rss>

