Room Availability Calendar in Business Intelligence Development Studio
- Category: SQL Server Reporting Services
- Hits: 52953
Ok I admit I only googled for about 1 hour before I gave up and just wrote my own. Saying that it's taken me 4 hours just to do the below... hopefully it will be quicker next time now that I noted it all down.
SSRS Expand specific drilldown by default
- Category: SQL Server Reporting Services
- Hits: 23564
This is how to do it in SQL Server 2008 and creating a report in Business Intelligence Development Studio (BIDS) or MS Report Builder.
Scenario
I have a report that specifies some room bookings for a particular week. When I open the report, each drilldown row is collapsed (as opposed to expanded). The user can specify the date as it's a report parameter.
What we want
The user will select a date. We want the report to open with the specified day expanded and the remaining days that week to be collapsed (hidden). The first time I did this, I couldn't expand the remaining days so don't forget to tick the option "display can be toggled by this report item" like I did. ahem...
URL passed settings in Reporting Services
- Category: SQL Server Reporting Services
- Hits: 44543
Alternate row background colour in Reporting Services
- Category: SQL Server Reporting Services
- Hits: 33658
This is just a note for me as it took a while to find on the net and even then it was confusing as to why it works but it does. Not sure whether you call this an MDX Query or part of a Transact-SQL mashup. You need to go to "Fill" (of each text box in the row - unless there's a faster way) and instead of color, click on the expression button (fx) and use the following:
=IIF(RowNumber(Nothing) Mod 2, "#ffffff", "#eeeeee") or =IIF(RowNumber(Nothing) Mod 2, "WhiteSmoke", "Garamond")
This is telling the report to be white (=#ffffff) in row 1 (odd row numbers) and a very light grey (=#eeeeee) in row 2 (even row numbers). The first row being of all rows in the dataset and not for a particular drill-down item. It will alternate between the two for the rest of the report. [The second example is what I use most frequently].
Parameters not being used in report processing
- Category: SQL Server Reporting Services
- Hits: 29921
Problems:
- Given a date, the date format was reverting to US format as opposed to European
- Given a Campus as a text value, the SQL query was ignoring this completely
- Hardcoding the scalar local variables worked
Change Regional Settings for your Report
- Category: SQL Server Reporting Services
- Hits: 35318
Basically I thought that the regional settings of a report generated using Report Builder 2.0 on a MS SQL Server 2008 instance were dependent on either the server or the client machine. Realised that this was actually specified in the report. Here's a quick note on how to set Dates and Times used in parameter fields to UK format (dd/MM/yyyy).
Report Builder 2.0 - Hide Series1
- Category: SQL Server Reporting Services
- Hits: 32165
- SQL Server 2008
- Report Builder 2.0
- BMC Service Desk Express 9.8
- Incident #
- Group Name
- Close Date & Time
- Assigned to Full Name
- Incident Type
If Then Else in Report Builder 2.0 Expressions
- Category: SQL Server Reporting Services
- Hits: 46830
Yes, well don't laugh, I could not find this on the WWW so I was obviously not using Google properly. Anyway here's just a quick note on how to do if else statements in Report Builder 2.0
I'm looking at the following if statement:
If (MyFieldName = 0) Then
Return 1
Else
Return MyFieldName
Can be expressed as:
IIf(Fields!MyFieldName.Value = 0, 1, Fields!MyFieldName.Value)

