Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

Report Builder 3.0 - Multi Date Filter

$
0
0

Hi,

I'm trying to create a RB3 report that has a date filter on 2 date fields (Date Logged / Date Completed) within the report. I've setup 4 Parameters ( @DateLoggedStart / @DateLoggedEnd / @DateCompStart / @DateCompEnd). All parameters are set to date fields and accept 'null' values.

I've then setup 2 filters (LoggedDate Between @DateLoggedStart and @DateloggedEnd) / (CompletedDate Between @DateCompStart and @DateCompEnd)

My problem is, the end user may only enter a DateLoggedStart date and leave the other parameter blank. If you do this, the report returns no data. 

If the user enters a start and end date on the DateLogged parameter, it then returns data, but it isn't correct. It only returns data where the Date Complete date is not entered.  

Even though I don't enter any dates into the completed date parameter, the report still seems to filter on them. I need someway of getting the report to ignore the filter if the parameters are NULL.

Does anyone know how to create dynamic date filters, so the user can enter any combination of the parameters and it will return the data correctly?

Regards,

Nick




Viewing all articles
Browse latest Browse all 24955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>