<?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 set default range for slider on startup? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-set-default-range-for-slider-on-startup/m-p/414124#M1155926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a dashboard where I need to give a slider a default range when the document is opened. &lt;SPAN style="font-size: 10pt;"&gt;I already now that I can use &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Document Event Triggers &lt;/STRONG&gt;&lt;EM&gt;(OnOpen &amp;gt; Select in Field for example)&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;I apply this technique for a listbox which holds the days in a week. But now I want to give my slider its default range. Unfortunately I don't know exactly how to accomplish this. I already searched the forum for this problem. But didn't find any topic which gives a clear-cut answer to my specific problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a screenshot of the slider.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="34480" alt="Knipsel.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/34480_Knipsel.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The slider is attached to a field named Cofely.Hour and represents the amount of hours in a day. I want to make sure that when the document is opened the range 8 - 18 is selected as default.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added Qlikview file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 16:10:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-06T16:10:05Z</dc:date>
    <item>
      <title>How to set default range for slider on startup?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-default-range-for-slider-on-startup/m-p/414124#M1155926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a dashboard where I need to give a slider a default range when the document is opened. &lt;SPAN style="font-size: 10pt;"&gt;I already now that I can use &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Document Event Triggers &lt;/STRONG&gt;&lt;EM&gt;(OnOpen &amp;gt; Select in Field for example)&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;I apply this technique for a listbox which holds the days in a week. But now I want to give my slider its default range. Unfortunately I don't know exactly how to accomplish this. I already searched the forum for this problem. But didn't find any topic which gives a clear-cut answer to my specific problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a screenshot of the slider.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="34480" alt="Knipsel.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/34480_Knipsel.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The slider is attached to a field named Cofely.Hour and represents the amount of hours in a day. I want to make sure that when the document is opened the range 8 - 18 is selected as default.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added Qlikview file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 16:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-default-range-for-slider-on-startup/m-p/414124#M1155926</guid>
      <dc:creator />
      <dc:date>2013-03-06T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default range for slider on startup?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-default-range-for-slider-on-startup/m-p/414125#M1155927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add two Set Variable actions to the OnOpen document trigger to set the values of the variables used in your slider to the values you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 17:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-default-range-for-slider-on-startup/m-p/414125#M1155927</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-06T17:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set default range for slider on startup?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-default-range-for-slider-on-startup/m-p/414126#M1155928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that I need to assign 2 variables to my slider, in stead of the datafield "Cofely.Hour"?&lt;/P&gt;&lt;P&gt;I've added the qlikview file as attachement now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why I use Cofely.Hour for the slider is because the slider is used to narrow down the dataset, which belongs to a specific Alternate State (TW1 or TW2) Then difference scatterplots can be made according to the specific dataset (TW1 or TW2).&lt;/P&gt;&lt;P&gt;If I replace Cofely.Hour with 2 variables, my dataset will not be narrowed down anymore, am I right? I added my Qlikview file for clarification.&lt;/P&gt;&lt;P&gt;For example, In the last chart on the left you will find a bunch of expressions. The expression named GasconsumptionPerHour_Monday_Period_Hour, shows the gasconsumption on monday, where the period is determined by the slider. The expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg({&amp;lt;Calendar.WeekDay = {'ma'},Cofely.Hour ={"&amp;gt;=$(=Min(Cofely.Hour)) &amp;lt;=$(=Max(Cofely.Hour))"}, Calendar.DayYear= &amp;gt;}Cofely.Gas)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I replace Cofely.Hour in my slider-settings, the expression wont fit anymore, the line isn't drawn anymore (for the specified period) and the dataset isn't narrowed down anymroe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 20:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-default-range-for-slider-on-startup/m-p/414126#M1155928</guid>
      <dc:creator />
      <dc:date>2013-03-06T20:24:14Z</dc:date>
    </item>
  </channel>
</rss>

