<?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 Conditionally Clear selections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditionally-Clear-selections/m-p/1698485#M53471</link>
    <description>&lt;P&gt;&lt;BR /&gt;* We have a Flying Table with Dates&lt;/P&gt;&lt;P&gt;* A star schema with Fact &amp;amp; Dimensions. Fact Table has 2 date columns as Valid_From_Date &amp;amp; Valid_To_Date&lt;/P&gt;&lt;P&gt;FlyingTable has not relation with Fact table model&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;craeted a variable: varDateSelected=coalesce(GetFieldSelections(DateValue),today())&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Later I have create some Dimesions and Measures by referring to the Date selected on FlyingTable&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;LineofBusiness: if(varDateSelected&amp;gt;=Valid_From_Date and Valid_To_Date&amp;lt;=varDateSelected, [LineofBusiness], null())&lt;/P&gt;&lt;P&gt;Sales: if(varDateSelected&amp;gt;=Valid_From_Date and Valid_To_Date&amp;lt;=varDateSelected, [Sales], 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing so, the visualizations and data are working all fine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But there is a problem when we make any selection by a Dimension value.&lt;/P&gt;&lt;P&gt;For example, if I select LineofBusiness dimension to a vlaue like 'Fleet'.... the visualization is changing based on varDateSelected+'Fleet'&lt;/P&gt;&lt;P&gt;for this one selction made on visualisation, on the Selections area in top, we see 3 selections based on Valid_From_Date &amp;amp; Valid_To_Date &amp;amp; LineofBusiness values&lt;/P&gt;&lt;P&gt;then when I undo the LineofBusiness from selections panel.... the other 2 selections on Valid_From_Date &amp;amp; Valid_To_Date stays on.&lt;BR /&gt;And that limits data to teh dates relevant to earlier selection only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so basically what we want to, when all the manually made selection are cleared, I want to clear other implicit selections&lt;/P&gt;&lt;P&gt;or may be some code to run when ever any selctions are cleared... it should run and check how many selection do exist if the count&amp;gt;2, then we should able to clear all the selection&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Not sure if we are asking tooo much from qliksense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2020 18:55:20 GMT</pubDate>
    <dc:creator>tvsr111</dc:creator>
    <dc:date>2020-05-02T18:55:20Z</dc:date>
    <item>
      <title>Conditionally Clear selections</title>
      <link>https://community.qlik.com/t5/App-Development/Conditionally-Clear-selections/m-p/1698485#M53471</link>
      <description>&lt;P&gt;&lt;BR /&gt;* We have a Flying Table with Dates&lt;/P&gt;&lt;P&gt;* A star schema with Fact &amp;amp; Dimensions. Fact Table has 2 date columns as Valid_From_Date &amp;amp; Valid_To_Date&lt;/P&gt;&lt;P&gt;FlyingTable has not relation with Fact table model&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;craeted a variable: varDateSelected=coalesce(GetFieldSelections(DateValue),today())&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Later I have create some Dimesions and Measures by referring to the Date selected on FlyingTable&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;LineofBusiness: if(varDateSelected&amp;gt;=Valid_From_Date and Valid_To_Date&amp;lt;=varDateSelected, [LineofBusiness], null())&lt;/P&gt;&lt;P&gt;Sales: if(varDateSelected&amp;gt;=Valid_From_Date and Valid_To_Date&amp;lt;=varDateSelected, [Sales], 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing so, the visualizations and data are working all fine.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But there is a problem when we make any selection by a Dimension value.&lt;/P&gt;&lt;P&gt;For example, if I select LineofBusiness dimension to a vlaue like 'Fleet'.... the visualization is changing based on varDateSelected+'Fleet'&lt;/P&gt;&lt;P&gt;for this one selction made on visualisation, on the Selections area in top, we see 3 selections based on Valid_From_Date &amp;amp; Valid_To_Date &amp;amp; LineofBusiness values&lt;/P&gt;&lt;P&gt;then when I undo the LineofBusiness from selections panel.... the other 2 selections on Valid_From_Date &amp;amp; Valid_To_Date stays on.&lt;BR /&gt;And that limits data to teh dates relevant to earlier selection only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so basically what we want to, when all the manually made selection are cleared, I want to clear other implicit selections&lt;/P&gt;&lt;P&gt;or may be some code to run when ever any selctions are cleared... it should run and check how many selection do exist if the count&amp;gt;2, then we should able to clear all the selection&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Not sure if we are asking tooo much from qliksense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 18:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditionally-Clear-selections/m-p/1698485#M53471</guid>
      <dc:creator>tvsr111</dc:creator>
      <dc:date>2020-05-02T18:55:20Z</dc:date>
    </item>
  </channel>
</rss>

