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)
filtering the data set records by a date range and customerid.
Yvonne Mwajuma
I have a report that needs two levels of filtering.
The first level involves limiting by a range of date. i.e,the where clause of the data set will be something like this; "where startDate >=? and endDate <= ?.
The second level requires selecting the customers within the selected date range.
The overall where clause of my data set would be something like this;
where startDate >=? and endDate <= ?
and customerID in (customermultiValParam)
Am using eclipse birt 2.6.0. Is there a way of implementing this?
Find more posts tagged with
Comments
jhelbling
Hello YOM,
You should be able to do it using "Report Parameters", DataSet parameters and "?" characters in your SQL query. This will apply a filter at database level which help improving the performance when running your report (in comparison to a filter applying a table level for example).
Yvonne Mwajuma
<blockquote class='ipsBlockquote' data-author="'jhelbling'" data-cid="69640" data-time="1287755546" data-date="22 October 2010 - 06:52 AM"><p>
Hello YOM,<br />
<br />
You should be able to do it using "Report Parameters", DataSet parameters and "?" characters in your SQL query. This will apply a filter at database level which help improving the performance when running your report (in comparison to a filter applying a table level for example).<br /></p></blockquote>
<br />
jhelbling,<br />
<br />
Thanks for your response. However I do not think that you have understood my question. I know how to use, both report and data set parameters. There are 3 parameters that I need on my report. Start date, End date and CustomerId.<br />
Am using a date picker for the date parameters. I need the customer parameter to show a list of customers that were contacted within the date range picked in level one(Start date, End date). Do you have any idea on how to do this?
jhelbling
Ok effectively my understanding was wrong. Not sure if it will work, but did you already had a look at the cascading parameter possibility ?
Yvonne Mwajuma
<blockquote class='ipsBlockquote' data-author="'jhelbling'" data-cid="69648" data-time="1287759860" data-date="22 October 2010 - 08:04 AM"><p>
Ok effectively my understanding was wrong. Not sure if it will work, but did you already had a look at the cascading parameter possibility ?<br /></p></blockquote>
<br />
Cascading does not allow for a date range selection.
Yvonne Mwajuma
Could Someone please help...