<?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/Calendar Object to set constraints in data input in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Slider-Calendar-Object-to-set-constraints-in-data-input/m-p/394512#M701741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bhancerli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While it is possible to have the SQL-code filtered by the value of the slicers (in fact the variables connected to the slicers), I think this is probably not what you need (because when used this way, everytime you change the slider value, you have to do a reload to get the right collection of records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The normal behavior is to load the full set (or the set you need to analyse) into Qlikview, where you can use sliders to filter your representation (e.g. show only data where the date of your field &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;ol_onaydt &lt;/SPAN&gt; is between your slicer values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some sample code for this would be: &lt;/P&gt;&lt;P&gt;sum( {&amp;lt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;ol_onaydt &lt;/SPAN&gt;="&amp;gt;=$(=yourSlicerVar1)&amp;lt;=$(=yourSlicerVar2)"&amp;gt;} YOUR_MEASURE_FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, when you change the sliders, this is immediately reflected in your charts / tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 13:25:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-09T13:25:29Z</dc:date>
    <item>
      <title>Using Slider/Calendar Object to set constraints in data input</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Slider-Calendar-Object-to-set-constraints-in-data-input/m-p/394511#M701740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hı Qlikview experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use a calandar object as an input where the user specified value will be used to constraint the data selection in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code below, I would like the user to insert the start and finish dates and I would like the code to check the variable in the calendar object on the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;siparis:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT ol_or_no1, ol_or_no2, ol_sr, ol_ma_kod AS ma_kod, ol_qty, ol_kapa, ol_ds_kod AS desen, ol_vry AS varyant, ol_plan_onay, date(ol_wrk_basdt), date(ol_onaydt),date(ol_terdt),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ol_or_anhno, ol_onay2, date(ol_onay2dt),or_pe_no, or_anhno, or_rr_no&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM DBA.ordln&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JOIN DBA.ord&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ON ordln.ol_or_anhno = ord.or_anhno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE ol_kapa = 'A' AND (ol_onaydt BETWEEN '&lt;STRONG style="color: #ff0000;"&gt;2012-01-01&lt;/STRONG&gt;' AND '&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;2012-10-08&lt;/STRONG&gt;&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;order by ol_or_no2, ma_kod, desen, varyant&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I could do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Berti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Slider-Calendar-Object-to-set-constraints-in-data-input/m-p/394511#M701740</guid>
      <dc:creator />
      <dc:date>2012-10-09T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Slider/Calendar Object to set constraints in data input</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Slider-Calendar-Object-to-set-constraints-in-data-input/m-p/394512#M701741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bhancerli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While it is possible to have the SQL-code filtered by the value of the slicers (in fact the variables connected to the slicers), I think this is probably not what you need (because when used this way, everytime you change the slider value, you have to do a reload to get the right collection of records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The normal behavior is to load the full set (or the set you need to analyse) into Qlikview, where you can use sliders to filter your representation (e.g. show only data where the date of your field &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;ol_onaydt &lt;/SPAN&gt; is between your slicer values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some sample code for this would be: &lt;/P&gt;&lt;P&gt;sum( {&amp;lt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;ol_onaydt &lt;/SPAN&gt;="&amp;gt;=$(=yourSlicerVar1)&amp;lt;=$(=yourSlicerVar2)"&amp;gt;} YOUR_MEASURE_FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, when you change the sliders, this is immediately reflected in your charts / tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Slider-Calendar-Object-to-set-constraints-in-data-input/m-p/394512#M701741</guid>
      <dc:creator />
      <dc:date>2012-10-09T13:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Slider/Calendar Object to set constraints in data input</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Slider-Calendar-Object-to-set-constraints-in-data-input/m-p/394513#M701742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact I want to reload the data everytime. The purpose is to limit the data that's pulled from the external database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is large so I want the user to specify the date range before loading the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I am pretty new to Qlikview could you explain me how do I declare those variables? The only place I saw to create new variable was in the input box. Is there a way I can get put the calender object and allow the user to select start and end dates there as input variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Slider-Calendar-Object-to-set-constraints-in-data-input/m-p/394513#M701742</guid>
      <dc:creator />
      <dc:date>2012-10-09T14:00:06Z</dc:date>
    </item>
  </channel>
</rss>

