<?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 Re: Using slider to set a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374276#M809029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well they are dynamic, since the user can drag the slider and thereby changing the variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 14:12:23 GMT</pubDate>
    <dc:creator>thomasreynaert</dc:creator>
    <dc:date>2017-10-16T14:12:23Z</dc:date>
    <item>
      <title>Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374270#M809022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a slider that is set up to act as a period selector.&lt;/P&gt;&lt;P&gt;Min value and max value are defined as follows&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'=date#(min({1} date_YYYYMM),'YYYYMM')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'&lt;SPAN style="font-size: 13.3333px;"&gt;=date#(max({1} date_YYYYMM),'YYYYMM')'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Slider.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179762_Slider.PNG" style="height: 519px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I use these periods in my set analysis, for example:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[order_date_YYYYMM]={"&amp;gt;=$(=min(date($(vPeriod3),'YYYYMM')))&amp;lt;=$(=max(date($(vPeriod4),'YYYYMM')))"} ,$(vExp_Unselect_datefields), $(vExternalClients),$(vOnlyBOWithKnownLT),$(vExcludingArticleTypes)&amp;gt;} so_ordernumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I face 2 problems:&lt;/P&gt;&lt;P&gt;1. When sliding up &amp;amp; down my 12 month selection seems to have 12 or 13 months. Probably the period is somewhere between 12 and 13 months, where I would like to have exactly 12. I thought that having static step would prevent this.&lt;/P&gt;&lt;P&gt;2. My variable vPeriod3/4 often becomes a value with digits for example 42890,4. This causes my calculations to be wrong. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374270#M809022</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374271#M809023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A value of 42890,4 means that you haven't a date else it's a timestamp. You could with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(floor([order_date_YYYYMM])) as [order_date_YYYYMM]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transform your timestamp into a date. And quite probably I would do it directly within the script and not just within the mentioned variables/expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374271#M809023</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-16T13:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374272#M809024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are all dates, no time stamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Date Table.PNG" class="jive-image image-1" src="/legacyfs/online/179783_Date Table.PNG" style="height: 141px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374272#M809024</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2017-10-16T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374273#M809025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To see a date doesn't mean mandatory that it is really a date - it could be just formatted. And 42890,4 is definitely a timestamp - just use in a textbox: timestamp(42890.4) to see the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374273#M809025</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-16T13:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374274#M809026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed but there is no formatting set to date. In fact if the choice is made to display decimals, it will display ,00. Also the source data is only a date, no time-stamp. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374274#M809026</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2017-10-16T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374275#M809027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are your variables vPeriod3/4 created?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374275#M809027</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-16T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374276#M809029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well they are dynamic, since the user can drag the slider and thereby changing the variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374276#M809029</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2017-10-16T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374277#M809032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your min/max isn't like you expected it - just try them within a textbox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=date#(min({1} date_YYYYMM),'YYYYMM')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=date#(max({1} date_YYYYMM),'YYYYMM')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and think it should be rather like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;floor(&lt;SPAN style="font-size: 13.3333px;"&gt;min({1} date_YYYYMM)) // maybe without a formatting&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374277#M809032</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-16T14:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374278#M809034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both formulas will give me 201501 or 201712 respectively as expected. These variables are used to define the start and end of the slider. The problem is the bar that defines the periods. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Current.PNG" class="jive-image image-1" height="287" src="https://community.qlik.com/legacyfs/online/179796_Current.PNG" style="height: 286.5px; width: 35px;" width="35" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your perseverance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374278#M809034</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2017-10-16T15:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374279#M809035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What returned &lt;SPAN style="font-size: 13.3333px;"&gt;min/max({1} date_YYYYMM) within a textbox by different selections? Always an integer?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374279#M809035</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-16T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374280#M809036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if I would leave the formula like it is, the result won't change based on selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;min/max({$} date_YYYYMM), the result will change. However still always as integer&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374280#M809036</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2017-10-16T15:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374281#M809037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I look again on your slider I'm not sure if a date is really suitable to create a slider with 12 month between min and max. Months and even years are not homogenous over a longer period and therefore the selected range might not always fit exactly. I could imagine that a period-field is more suitable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 17:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374281#M809037</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-16T17:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374282#M809038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I understand correctly. The fields that I use are link_date_YYYYMM, I don't see how any other date field could change the problem. For example I could use link_date with all the dates, but that will give the same range except that I need the user to select by month.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 13:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374282#M809038</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2017-10-17T13:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374283#M809039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution to my 2nd problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently setting static step to '2' instead of '1' seems to avoid decimals appearing. I believe setting it to 1 would also do the job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 1st problem remains, in fact QV gives me a lower granularity than I need. I just need 36 monts (2015-2017) instead of 1096 days. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374283#M809039</guid>
      <dc:creator>thomasreynaert</dc:creator>
      <dc:date>2017-10-18T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using slider to set a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374284#M809040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I mentioned above that a daily level won't be homogenous enough to select a period of 12 months over several years. But you could use a period-field for it mayve created within the master-calendar with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(year(Date) - 2000) * 100 + month(Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual(date(Date, 'YYMM'), autonumber(year(Date) &amp;amp; '|' &amp;amp; month(Date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-slider-to-set-a-variable/m-p/1374284#M809040</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-10-19T08:03:56Z</dc:date>
    </item>
  </channel>
</rss>

