<?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: Can you use Applymap in application syntax? Help with input values. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-you-use-Applymap-in-application-syntax-Help-with-input/m-p/394304#M488853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert - but I would need a range and not only the two values in the input fields. So for example if From date is 0112 and end date is 0412 I would want 0112, 0212, 0312 and 0412 to be returned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 17:36:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-04T17:36:22Z</dc:date>
    <item>
      <title>Can you use Applymap in application syntax? Help with input values.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-use-Applymap-in-application-syntax-Help-with-input/m-p/394302#M488851</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;Hoping for some help on an issue I am having...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users are asked to input a start and end date in the format of MMYY into an input box (with predefined values). These input values are then used in a range to sum up values. The problem I face is that the predefined values do not sort correctly and so, for example, if the user inputs a start date of '0312' (to represent March 2012) and an end-date of 0412 (April 2012) the months of 0410 and 0411 are also includes in the sum function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to apply a map to return a corresponding (sequential) number already in my model that represents the Month¦Year inputted fields for the sum expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I am using is below and the image shows the issue in tabular detail &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want the values associated to 0312 and 0412 to be shown in the 'Billing ref' object - and not the additional two lines of 0410 and 0411 - which are incorrectly in the range that the user has entered. By replacing variable with the corresponding '_sequence' field I would resolve my issue. Would apply map work here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;l&lt;IMG __jive_id="28674" class="jive-image-thumbnail jive-image" onclick="" alt="SnipImage.JPG" src="https://community.qlik.com/legacyfs/online/28674_SnipImage.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13573193646793534" jivemacro_uid="_13573193646793534"&gt;&lt;P&gt;sum({$&amp;lt; _calendarperiod = {"&amp;gt;=$(=_vFromPeriod3)&amp;lt;=$(_vToPeriod3)"}&amp;gt;} Billed_Hours&amp;nbsp; )&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 17:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-use-Applymap-in-application-syntax-Help-with-input/m-p/394302#M488851</guid>
      <dc:creator />
      <dc:date>2013-01-04T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Applymap in application syntax? Help with input values.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-use-Applymap-in-application-syntax-Help-with-input/m-p/394303#M488852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Applymap works only in the script. If you want only two records shown for only the from period and to period try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;sum({$&amp;lt; _calendarperiod = {$(_vFromPeriod3),$(_vToPeriod3)}&amp;gt;} Billed_Hours&amp;nbsp; )&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the correct range between them you'll have to create a different _calendarperiod field that does sort correctly, i.e. YYMM or YYYYMM and wrangle your variables into that format. Even easier would be to ask your users to enter their selection in a YYMM format or use year and month listboxes instead of your input boxes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 17:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-use-Applymap-in-application-syntax-Help-with-input/m-p/394303#M488852</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-04T17:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use Applymap in application syntax? Help with input values.</title>
      <link>https://community.qlik.com/t5/QlikView/Can-you-use-Applymap-in-application-syntax-Help-with-input/m-p/394304#M488853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert - but I would need a range and not only the two values in the input fields. So for example if From date is 0112 and end date is 0412 I would want 0112, 0212, 0312 and 0412 to be returned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 17:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-you-use-Applymap-in-application-syntax-Help-with-input/m-p/394304#M488853</guid>
      <dc:creator />
      <dc:date>2013-01-04T17:36:22Z</dc:date>
    </item>
  </channel>
</rss>

