<?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 Basic date input query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285481#M1201581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;Say you have something similar to the following as data and calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Accidents:LOAD * INLINE [PersonID, Date, HomeA, 22/04/2010, City1B, 21/04/2010, City1C, 26/04/2010, City2D, 22/04/2010, City2E, 23/04/2010, City1F, 21/04/2010, City2G, 26/04/2010, City1H, 22/04/2010, City1A, 23/04/2010, City1F, 21/04/2010, City2]; MinMaxDates:LOAD Min(Date) AS MinDate, Max(Date) AS MaxDateRESIDENT Accidents; LET vMinDate = Peek('MinDate', -1, 'MinMaxDates');LET vMaxDate = Peek('MaxDate', -1, 'MinMaxDates'); DROP TABLE MinMaxDates; TempCalendar:LOAD Date(Num($(vMinDate)) + IterNo()) AS TempDateAUTOGENERATE 1 WHILE Date(Num($(vMinDate)) + IterNo()) &amp;lt;= Date($(vMaxDate)); Calendar:LOAD TempDate AS Date, Month(TempDate) AS Month, WeekDay(TempDate) AS WeekDayRESIDENT TempCalendar; DROP TABLE TempCalendar;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may use &lt;A href="http://community.qlik.com/members/mabaeyens/files/qcomOneDateRangeSetAnalysis.qvw.aspx" title="Date Range and Set Analysis"&gt;this file&lt;/A&gt; objects as a base to check records between two dates.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Oct 2010 11:10:58 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-10-29T11:10:58Z</dc:date>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285479#M1201579</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 just started playing around with the Personal Edition connecting to an ODBC database and have a basic query on allowing the end-user to search a table based on dates.&lt;/P&gt;&lt;P&gt;For example, I have a table (Accidents) which contains Home &amp;amp; Date fields. I would like the user to be able to see how many Accidents each Home had in a given week (Monday-Sunday). Within the Edit Script command, I can use commands (i.e. where Accidate &amp;gt;= 40469 and Acciddate &amp;lt;= 40475) etc) but the intended end-user would not have access to Edit Script .&lt;/P&gt;&lt;P&gt;After searching on here, I have tried various options such as using the slider/calendar object and entering two Excel tables [startdate] and [enddate] but cannot make it work.&lt;/P&gt;&lt;P&gt;Would appreciate some basic advice please.&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;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 10:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285479#M1201579</guid>
      <dc:creator />
      <dc:date>2010-10-29T10:12:12Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285480#M1201580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try, the Calendar Generation script in this qvw file attached.&lt;/P&gt;&lt;P&gt;Replace the below on line 48 with Accidate&lt;/P&gt;&lt;P&gt;Calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;AS&lt;/B&gt; [PUTINYOURDATEFIELD],&lt;/P&gt;&lt;P&gt;Connect up the tables that are on the Main tab to the Accidate field you have created above. Include Accidate in the Charts you are working with.&lt;/P&gt;&lt;P&gt;You can then select by Month, Day, Quarter, Year etc. Just update the script to generate whatever else it is that you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 11:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285480#M1201580</guid>
      <dc:creator />
      <dc:date>2010-10-29T11:05:50Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285481#M1201581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;Say you have something similar to the following as data and calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Accidents:LOAD * INLINE [PersonID, Date, HomeA, 22/04/2010, City1B, 21/04/2010, City1C, 26/04/2010, City2D, 22/04/2010, City2E, 23/04/2010, City1F, 21/04/2010, City2G, 26/04/2010, City1H, 22/04/2010, City1A, 23/04/2010, City1F, 21/04/2010, City2]; MinMaxDates:LOAD Min(Date) AS MinDate, Max(Date) AS MaxDateRESIDENT Accidents; LET vMinDate = Peek('MinDate', -1, 'MinMaxDates');LET vMaxDate = Peek('MaxDate', -1, 'MinMaxDates'); DROP TABLE MinMaxDates; TempCalendar:LOAD Date(Num($(vMinDate)) + IterNo()) AS TempDateAUTOGENERATE 1 WHILE Date(Num($(vMinDate)) + IterNo()) &amp;lt;= Date($(vMaxDate)); Calendar:LOAD TempDate AS Date, Month(TempDate) AS Month, WeekDay(TempDate) AS WeekDayRESIDENT TempCalendar; DROP TABLE TempCalendar;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may use &lt;A href="http://community.qlik.com/members/mabaeyens/files/qcomOneDateRangeSetAnalysis.qvw.aspx" title="Date Range and Set Analysis"&gt;this file&lt;/A&gt; objects as a base to check records between two dates.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 11:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285481#M1201581</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-10-29T11:10:58Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285482#M1201582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Take a look at this thread...&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/32557.aspx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 11:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285482#M1201582</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T11:17:00Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285483#M1201583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lee, Miguel but unfortunately it seems I cannot open any other Qlikview files created by anyone else(I am using the free Personal Edition currently)&lt;/P&gt;&lt;P&gt;Thanks Hopkinsc - I have looked at that already and created two excel spreadsheets [startdate} and [enddate] with 1 column of dates in each and created the 2 calendar options which list the dates from the spreadsheets but the part I am struggling to understand is this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Create two variables &lt;B&gt;'vStartDate'&lt;/B&gt; and &lt;B&gt;'vEndDate'&lt;/B&gt; with the following definitions:&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;vStartDate = GetFieldSelections([Start Date])&lt;BR /&gt;vEndDate = GetFieldSelections([End Date]) "&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If I rightclick on one of the calendars , the variable option is blank and I cannot see how to edit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again all.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 11:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285483#M1201583</guid>
      <dc:creator />
      <dc:date>2010-10-29T11:44:27Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285484#M1201584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will first need to create the variables :&lt;/P&gt;&lt;P&gt;Document Properties &amp;gt;&amp;gt; Variables tab&lt;/P&gt;&lt;P&gt;Once the 2 variables are created, you should then be able to select them from the calender properties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 12:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285484#M1201584</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T12:11:25Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285485#M1201585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cayfmatt,&lt;/P&gt;&lt;P&gt;I have just looked at how i did my start / end dates. I only used 1 Date table in the script (TradingDate) I have attached a sample, the sample has no data in it but you will be able to see my expressions and variables.&lt;/P&gt;&lt;P&gt;First create the variables - vStartDate, vEndDate&lt;/P&gt;&lt;P&gt;look at Document Properties&amp;gt;&amp;gt; Triggers&amp;gt;&amp;gt; Variable Event Triggers. I have actions assigned to my variables (To be completely honest, im not exactly sure what these actions i do, all i know is that my dates work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Look at the properties of the two calenders, there is a min and max expression on each.&lt;/P&gt;&lt;P&gt;lastly i have an expression on the 'Transaction Header' box which basiacally only shows information for the date range selected.&lt;/P&gt;&lt;P&gt;I hope this helps....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 12:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285485#M1201585</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T12:24:58Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285486#M1201586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;damn, i just reead that you can't open other documents....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 12:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285486#M1201586</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T12:29:46Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285487#M1201587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/5707.Expression.JPG"&gt;&lt;/A&gt;Hi again Matt,&lt;/P&gt;&lt;P&gt;Hope this helps, here are some screen shots of exprssions etc i have used.&lt;/P&gt;&lt;P&gt;Create Variables &amp;gt;&amp;gt; Doc Properties&amp;gt;&amp;gt; Variables&lt;/P&gt;&lt;P&gt;Variables Triggers (on input) &amp;gt;&amp;gt; Doc Properties&amp;gt;&amp;gt;Triggers&amp;gt;&amp;gt;Variables Triggers&lt;/P&gt;&lt;P&gt;Calander Prop&amp;gt;&amp;gt; Calender Properties&amp;gt;&amp;gt; copy whats in image on both Min Vlaue, Max Value (Obviously change the expression to match the field your entering it in. i.e. =Min(TradingDate) goes in Min Value, Max(tradingDate) goes in Max Value. do the same for both calenders.&lt;/P&gt;&lt;P&gt;Expression &amp;gt;&amp;gt; goes in your main chart/box which displays the information.&lt;/P&gt;&lt;P&gt;Obviosly you need to change TradingDate to match your date field.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/0044.Create-Variables.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/0044.Create-Variables.JPG" /&gt;&lt;/A&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/1452.Create-Variables.JPG"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/4645.Variable-Trigger-_2800_on-input_2900_.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/4645.Variable-Trigger-_2800_on-input_2900_.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/8546.Calender-Prop.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/8546.Calender-Prop.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/674/8037.Expression.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/674/8037.Expression.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 12:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285487#M1201587</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285488#M1201588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks hopkinsc, your help is much appreciated.&lt;/P&gt;&lt;P&gt;I have set up two Calendars, [startdate] which is set to variable vStartdate and [enddate] set to variable vEnddate with both set to min/max acciddate. I am now trying to understand the expression stage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 15:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285488#M1201588</guid>
      <dc:creator />
      <dc:date>2010-10-29T15:20:10Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285489#M1201589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, like i said, the trigger expressions on the variables i dont understand, maybe someone else here can tell us what it does exactly?&lt;/P&gt;&lt;P&gt;=if(vStartDate &amp;gt; 0,'&amp;gt;=' &amp;amp; date(vStartDate, '$(DateFormat)')) &amp;amp; if(vEndDate &amp;gt;0,'&amp;lt;=' &amp;amp; date(vEndDate,'$(DateFormat)'))&lt;/P&gt;&lt;P&gt;The expression that is added to your results box should just display results which fall within your chosen date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 15:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285489#M1201589</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T15:27:38Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285490#M1201590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remember to make sure that you change my examples to match your variable names EXACTLY as it is case sensitive...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 15:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285490#M1201590</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285491#M1201591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hopkinsc - i am confused as to the two separate Expressions that you displayed above:&lt;/P&gt;&lt;P&gt;Where should the following expression be entered?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(vStartDate &amp;gt; 0,'&amp;gt;=' &amp;amp; date(vStartDate, '$(DateFormat)')) &amp;amp; if(vEndDate &amp;gt;0,'&amp;lt;=' &amp;amp; date(vEndDate,'$(DateFormat)'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The last expression you highlighted (the Sum({&amp;lt;Trading Date one - am I correct in thinking this should be in the Edit Expression field on the table that displays the result to the end user?&lt;/P&gt;&lt;P&gt;I am still struggling with the expression I would like for my particular count: ie. count(acciddate) where the accidents recorded between vStartdate and vEnddate. I have tried adapting your Sum expression for my Count to no avail.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 16:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285491#M1201591</guid>
      <dc:creator />
      <dc:date>2010-10-29T16:03:51Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285492#M1201592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, that expression goes as a variable trigger.&lt;/P&gt;&lt;P&gt;Document Properties&amp;gt;&amp;gt;Triggers&amp;gt;&amp;gt; variable Event triggers. select your variable, click on add actions (on input), click add, select in field, and enter:&lt;/P&gt;&lt;P&gt;date in the field box&lt;/P&gt;&lt;P&gt;and the expression in the string box.&lt;/P&gt;&lt;P&gt;do this for both variables..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 16:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285492#M1201592</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-10-29T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285493#M1201593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hopkinsc, it looks like everything is fine up to the expression stage in my final box that the user sees. I keep getting error in expression when I am trying to enter the count accident formula between the two variable dates - any ideas? I'll keep trying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 16:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285493#M1201593</guid>
      <dc:creator />
      <dc:date>2010-10-29T16:47:22Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285494#M1201594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, what is the expreesion you are writing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 12:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285494#M1201594</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-01T12:44:55Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285495#M1201595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hopkinsc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying variations on the following (as previously mentioned, I am very new to this so still finding my way around!) but the best I can do is just return the total number.&lt;/P&gt;&lt;P&gt;COUNT ({&amp;lt; acciddate = {"&amp;gt;=$(=Date(vStartdate))"}*{"&amp;lt;=$(=Date(vEnddate))"} &amp;gt;}acciddate)&lt;/P&gt;&lt;P&gt;Basically, I just want to count every accident in a given time period as chosen by the user using the 2 calendar options [startdate] &amp;amp; [enddate}, connected to variables vStartdate &amp;amp; vEnddate respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 12:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285495#M1201595</guid>
      <dc:creator />
      <dc:date>2010-11-01T12:55:14Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285496#M1201596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Could you post a sample so i can see your tables names and field names??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 13:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285496#M1201596</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-01T13:00:53Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285497#M1201598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table I am looking at is called &lt;STRONG&gt;accidents&lt;/STRONG&gt; which contains a field &lt;STRONG&gt;acciddate&lt;/STRONG&gt; which is just a date field that an accident occured (and another field which gives me the Home name from another table but that is fine)&lt;/P&gt;&lt;P&gt;I wish to extract the number of accidents that each Home has recorded by counting how many times the &lt;STRONG&gt;acciddate&lt;/STRONG&gt; appears.&lt;/P&gt;&lt;P&gt;I have a calendar object [&lt;STRONG&gt;startdate&lt;/STRONG&gt;] which is linked to a variable &lt;STRONG&gt;vStartdate&lt;/STRONG&gt; . Also have another calendar object &lt;STRONG&gt;[enddate]&lt;/STRONG&gt; which is linked to &lt;STRONG&gt;vEnddate.&lt;/STRONG&gt; Both variables have the following search string:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(vStartdate &amp;gt; 0,'&amp;gt;=' &amp;amp; date(vStartdate, '$(DateFormat)')) &amp;amp; if(vEnddate &amp;gt;0,'&amp;lt;=' &amp;amp; date(vEnddate,'$(DateFormat)'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a chart which I wish to display the total number of accidents for each Home in a given period by the user using the two calendar objects to give a startdate and enddate and its the expression in this chart which I am struggling with to 'connect' to the two calendars (I am writing the expression for this count in Chart Properties/Expressions/Definition.&lt;/P&gt;&lt;P&gt;Previously, I have just used count(acciddate) to give a total for all Accidents by Home which worked fine but now I wish for the user to select variable dates using the calendars.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 15:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285497#M1201598</guid>
      <dc:creator />
      <dc:date>2010-11-01T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Basic date input query</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285498#M1201601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Strange as its working fine for me. I have just copied your expression into my document and changed the accidate to one of my fields and it worked. What version of QLIKVIEW are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 16:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-date-input-query/m-p/285498#M1201601</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-01T16:29:57Z</dc:date>
    </item>
  </channel>
</rss>

