<?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 Check for date intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208180#M501644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;now I know a litte bit more. But this I could have known earlier if I had read your first post more carefully, sorry!&lt;/P&gt;&lt;P&gt;Your users want to specify a week and then all rows should appear in your (straight) table with the selected week between fromdate and todate. For this purpose I would use a variable event trigger. Let me introduce this proceeding with a date value instead of a week. With a week value it works of course as well. First you define a variable. Next you define a Variable Event Trigger (settings --&amp;gt; document prop --&amp;gt; trigger --&amp;gt; Button "OnInput") with two selection actions. First action selects the according selection for the FromDate (with a searchstring like&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;='&amp;lt;=' &amp;amp; vDate &amp;amp; ' &amp;gt;=01.01.2010' ).&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Second action defines the selection for the ToDate. When using an input box for your variable the trigger should fire (= execute the actions) and your two dates (and the according rows) should be selected. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 16:28:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-30T16:28:04Z</dc:date>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208177#M501641</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 have only been workng with qlickview for little over a month, so bear with me if my question seem stupid or misplaced.&lt;/P&gt;&lt;P&gt;I have a table that lists all customers and orders that are recuring. That means that a customer can place an order for say item 100 and ask for delivery every monday until a stop order is issued.&lt;/P&gt;&lt;P&gt;The table would look like&lt;/P&gt;&lt;P&gt;customer, order, item, qty, day, FromDate, ToDate&lt;/P&gt;&lt;P&gt;1000,000123,100,4.0,1,20101101,9999999&lt;/P&gt;&lt;P&gt;1000,000322,234,5.0,1,20101101,20101231&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My users want to select a week, say 201049. The report should then show all he customers, item, qty for each day that week.&lt;/P&gt;&lt;P&gt;How do I get this to work. I guess I need to create a variable that I can use to search between the two dates.&lt;/P&gt;&lt;P&gt;If it is easier to use two seperate calenders, from and to,in order to select the period, then that is just fine.&lt;/P&gt;&lt;P&gt;If the ToDate is set to 9999999 it will be translated to fromdate + 2 years.(allready taken care of in the datamarts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope anyone can help me with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 13:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208177#M501641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-30T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208178#M501642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;there is more then one step you can take. Lets start with a first solution. This would be to convert your incoming date columns into QV date fields. For this use at script level:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load . . . date(FromDate, 'YYYYMMDD') AS FromDate; . . .&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;. In the same load script you should establish the data-periods you need ie with &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Load . . . Month(date(FromDate, 'YYYYMMDD')) AS FromDateMonth; . . .&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;. The same you can do with your ToDate. Then you and your Users can select a FromDateMonth (or of course a week) directly in a list box and will indirect select all according dates (FromDate) to it. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The better way, in a next step, is to create your own calender (a calender for each date-field you need). There are many threads and post concerning this topic.&lt;/P&gt;&lt;P&gt;HtH for the first approach&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 14:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208178#M501642</guid>
      <dc:creator />
      <dc:date>2010-11-30T14:13:25Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208179#M501643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Roland for quick response. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I forgot to mention that I allready have the date in both integer and true date format in load. Sorry.&lt;BR /&gt;&lt;BR /&gt;Still I am not sure how this helps me. Please forgive me if I have misread your reply.&lt;BR /&gt;&lt;BR /&gt;Look at one line of my base table&lt;BR /&gt;&lt;BR /&gt;customer, order, item, qty, day, FromDate, ToDate&lt;BR /&gt;&lt;BR /&gt;1000,000123,100,4.0,1,20101101,9999999&lt;BR /&gt;&lt;BR /&gt;(Fromdate/todate is true dateformat)&lt;BR /&gt;&lt;BR /&gt;If my user now ask for any customer with recuring order for year 2010 week 49 the above line should apear.&lt;BR /&gt;If I use the date field in the spesific line It would be year 2010, week 1.&lt;BR /&gt;It should recognize the above line and place it in week 49, since the selected period is between the from and to date.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 14:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208179#M501643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-30T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208180#M501644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;now I know a litte bit more. But this I could have known earlier if I had read your first post more carefully, sorry!&lt;/P&gt;&lt;P&gt;Your users want to specify a week and then all rows should appear in your (straight) table with the selected week between fromdate and todate. For this purpose I would use a variable event trigger. Let me introduce this proceeding with a date value instead of a week. With a week value it works of course as well. First you define a variable. Next you define a Variable Event Trigger (settings --&amp;gt; document prop --&amp;gt; trigger --&amp;gt; Button "OnInput") with two selection actions. First action selects the according selection for the FromDate (with a searchstring like&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;='&amp;lt;=' &amp;amp; vDate &amp;amp; ' &amp;gt;=01.01.2010' ).&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Second action defines the selection for the ToDate. When using an input box for your variable the trigger should fire (= execute the actions) and your two dates (and the according rows) should be selected. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 16:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208180#M501644</guid>
      <dc:creator />
      <dc:date>2010-11-30T16:28:04Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208181#M501645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland&lt;/P&gt;&lt;P&gt;Trying to understand what you want me to do. I will post some screendumps so you can see what I am working on.&lt;/P&gt;&lt;P&gt;I cant get the inputbox to do anything at all, so obviously I am doing somethng terrinble worng. But what?&lt;/P&gt;&lt;P&gt;Main desktop:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x200/__key/CommunityServer.Discussions.Components.Files/11/7607.recuring_5F00_orders_5F00_desktop.bmp" /&gt;&lt;/P&gt;&lt;P&gt;Variable settings:&lt;/P&gt;&lt;P&gt;onInput: ='&amp;lt;=' &amp;amp; vStartDate &amp;amp; ' &amp;gt;=01.01.2010' )&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x400/__key/CommunityServer.Discussions.Components.Files/11/6457.recuring_5F00_orders_5F00_variable.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inputbox:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x200/__key/CommunityServer.Discussions.Components.Files/11/3480.recuring_5F00_orders_5F00_dateselection.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 10:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208181#M501645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T10:12:28Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208182#M501646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;this looks great. But I am afraid you are using an older version. I build a little example with V9SR6. Would you look for your version (--&amp;gt; help --&amp;gt; about QV). Perhaps it is possible to update.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 11:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208182#M501646</guid>
      <dc:creator />
      <dc:date>2010-12-01T11:42:33Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208183#M501647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Version 8.50.6206.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 11:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208183#M501647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208184#M501648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel I am so close...&lt;/P&gt;&lt;P&gt;I got the variable vStartDate to interact with the data.&lt;/P&gt;&lt;P&gt;Below you will find my desktop. Now I have included the straight table that shows all current test data.&lt;/P&gt;&lt;P&gt;My main obejct is the pivot chart.&lt;/P&gt;&lt;P&gt;When I enter a date in the StatDate input field the pivot chart alters.&lt;/P&gt;&lt;P&gt;But it only do a = test. I still fight to get it to check for intervals.&lt;/P&gt;&lt;P&gt;My measurement expression&lt;/P&gt;&lt;P&gt;Sum (IF(vStartDate &amp;gt;= [From Line Date] ,[Ordered quantity - basic U/M],0))&lt;/P&gt;&lt;P&gt;My idea is that the user enters both start and end date and then the appropriate fields show.&lt;/P&gt;&lt;P&gt;I.E start 04.10.2010, end 11.10.2010, should show the summary for the 5 first rows. Two customers.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x300/__key/CommunityServer.Discussions.Components.Files/11/7115.recuring_5F00_orders_5F00_desktop2.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 12:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208184#M501648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T12:01:56Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208185#M501649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Knowing that it was a long shot in the dark, I also tried to alter my expresion to&lt;/P&gt;&lt;P&gt;sum(If(vStartDate&amp;gt;=[From Line Date] and vEndDate &amp;lt;= [To Line Date],[Ordered quantity - basic U/M],0))&lt;/P&gt;&lt;P&gt;Needless to say it did not help at all.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 12:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208185#M501649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208186#M501650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;I put an SET Analysis Term to support you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({ &amp;lt;FromDate= { "$(= '&amp;gt;=01.01.' &amp;amp; Year(vDate))" }, ToDate= { "$(= '&amp;gt;=' &amp;amp; vDate &amp;amp; ' &amp;lt;23.03.2011')" } &amp;gt;} Value)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;As far as I remember SET Analysis was introduced in 8.5. (the Triggers above did come later). You should be able to use the term above in your expression. Note that the value of the second date "23.03.2011" is for my testing only. Change it to a proper val i.e. "999999".&lt;/P&gt;&lt;P&gt;One hint: In V9 (I am currently using a stable version QV9SR6) and in the brandnew V10 there are a lot of new features. Think about an update!&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 12:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208186#M501650</guid>
      <dc:creator />
      <dc:date>2010-12-01T12:52:15Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208187#M501651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Roland will try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding update, I just got the word that we are set to upgrade tomorrow. Version 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208187#M501651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208188#M501652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of going Set Analysis way, You could create another table (linked to the Orders table) which has Week, Product, Order, Quantity details for all the coming years. This could be done by using Interval Match on dates in New table, using the Order table as the FromDate-ToDate Map.&lt;/P&gt;&lt;P&gt;Vidyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208188#M501652</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2010-12-01T13:04:36Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208189#M501653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried it, but I only get 0.00 values in return.&lt;/P&gt;&lt;P&gt;Set analysis is completely new to me so I will have to read up abit on that part.&lt;/P&gt;&lt;P&gt;But here is my expresion.&lt;/P&gt;&lt;P&gt;sum({ &amp;lt;[Line Date, From]= { "$(= '&amp;gt;=01.01.' &amp;amp; Year(vStartDate))" }, [Line Date, To]= { "$(= '&amp;gt;=' &amp;amp; vEndDate &amp;amp; ' &amp;lt;12.31.2011')" } &amp;gt;} [Ordered quantity - basic U/M])&lt;/P&gt;&lt;P&gt;Maybe you would be so kind and walk me thru the code so I understand what happends?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208189#M501653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208190#M501654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;you are allright. I was searching for a while but now with success. I am using ONE datevalue vDate in my expression and you are using two dates. Replace your vEndDate with your vStartDate and it will work (hopefully ;-)).&lt;/P&gt;&lt;P&gt;SET in two words: in an expression you can use SET analysis, a mighty tool but sometimes a little bit cryptic. Look at&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; MyYear= {'2010'}&amp;gt; } Value)&lt;/P&gt;&lt;P&gt;This means the well known sum. In the outer {} there is the SET-Formula. The &amp;lt;&amp;gt; include your exceptions from users choice. Here regardsless which MyYear is selected, in this expression is only '2010' "counting". SET fomulares can be combined in many ways and nested from dusk till dawn. Good Luck !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hint: To see whats happening in your expression leave (while testing) the label of your expression empty. This helps sometimes.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 14:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208190#M501654</guid>
      <dc:creator />
      <dc:date>2010-12-01T14:14:28Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208191#M501655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your tip about leaving the expression name blank was useful.. Now I see more what your example return in code statement&lt;/P&gt;&lt;P&gt;Your code:&lt;/P&gt;&lt;P&gt;sum({ &amp;lt;[From Line Date]= { "$(= '&amp;gt;=01.01.' &amp;amp; Year(vStartDate))" }, [To Line Date]= { "$(= '&amp;gt;=' &amp;amp; vStartDate &amp;amp; ' &amp;lt;31.12.2011')" } &amp;gt;} [Ordered quantity - basic U/M])&lt;/P&gt;&lt;P&gt;Result code:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x300/__key/CommunityServer.Discussions.Components.Files/11/7522.set_5F00_analysis_5F00_code_5F00_original.bmp" /&gt;&lt;/P&gt;&lt;P&gt;Event when I changed my StartDate input it returned the same code, and value 0.00&lt;/P&gt;&lt;P&gt;I therefor changed the expression to :&lt;/P&gt;&lt;P&gt;sum({ &amp;lt;[From Line Date]= { "$(= '&amp;gt;=' &amp;amp; vStartDate)" }, [To Line Date]= { "$(= '&amp;lt;=' &amp;amp; vEndDate)" } &amp;gt;} [Ordered quantity - basic U/M])&lt;/P&gt;&lt;P&gt;with following result code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 15:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208191#M501655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T15:09:21Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208192#M501656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;argg, hit the post button to early..&lt;/P&gt;&lt;P&gt;The result from my post above:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x300/__key/CommunityServer.Discussions.Components.Files/11/0184.set_5F00_analysis_5F00_code_5F00_new.bmp" /&gt;&lt;/P&gt;&lt;P&gt;Still I get the value 0.00 but now at least I can see that what ever a user supply as input results in changing the expresssion.&lt;/P&gt;&lt;P&gt;(by the way the norwegian date format is day.month.year) &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;As you see from the below sniblet I am getting closer, but still that final touch is missing.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x500/__key/CommunityServer.Discussions.Components.Files/11/3302.recuring_5F00_orders_5F00_desktop3.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 15:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208192#M501656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T15:14:22Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208193#M501657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;now I am a little bit confused. You told me in a former post ....&lt;/P&gt;&lt;P&gt;1000,000123,100,4.0,1,20101101,9999999&lt;BR /&gt;&lt;BR /&gt;(Fromdate/todate is true dateformat)&lt;BR /&gt;&lt;BR /&gt;If my user now ask for any customer with recuring order for year 2010 week 49 the above line should apear.&lt;BR /&gt;If I use the date field in the spesific line It would be year 2010, week 1.&lt;BR /&gt;It should recognize the above line and place it in week 49, since the selected period is between the from and to date.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Because you wrote the date "&lt;I&gt;20101101&lt;/I&gt;" ... "&lt;I&gt;would be year 2010, week 1&lt;/I&gt;" I read it unfortunately as "01.01.2010". Sorry, this wasn't carefulls but I derived that you want your daterange to start from the beginning of the year of your startdate (now you know the reason for the '01.01." &amp;amp; year(vDate) in my expr.). This was obviously wrong.&lt;/P&gt;&lt;P&gt;As I know you now want to see all the rows where the selected week is between the from and todate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To your latest post:&lt;/P&gt;&lt;P&gt;The syntax is correct (Yes!!) because your straight table shows valid values in the column (ok, they are all 0, not what you expect) One question: Shouldn't you consider the rows with '9999999' as a legal Enddate. This would be similar to that: ... [To Line Date]= { "$(= '&amp;lt;=' &amp;amp; vEndDate), '9999999' "} ....&lt;/P&gt;&lt;P&gt;To shorten the whole thing, can you post a little exam application with one or two exam selected From(To)dates and the results which you are expecting?&lt;/P&gt;&lt;P&gt;BTW: I like the norwegian date (and of course the norwegian people).&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 17:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208193#M501657</guid>
      <dc:creator />
      <dc:date>2010-12-01T17:44:29Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208194#M501658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland&lt;/P&gt;&lt;P&gt;Again I have to thank you for your patience with a novice like me. Aappriciate it.&lt;/P&gt;&lt;P&gt;I am sorry for the confusing posts I may have written.&lt;/P&gt;&lt;P&gt;To date no longer holds 99999 entries, I have set a code that changes them to 2 years after from date&lt;/P&gt;&lt;P&gt;I have a created an application file, but not sure how i can send it to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 20:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208194#M501658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T20:43:54Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208195#M501659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have gone through the complete thread. Somewhere Dan mentioned Users want to search the data on the basis of week.Why dont you extract one week column with the week function in your load script and map it to list box as a filter criterion.Now sure whether I am on same page.&lt;/P&gt;&lt;P&gt;As I tried once week filter and rest values i.e. summation of say orders and all will be calculated by Qlikview on the fly if you set the expressions correctly.&lt;/P&gt;&lt;P&gt;--Swapnil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 22:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208195#M501659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T22:15:42Z</dc:date>
    </item>
    <item>
      <title>Check for date intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208196#M501660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning Swapsjosh&lt;/P&gt;&lt;P&gt;This sounds good, but I am afraid I do not fully understand how this works.&lt;/P&gt;&lt;P&gt;I have two datefileds, from and to.&lt;/P&gt;&lt;P&gt;A user can supply any given week and ith that week lies betwwen these dates then the line is taken into account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 06:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-for-date-intervals/m-p/208196#M501660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-02T06:27:21Z</dc:date>
    </item>
  </channel>
</rss>

