Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Problem with Date Parameter

$
0
0

Hi

I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 

I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2

I need to allow the users of the report to choose a start date and an end date

The Start Dates are held in a field called PhaseStartDate

The End Dates are held in a field called PhaseEndDates

I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  

"An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies are not valid"

I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.

I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.

Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate

Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]

I set up a Parameter called StartDate with Data type as Date/Time

Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate

There are no Default Values

I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.

I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.

Any assistance will be greatly appreciated as I have spent hours on this so far

Regards

John


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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