<?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: Variable Constraint enforcement on Calendar Objects vs Input boxes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322130#M118667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd just flip the dates around if required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;='&amp;gt;=' &amp;amp; '$(=date(rangemin(vStartDate,vEndDate)))' &amp;amp; '&amp;lt;=' &amp;amp; '$(=date(rangemax(vStartDate,vEndDate)))'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2011 21:41:17 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-12-27T21:41:17Z</dc:date>
    <item>
      <title>Variable Constraint enforcement on Calendar Objects vs Input boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322129#M118666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue and I think I am just looking for a shoulder to cry on and confirmation that I am not crazy for expecting this to work a certain way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I am trying to do.(I am on QV10 SR4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a conformed calendar dimension and my users don't always like to use the YQM list boxes to get the data they want. They would like to be able to enter a date range and show activity for the range. I thought this was a reasonable request so I set out to build a prototype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two variables shown in Calendar objects. The user may select any date within the range of the calendar table and I am able to use triggers on the variable to set the selection on the date field to the date range defined in the variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Part that has me concerned is when I enter an end date that is less than the begin that the range selection is no longer a date span but rather the top and bottom of the table with a gap in the middle. This does not seem like the selection behavior I was expecting, when I enter &amp;gt;=1/1/2010&amp;lt;=12/31/2010 I get a range but when I enter &amp;gt;=12/31/2010&amp;lt;=1/1/2010 I get all but those between my two dates. This is weird behavior but I can live with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve the problem I decided to set some constraints on the variables so the Start Date may only be Less than or equal to the End Date and vice versa. I thought this would be a simple fix but the Calendar object will not evaluate the constraint I had set on the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample, you can see when you change the value of the start or end date&amp;nbsp; using the Calendar Selectors then the contraints are not evaluated but if you change them using the input box then the constraints are enforced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions for work arounds or corfirmations that I am insane are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2011 13:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322129#M118666</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2011-12-23T13:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Constraint enforcement on Calendar Objects vs Input boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322130#M118667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd just flip the dates around if required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;='&amp;gt;=' &amp;amp; '$(=date(rangemin(vStartDate,vEndDate)))' &amp;amp; '&amp;lt;=' &amp;amp; '$(=date(rangemax(vStartDate,vEndDate)))'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 21:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322130#M118667</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-27T21:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Constraint enforcement on Calendar Objects vs Input boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322131#M118668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While not an answer to your question about applying constraints on the the calendar, I can give some pointers on applying constraints to the input box dates. There is a complete example "&lt;EM&gt;User selectable dates using Input Box&lt;/EM&gt;" in the QV Cookbook. The constraints test that the input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - can be converted to a QV Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Start Date is less than End Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - date is within range of available dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 00:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322131#M118668</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-28T00:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Constraint enforcement on Calendar Objects vs Input boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322132#M118669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had not thought of swapping the begin and end dates if they are selected incorrectly, but I fear this would cause more confusion than it resolves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Honestly I'm completely floored that Qlikview will evaluate contraints when setting the value in an input box but not in the calendar object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Rob, although I did not have trouble setting the actual constraint I appreciate the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 01:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322132#M118669</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2011-12-28T01:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Constraint enforcement on Calendar Objects vs Input boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322133#M118670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason I referred to the Cookbook example was because I thought&amp;nbsp; your constraints were incomplete. For example, your sample allowed input like 1/35/2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 02:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/322133#M118670</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-28T02:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Constraint enforcement on Calendar Objects vs Input boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/1532635#M438873</link>
      <description>&lt;P&gt;Hey Chris , I too have the same issue.&lt;BR /&gt;Did you get the solution&amp;nbsp;for the above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 11:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Constraint-enforcement-on-Calendar-Objects-vs-Input/m-p/1532635#M438873</guid>
      <dc:creator>kalyanamharish</dc:creator>
      <dc:date>2019-01-21T11:11:09Z</dc:date>
    </item>
  </channel>
</rss>

