<?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 Default Selection on Qlik Cloud in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Default-Selection-on-Qlik-Cloud/m-p/93302#M6209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, how are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering, is there a simple way to have a default selection for a filter on Qlik Cloud? (knowing we can't use extensions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this with if statements. But then I have to apply this too many times, it's exausting (and hard to edit later if I need to).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code if anyone is interested. It consideres the current year if no filter is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(GetSelectedCount(Year)&amp;gt;0,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Cost)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, //else&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;Year={'$(=year(now()))'}&amp;gt;} Cost)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2018 19:40:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-10T19:40:17Z</dc:date>
    <item>
      <title>Default Selection on Qlik Cloud</title>
      <link>https://community.qlik.com/t5/App-Development/Default-Selection-on-Qlik-Cloud/m-p/93302#M6209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, how are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering, is there a simple way to have a default selection for a filter on Qlik Cloud? (knowing we can't use extensions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this with if statements. But then I have to apply this too many times, it's exausting (and hard to edit later if I need to).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code if anyone is interested. It consideres the current year if no filter is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(GetSelectedCount(Year)&amp;gt;0,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Cost)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, //else&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({$&amp;lt;Year={'$(=year(now()))'}&amp;gt;} Cost)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 19:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Default-Selection-on-Qlik-Cloud/m-p/93302#M6209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-10T19:40:17Z</dc:date>
    </item>
  </channel>
</rss>

