Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How do I get result set to include data for an EndDate parameter?
cletehayes
<p>I have a simple report to allow users to see what has been billed to their account for a specific period of time. The user is prompted to enter a StartDate and an EndDate parameter.</p><p> </p><p>However my result set does not include transactions which occur <span class='bbc_underline'>on</span> the EndDate. It acts like (EndDate - 1). How do I get BIRT to <span class='bbc_underline'>include</span> EndDate transactions?</p><p> </p><p>Any advise would be appreciated. Clete</p>
Find more posts tagged with
Comments
kclark
<p>What does your SQL statement look like? It should look something like this</p><pre class="_prettyXprint">select *from paymentswhere paymentdate >= ? and paymentdate <= ?</pre>
bgbaird
<p>If you want to include the end date, you might try something like this (SQL Server)</p><p> </p><p><span>select</span><span> </span><span>*</span>
<span>from</span><span> payments</span>
<span>where</span><span> paymentdate </span><span>>=</span><span> </span><span>?</span><span> </span><span>and</span><span> ? > dateadd(dd,1,paymentdate)</span></p>
bgbaird
<p>You caould also throw this JS in the report initialize script.</p><p> </p><p>params["EndDate"].value=BirtDateTime.addDay(params["EndDate"].value,1);</p><p> </p><p>Brian</p>
Hans_vd
<p>Hi,</p><p> </p><p>The dates in your data source probably have a time component in them.</p><p>Take a look at this post: <a data-ipb='nomediaparse' href='
http://www.birt-exchange.org/forum/index.php?/topic/30523-how-do-i-get-result-set-to-include-data-for-an-enddate-parameter/'>http://www.birt-exchange.org/forum/index.php?/topic/30523-how-do-i-get-result-set-to-include-data-for-an-enddate-parameter/</a></p>
;
Hans_vd
<p>What?</p><p>That post is also created by you?</p><p>Was it not helpful?</p>