<?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 How can I make a date selection that lies between the date values in my data? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146816#M505449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer Oleg! This looks like it will work nicely. I had often seen IntervalMatch in the help docs, but the description of its syntax was never very clear to me. I had no idea it was capable of this until your example shed the necessary light.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 04:48:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-23T04:48:27Z</dc:date>
    <item>
      <title>How can I make a date selection that lies between the date values in my data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146814#M505447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a rather large data set with dollar amounts that span a date range like this…&lt;/P&gt;&lt;P&gt;Start End Amount&lt;/P&gt;&lt;P&gt;01/01/2009 01/07/2009 $70,000.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;…but I need a way to let the user key in (either in list box or input box) a date or dates between the ranges to see daily amounts that might look like this:&lt;/P&gt;&lt;P&gt;Date Daily Amount&lt;/P&gt;&lt;P&gt;01/04/2009 $10,000.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even...&lt;/P&gt;&lt;P&gt;Date Range Amount for the 3 days selected&lt;/P&gt;&lt;P&gt;01/04/2009 to 01/06/2009 $30,000.00&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the data doesn't actually have discrete date values in between, how might I permit this type of date selection in QlikView w/o writing code to produce a giant new data set with a single row for every possible day &amp;amp; amount between each date in the range? Is there a way to simulate the date values, or map an entry from an input box to the corresponding dates in the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 22:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146814#M505447</guid>
      <dc:creator />
      <dc:date>2009-06-15T22:12:48Z</dc:date>
    </item>
    <item>
      <title>How can I make a date selection that lies between the date values in my data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146815#M505448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a possible solution (provided that you are using ver. 8.5 or higher):&lt;/P&gt;&lt;P&gt;1. Load the number of days in your date range, or even pre-calculate the daily average:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Start,&lt;/P&gt;&lt;P&gt;End,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;Start &amp;amp; End as PeriodKey,&lt;/P&gt;&lt;P&gt;Start - End + 1 as Days,&lt;/P&gt;&lt;P&gt;Amount(Start - End + 1) as DailyAmount&lt;/P&gt;&lt;P&gt;2. Load a Calendar Date field, with all possible dates within your total date range.&lt;/P&gt;&lt;P&gt;3. Join the two tables using "INTERVAL MATCH".&lt;/P&gt;&lt;P&gt;4. Enable the date from the calendar for user selection.&lt;/P&gt;&lt;P&gt;5. Construct a "Set Analysis" formula that will only enable those dates that are selected and are within the range.&lt;/P&gt;&lt;P&gt;Your calculation of the amount would be:&lt;/P&gt;&lt;P&gt;sum(&amp;lt;Daily Amount&amp;gt; * Count (number of days that are selected and are within the period between Start and End)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 22:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146815#M505448</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-06-15T22:31:02Z</dc:date>
    </item>
    <item>
      <title>How can I make a date selection that lies between the date values in my data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146816#M505449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer Oleg! This looks like it will work nicely. I had often seen IntervalMatch in the help docs, but the description of its syntax was never very clear to me. I had no idea it was capable of this until your example shed the necessary light.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 04:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146816#M505449</guid>
      <dc:creator />
      <dc:date>2009-06-23T04:48:27Z</dc:date>
    </item>
    <item>
      <title>How can I make a date selection that lies between the date values in my data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146817#M505450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a similar need than Jim G. and I'm trying to adapt your solution but I don't understand the 5th point:&lt;/P&gt;&lt;P&gt;"&lt;I&gt;5. Construct a "Set Analysis" formula that will only enable those dates that are selected and are within the range."&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a list of persons with data historized like their adress for example and a calendar to enable user to choose a date. I want to display the correct adress of each person corresponding to the date selected.&lt;/P&gt;&lt;P&gt;The IF structure works in this case but I've got others data historized to display and then, calculation time increase a lot so I need to use intervalmatch.&lt;/P&gt;&lt;P&gt;So I don't understand how to construct a set analysis formula to enable only dates that are selected.&lt;/P&gt;&lt;P&gt;Thanks for advance,&lt;/P&gt;&lt;P&gt;Romain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 10:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146817#M505450</guid>
      <dc:creator />
      <dc:date>2010-06-09T10:09:23Z</dc:date>
    </item>
    <item>
      <title>How can I make a date selection that lies between the date values in my data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146818#M505451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Oleg,&lt;/P&gt;&lt;P&gt;Can you work it out for me here. I am facing same sort of issue here. I don't where to start also. Please help me!&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/31125.aspx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 09:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146818#M505451</guid>
      <dc:creator />
      <dc:date>2010-07-05T09:44:08Z</dc:date>
    </item>
    <item>
      <title>How can I make a date selection that lies between the date values in my data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146819#M505452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Did you over come this issue? As you understand what exactly Oleg wants to do then I hope you can help me out here. Please look in to the below post and try to help me out. Thanks and in advance!&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/31125.aspx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 09:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-a-date-selection-that-lies-between-the-date/m-p/146819#M505452</guid>
      <dc:creator />
      <dc:date>2010-07-05T09:56:29Z</dc:date>
    </item>
  </channel>
</rss>

