ssrs-2008

How Can I Prevent SSRS query of XML data from Always Returning an Empty Row?

若如初见. 提交于 2019-12-10 16:27:45
问题 I am trying to create a dataset from an XML file in SSRS 2008. Below is a simple piece of XML that shows my problem: <Company> </Company> When using the following as the Query it returns a single row with empty fields for the ID and the Name. Company{}/People{ID(String), Name(String)} As you can see there is no <People> element present in the XML and therefore I was expecting it to return an empty dataset (i.e. one with no rows). Does anyone know of a way to return an empty dataset in these

Time difference between dateTime fields SSRS

不想你离开。 提交于 2019-12-10 16:12:31
问题 I have two datetime fields and I need to show the difference between them. I've used this expression to calculate it: =DateDiff("n", Fields!hra_atncion.Value, Fields!fcha_incio.Value) The result column should be on HH:mm , but the result is a Long expression type. Something like 428011156 Any answer will be apreciated! UPDATE 21/11/2013 How I obtain the time difference in minutes between 12-11-2013 20:00 and 14-11-2013 08:00 ? 回答1: I think, you should try this expression: =Datediff("h",Fields

sorting string numeric values in SSRS 2008

大憨熊 提交于 2019-12-10 16:11:58
问题 I have a varchar field (i am grouping on) in a dataset that returns a list of values : 20, 25, 40, 100, 110, 'N/A'.. I want the "numeric" values sorted from low to high : i.e : 20, 25...110, 'N/A' the problem is that the A>Z sorting in the grouping gives out the following output : 100, 110, 25, ..., N/A I cannot convert to numeric datatype since there are string values.. Does anyone have a solution please ? Thank you in advance Jam 回答1: There are several solutions you can implement here. I'll

Expression in SSRS not working as expected

≡放荡痞女 提交于 2019-12-10 15:12:21
问题 I have an SSRS report which I want to sum values of a field, but only if the value of another field is equal to 1, as I have made the report output a row number for each row. Bascially, I'm trying to sum the distinct values to come up with a total. Screenshot below. I'm getting an error for orders with more than 1 item. My expression used to calculate the Ship Cost (red text) is as follows =SUM(IIF(Fields!RowNumber.Value = 1, Fields!WEIGHT.Value, 0)) But I'm getting the #Error. The cell that

Textbox Formatting In SSRS 2008 - Break Line

巧了我就是萌 提交于 2019-12-10 15:05:34
问题 So, say I have the following string THIS IS STUFF (MORE STUFF) How would I get the string to format as such in a textbox in SSRS? THIS IS STUFF (MORE STUFF) This data is pulled from a single field in a query and I will not be able to manually inject a break line. Also, sometimes the (More Stuff) is not in the field. Extra examples: STUFF AND THINGS THINGS (STUFF) THINGS AND STUFF (MORE STUFF) 回答1: You need to insert a line break into the string, i.e. set the textbox expression as something

SSRS 2008 R2 Globals!RenderFormat.Name=EXCELOPENXML

梦想与她 提交于 2019-12-10 14:22:31
问题 In an existing 2008R2 report, I have a concern about reports being exported to Excel. I have this concern since the result is related to the visibility of tablixes, columns, and rows based upon the export option chosen by the user. When I am exporting the SSRS 2008R2 from my visual studio 2008R2 IDE in an Excel format, the value for Globals!RenderFormat.Name = EXCEL . However when I export the SSRS 2008R2 report from the test report server in an Excel format, the value for Globals

SSRS Calculating counts across row and column groups

限于喜欢 提交于 2019-12-10 12:49:10
问题 I'm building a report of case results with a parent-child grouping on the row group and single column grouping: Parent Row Group: Location Child Row Group: Result Column Group: Month Running across the report are months in the year, and running down the report are the location and the different result breakdowns for the location in the given month. Looks something like this: Jan Feb Total % # % # % # Main Office Pass ? 5 ? 6 55% 11 Fail ? 5 ? 4 45% 9 Total 10 10 20 Other Office Pass ? 3 ? 2

SSRS passing parameter to subreport

扶醉桌前 提交于 2019-12-10 11:41:35
问题 I have 2 tables which both have the column "countyID" I have a main report that brings up reports based on a query like: SELECT countyID, name, address, state FROM TableA ---I have a parameter set on TableA where you select the Name to view its report. I then have a second report based on a query like: SELECT * FROM TableB I want to use the second report as a subreport, as in, when you select the Name for the top report it should then list all records from TableB with the same CountyID. Is

SQL Server 2008 Express SSRS: export to CSV

岁酱吖の 提交于 2019-12-10 11:40:45
问题 Do Reporting Services in SQL Server 2008 support export to CSV? I only see Excel/Word/PDF in the dropdown list on in the SSRS localhost server when previewing report. I found in internet that SSRS 2008 seems to support CSV but I don't see it; is it Express limitation? I haven't found any notes about this limitation. 回答1: CSV export is not supported in the Express edition: http://msdn.microsoft.com/en-us/library/cc281020.aspx The following list describes the features that are documented in SQL

Hidding toolbar for reports created using SSRS 2008 in CRM 2011

[亡魂溺海] 提交于 2019-12-10 11:28:29
问题 I have created report in SSRS 2008 and have attached them to the dashboard. The report is displaying fine, except for the fact that about 15-20 % of the space gets occupied by SSRS menu toolbar which has options for printing/zooming etc. Is there a way for me to minimize that tool bar? I also have a parameter bar that I can hide. But it doesn't stay hidden by default. Is there a way for me to temporarily hide the parameter bar when the dashboard loads? while googling i got this link but when