<?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: Input Box and Variables Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352298#M823761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Marcelo,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Master Calendar is a table which contains all the dates you set it to contain (for example, the orders start date as the start date and 3 years from now as the end date).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;See the attached file, just change the Min and Max date according to your data.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If you don't have a master calendar (although it's recommended in every model), just add this lines to the table which contains the dates fields, as you wrote.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Uri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2017 17:16:58 GMT</pubDate>
    <dc:creator>sonkumamon</dc:creator>
    <dc:date>2017-07-24T17:16:58Z</dc:date>
    <item>
      <title>Input Box and Variables Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352292#M823755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use an input box in order to make a selection between a month range, currently I have the following Input Box:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView Help9.png" class="jive-image image-1" src="/legacyfs/online/171007_QlikView Help9.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the following variables:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikView Help10.png" class="jive-image image-2" src="/legacyfs/online/171008_QlikView Help10.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;But I don't know how to link the variables to the Month dimmension, how do I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, after that, how do I use the variables in the expression? Is it something like this?&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15006390701707063" jivemacro_uid="_15006390701707063" modifiedtitle="true"&gt;
&lt;P&gt;Sum( {&amp;lt;Month = {'&amp;gt;=$(=Month(vComparisonStart)) &amp;lt;=$(=Month(vComparisonEnd))"}&amp;gt;} Sales)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&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/Input-Box-and-Variables-Issue/m-p/1352292#M823755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Variables Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352293#M823756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is Month field created in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 18:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352293#M823756</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-21T18:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Variables Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352294#M823757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to break the date down because there are different formats from the tables I get it from. This is the base one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15006647197619407 jive_text_macro" jivemacro_uid="_15006647197619407" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date(Date#(DATE,'YYYYMMDD'),'DD/MM/YYYY')) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date(Date#(DATE,'YYYYMMDD'),'DD/MM/YYYY')) as Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(Date(Date#(DATE,'YYYYMMDD'),'DD/MM/YYYY')) as Day,&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 19:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352294#M823757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-21T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Variables Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352295#M823758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Marcelo,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If I were you, I would create additional 4 fields in my master calendar and define the as an input fields.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then I would set each variable to the relevant field.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Inputfield ComparisonStart;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Inputfield ComparisonEnd;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Inputfield CurrentStart;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Inputfield CurrentEnd;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;LOAD MasterCalendar:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Date(Date#(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'YYYYMMDD'),'DD/MM/YYYY')) AS &lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonStart,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Date(Date#(&lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonEnd&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'YYYYMMDD'),'DD/MM/YYYY')) AS &lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonEnd,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Date(Date#(&lt;SPAN style="font-size: 13.3333px;"&gt;CurrentStart&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'YYYYMMDD'),'DD/MM/YYYY')) AS &lt;SPAN style="font-size: 13.3333px;"&gt;CurrentStart,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Date(Date#(&lt;SPAN style="font-size: 13.3333px;"&gt;CurrenEnd&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'YYYYMMDD'),'DD/MM/YYYY')) AS &lt;SPAN style="font-size: 13.3333px;"&gt;CurrenEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;........&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;SET v&lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonStart = &lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonStart;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;SET v&lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonEnd = &lt;SPAN style="font-size: 13.3333px;"&gt;ComparisonEnd;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;SET v&lt;SPAN style="font-size: 13.3333px;"&gt;CurrentStart = &lt;SPAN style="font-size: 13.3333px;"&gt;CurrentStart;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;SET v&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;CurrentEnd = &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;CurrenEnd;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2017 17:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352295#M823758</guid>
      <dc:creator>sonkumamon</dc:creator>
      <dc:date>2017-07-23T17:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Variables Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352296#M823759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When we use input box with inputs for variables, we can set the values of those variables.&lt;/P&gt;&lt;P&gt;Those values given in the input box will affect charts when the variables are used in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in your case if you input value for comparison start and comparison end and use the variables vComparisonStart and VComparisonEnd in a chart, the input values will affect that chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 04:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352296#M823759</guid>
      <dc:creator />
      <dc:date>2017-07-24T04:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Variables Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352297#M823760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a MasterCalendar, how does that work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I add these lines in my tables that have these dates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352297#M823760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-24T11:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Input Box and Variables Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352298#M823761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Marcelo,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Master Calendar is a table which contains all the dates you set it to contain (for example, the orders start date as the start date and 3 years from now as the end date).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;See the attached file, just change the Min and Max date according to your data.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If you don't have a master calendar (although it's recommended in every model), just add this lines to the table which contains the dates fields, as you wrote.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Uri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Box-and-Variables-Issue/m-p/1352298#M823761</guid>
      <dc:creator>sonkumamon</dc:creator>
      <dc:date>2017-07-24T17:16:58Z</dc:date>
    </item>
  </channel>
</rss>

