I'm still getting used to migrating from SSRS 2005 to 2008, in 2005 when you set a parameter up inside the report and pointed it to being a date/time the report gave you a calendar to chose your dates (as in a visual cal). I cant for the life of me get it to work in 2008? it just always shows the date/time of the field??
The data source is in the datetime format.
As you mention in a comment, you're populating this data with a DataSet.
The screenshot shows normal behaviour in SSRS 2005 and SSRS 2008.
I created a report in 2005 and 2008 with 4 parameters; two with type Text and two with type DateTime.
Two are populated with a DataSet based on:
select date1 = cast('01-jan-2013' as datetime)
union all select date1 = cast('01-feb-2013' as datetime)
The other two have a default value of =Today().
You can see that behaviour is almost identical between versions.
2005:
2008:
The only difference is that the Text parameter doesn't convert a date implicitly.
From your perspective the main things to note are that when the parameter is populated by a DataSet, you can only choose from a dropdown of the available values (i.e. what you're seeing in your screenshot), but if the parameter is not popluated from a DataSet (dropdown) you can choose from the calendar picker as expected.
Related
I have a situation in an SSRS Report wherein the report is not reflecting what is in the data.
The field in question is company-paid Long Term Disability. The value is calculated in a Stored Procedure as 0.0018 of a person's Gross Wages. The Stored Procedure is run by the report and it populates a table with the data the report will use. The report, then, does a straight "select" of values from that pre-populated table.
Let's use a concrete example:
Tom Thumb has a LTD value in the DataSet of 86.3077. I'm looking at
it as I type this, so I know that is the value in the source data.
Next, I run the query in SSRS Report Designer that populates my report's DataSet, and I see the same value of 86.3077 for the field LTDInsurance. That's the correct value. So far, so good.
In the Design View, I can drag the field [LTDInsurance] into the
textfield of the report, or I can use an expression. Neither approach works correctly.
=Fields!LTDInsurance.Value
Formatting on the field is #,##0
When I run the report, the value in that field shows 8,631 instead of 86 (Rounded 86.31). I have deleted and recreated the field. I've closed and reopened Visual Studio (VS 2010 can go wonky on you at times.). I've rebooted. I have tried a whole variety of Properties on that textfield.
Why is it showing this incorrect value?
Delete the data file (rdl.data) from the folder your rdl is in
I have a field on an SSRS report running this expression:
=First(Fields!Record_Notes.Value)
I need this to only display data from the Record_Notes field if another field (Note_Service_Index) on this same table has a specific value.
I'm very new to SSRS and am rusty in terms of VB language.
Is there any way to make this work?
If you're using SSRS 2008 R2 and not just plain '08, check out the Lookup/LookupSet/MultiLookup functions:
http://technet.microsoft.com/en-us/library/ee210531.aspx
I am working in SQL Server 2008 R2 and Microsoft Visual Studio 2008. I have a view of a table that displays current work in house. The table is grouped by customer and then by Activity number. I am showing data with dates of each stage. In the original table the field is defined as Date. And when I query the database directly, the expected value is displayed. I have this dataset configured in visual studio that queries the view. When I execute the query inside of visual studio, I see the values in the fields I believe they should be. When I include them in the report, nothing shows up. I have tried to format the text box within the table to show a date, removed all formatting, formatting the field using the fx button. I can honestly say I am confused as to why I am having such a difficult time with this one.
Here is the report
Any help or ideas would be greatly appreciated.
I have a series of reports that are dependent on a to and from date. I have set up parameters #Date1 and #Date2. Prior to executing the query, I need to determine that Date1 is less than Date2. This is important because the query is ...Where Date is between #Date1 and #Date2. If #Date2 is less than #Date1 the query does not fail, it just returns no results.
I found code postings that say to add a function by going to Report Properties under the Report menu and place the code in the Code Tab. I have looked at all over and cannot find this.
I am actually building the report in MS Visual Studio 2008. Can anyone point me in the right direction?
In VS 2008 click Report -> Report Properties.
Click Code and add required code to Custom Code section.
I need to create report using reporting services in MSSQL 2008 R2
The report should have a lot of date parameters. The problem is that every time user selects a date via date picker reporting service performs a postback.
The parameters are not cascading and “Never refresh” is selected for all of them.
For a test I’ve created a report with simple MDX without any dates and with only one parameter (location).
I also added two dummy date parameters to the report. Parameter order is Date1, Date2, Location.
Even in such a simple case I cannot stop reporting services showing “Loading” after date is selected.