I have a hopefully simple question. I’m trying to learn SSRS a little better, and so I’m trying to abstract something out a little bit. I have a database that consists of a lot of simple frequency counts. I created one report with a table that summarizes the frequency counts and then has a pie chart next to it that is just a graphical representation of the table. What I was wondering was is there an easy way to essentially “clone” the entire (sub)report and change the dataset to another frequency count.Each query is a minor modification of something like this:[code="sql"]CREATE PROC [dbo].[usp_ECOG] @ProtocolNo varchar(30)ASSELECT enrollmentID , e_ProtocolNo , ECOGFROM enrollWHERE e_ProtocolNo = @ProtocolNo;[/code]The table I am looking at is “enrollment” – when a patient is enrolled in a study, a bunch of tests are run (once) and the measurements are recorded. There’s not much you can do with non-continuous data, except frequency counts, so I was looking to build the basic subreport and then reuse it for other datasets. (basically change the stored procedure and go from there?)[code="sql"]CREATE TABLE [dbo].[Enroll]( [enrollmentID] [int] IDENTITY(10000,1) NOT NULL, [e_PatientID] [int] NOT NULL, [e_ProtocolNo] [varchar](30) NOT NULL, [enrollDate] [datetime] NULL, [enrollOK] [bit] NULL, [leaveDate] [datetime] NULL, [PWeek] [int] NULL, [ECOG] [tinyint] NULL, [Histology] [tinyint] NULL, CONSTRAINT [PK_Enroll] PRIMARY KEY CLUSTERED [/code]I'll pretend for a minute that the design of this table doesn't look properly normalized. (Maybe that's the problem!) But the subreports for ECOG, Histology etc are just frequency counts with pie charts and relative frequencies (Frequency/EnrollCount). They work, but the design seems really bass ackwards.The idea was that I would create a "Main" report and then the users could drop in the subreports they wanted for a given Protocol (because they're similar, but some of the subreports change).Apologies if this doesn't make any sense! It's been one of those daze.Thanks!Pieter
↧
Best approach to lots of similar subreports
↧
Table two Column
Hello I have a table that gives me information, it is for example in column 3 appears OK the values and delete. I would like the values in column 2 when the value in column 3 was Delete, puts me up values from column 2 to zero. It is possible to do through the Reporting Services?
↧
↧
SSRS 2012: can create reports but not publish?
First off, my SSRS install is for learning, so if plowing it under and reinstalling from scratch is a good option, I'm all for it. I might lose a little bit, but oh well.Should I completely gut the install so that all the folders are gone too? I've reinstalled a couple of times, but it hasn't fixed it.
↧
SSRS 2012, how to add dependency for 2 dataset with same sp
Hi, allI have multi ds report, and 2 of dataset dsDetail and dsSummary logically belong to each other but serves for separate tablix'es, so I can run Summary tablix out of Details, just doing some ssrs grouping, but how to sync this execution so first Details will run , then Summary will take it. I thinkthere is no any top to bottom order for datasets like in parameter, so I'm thinking how to set this dependency? is there any built it feature I can use in SSRS.TxMario
↧
Toggle and Visibility depending on Parent Group value
Hi,I have a report where there are collapsible groups IT, Non-IT and Other. I want to remove the collapsible button (+) whenever the Parent is IT and also remove the group header whenever the parent is IT as seen in the attachment.For other groups I want to display as is .Thanks,PSB
↧
↧
Parameter for one cell
I have created a drilldown report. Is there a way to create a parameter based on an indicator value for one particular cell? The value in this cell is also a value in other cells but this particular cell is for a particular group and I want to be able to filter through this group by what their indicator value is in that cell. Please let me know if this can be done and how. Thanks
↧
SubReports Issues in SSRS 2005 Reports Upgrade to 2012
Hi there!We are planning to upgrade our SSRS 2005 reports to SSRS 2012. As I heard there will are some upgrade compatibility issues, I read the below MSDN article and found that the Reports that include subreports may fail in upgrade. Below is the article.Upgrading a Report with Subreports:When a report contains subreports, one of four possible states can occur during upgrade:The main report and all subreports can be successfully upgraded. They are processed by the SQL Server 2012 Reporting Services (SSRS) report processor.The main report and all subreports cannot be upgraded. They are processed by the SQL Server 2005 Reporting Services report processor.The main report can be upgraded but one or more subreports cannot be upgraded. The main report is processed by the SQL Server 2012 Reporting Services (SSRS) report processor, but the rendered report shows the message "Error: Subreport could not be processed" in the location where the subreport that could not be upgraded would appear.The main report cannot be upgraded but one or more subreports can be upgraded. The main report is processed by the SQL Server 2012 Reporting Services (SSRS) report processor, but the rendered report shows the message "Error: Subreport could not be processed" in the location where the subreport would appear.If you see the error "Error: Subreport could not be processed", you must change the definition of the main report or the subreport so that the reports can be processed by the same version of the report processor.[color=#FF0000]Can some one please tell me what does the above line mean? What does it mean by the phrase change the definition of main report? Does it mean I need to set any property in the main report?[/color]Please help! Thanks in advance.Ammy
↧
Field value as a parameter
I need to create a parameter using the value of an indicator: =CInt(IIF(Fields!Passed.Value, 1, iif(Fields!Passed.Value is nothing, -1, 0)))The values that come from it are -1, 0, 1. I'm not sure what to do. Can anyone point me in the right direction? Thanks.
↧
SSRS 2012 Report rendering time in pdf format in RDLC
Hi,Please help to reduce or optimize Report rendering time in PDF, Currently rendering in excel format take very less time as compare to pdf format. A quick response will be highly appreciated!.Thanks
↧
↧
SSRS 2012 - corrupt export to excel
Hi all,we have recently deployed a 2012 SSRS server, and one of the first systems to go on it, requires a daily subscription of the report to a number of staff with an ecrel export attached.When I view the report from SSRS, all is fine, looks good, formatting is right... but when I export the report, I get the problem of the lowest group repeating the first record (see attached).Try as I might, I can not work out what is going wrong... so here I am.1) Has anyone seen this before?2) Does anyone know of a solution?I have done some searching and I am damned if I can find a solution.Any help greatly appreciated.David
↧
Sound
Is there a way to generate a Sound in SSRS.I need to do so when a particular criteria is not met?Any Suggestions ?
↧
Grouping of distinct values for column
Hi, I am creating a drilldown report. My datasets are coming from several SharePoint lists. My first column has alternating values of either "Category 1" or "Category 3." I want to only see one cell with "Category 1" and one cell "Category 3," which will then open up to their respective items in the next column. I'm not sure how to make this happen. If anyone has an idea, please let me know.
↧
Join 3 sharepoint lists
In my SSRS report I am using data from three SharePoint lists. I used the Lookup function to get data from two lists for a column in my report, now I need to include a the third list to get data into another column. When I try to do this, the expression will only recognize the two lists that I used earlier and wont allow me to us the third one. How do I accomplish this. Thanks.
↧
↧
When Multiple values are selected it gives an error incorrect syntax near ','
Hi ,I have a report which works fine with single value parameter but when I select multiple values I get an error incorrect syntax near ','Here is the query If @PtHasHadApptType = 'YES' BEGIN If '349' IN (@Facility) BEGIN SELECT * FROM #FINAL a INNER JOIN CentricityPS.DBO.LOCREG lr ON a.apptFacilityId = lr.FacilityId WHERE lr.ABBREVNAME LIKE 'STJ%' AND (@AllApptTypeSelected = 1 OR ApptTypeId IN (@ApptTypeId)) AND (@AllPCPSelected = 1 OR DoctorFacilityId IN (@PCP)) END ELSE SELECT * FROM #FINAL WHERE ISNULL(apptfacilityid,'') = @Facility AND (ApptResourceFullName IS NOT NULL OR ApptType LIKE '%Transportation%') AND (@AllApptTypeSelected = 1 OR ApptTypeId IN (@ApptTypeId)) AND (@AllPCPSelected = 1 OR DoctorFacilityId IN (@PCP)) ENDELSE BEGIN If '349' IN (@Facility) BEGIN SELECT * FROM #FINAL a INNER JOIN CentricityPS.DBO.LOCREG lr ON a.ApptFacilityId = lr.FacilityId WHERE lr.ABBREVNAME LIKE 'STJ%' AND (@AllPCPSelected = 1 OR DoctorFacilityId IN (@PCP)) AND PID NOT IN ( SELECT DISTINCT PID FROM #FINAL a INNER JOIN CentricityPS.DBO.LOCREG lr ON a.ApptFacilityId = lr.FacilityId WHERE lr.FacilityId LIKE 'STJ%' AND (@AllApptTypeSelected = 1 OR ApptTypeId IN (@ApptTypeId))) END ELSE BEGIN SELECT * FROM #FINAL WHERE ISNULL(apptfacilityid,'') = @Facility AND (ApptResourceFullName IS NOT NULL OR ApptType LIKE '%Transportation%') AND (@AllPCPSelected = 1 OR DoctorFacilityId IN (@PCP)) AND PID NOT IN ( SELECT DISTINCT PID FROM #FINAL WHERE (ISNULL(ptfacilityid,'') = @Facility AND ISNULL(apptfacilityid,'') = @Facility) AND (@AllApptTypeSelected = 1 OR ApptTypeId IN (@ApptTypeId))) END END Thanks For your help.
↧
Multi Valued Parameter
I am trying to run a Multivalue parameters ReportI set the Parameter type as Multi Valued In my Query I pass the Value as where Group In( @Group )However , when I run the report and Select the Group Values as both XP and Java , I can see all the results of XP , All the results of Java and All values of Both.How can I filter it , SO that I can only see Both.(P.S : I later want to implement this as a Drilldown report but now I am making sure the Subreport works fine.)
↧
IIF Condition
Hi Team,I need some assistance with the following I have an IIF condition and it is as follows=round((Sum(Fields!VDuration.Value) + sum(iif(not(Fields!STypeName.Value = "SS") and not(Fields!STypeName.Value = "UA "), Fields!SDuration.Value,0)))/ 60,2)I want to change the above to as> If the Stypename.value<> "SS" and Stypename.value <> "UA", then Vduration should not be calculated and the Sduration needs to be half which means sum( Vduration = 0 and Sduration = Sduration/2) ELSE sum(Vduration+Sduration)Please note :- both the duration are in minutes, thats why the above script has ROUND condition.Any help is highly appreciated.Regards,Krishna.
↧
ssrs with rectangle cuases first page to be blank
In an SSRS 2008 r2 report I have 6 matrixes that I placed into 1 rectangle so that all the individual items do not float.The problem is that the first page of the ssrs 2008 r2 report is blank when the report is executing. I have set the report properties to: landscape, custom paper size, width 14" and height = 11". The report properties are width 14 inches and the height is 11 inches. The body properties keep changing to 26.75719 inches and width = 13.54667 inches. If there is no property that can be set, then should I have more than one rectangle? To place the objects into separate rectangles, I want to mention that that there is a header matrix and a summary rectangle that need to be shared. Matrix #2 and Matrix #3 are for students in grades 01 to 08. Matrix #4 and #5 are for students in grades 09 to 12. I have seen the following link: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/825fc82c-6259-4f59-a270-a96037a9026b/fit-all-rectangles-on-one-page?forum=visiogeneral. In here it says print scaling -> Page Setup -> Print Setup -> Fit to ..., however I do not see these options in ssrs. If that link is not referring to visio, how would I find these options in SSRS?Can you tell me what I can do so that I do not have a blank first page when the SSRS 2008 R2 report is executing?
↧
↧
Email Report to list of people that are defined by the report ???
Hiis there a way to email a report to the people who are on the reportFor example I run a repot for caseworker who haven't seen a client in 21 daysI want to email the caseworkers that come out on the report. Lets say it runs weekly and the list changes.Do I need Enterprise versionThanks
↧
ssrs pass multivalue parameter values to stored procedure
In an SSRS 2008 r2 report, I am currently calling a stored procedure called spRoom. I obtain the results of the stored procedureby creating a temptable called #roomReultsThe temp table that I am creating and using to obtain results looks like the following:CREATE TABLE #roomResults( studentID VARCHAR(15), endYear SMALLINT, calendarID INT) INSERT #roomResults EXEC [dbo].[spRoom] @endYear, @calendarID Currently I am only passing in one value for both paramters called: @endYear and @calendarID. However now I want to passin several values to each parameter. I want to change the sql to look like the following: EXEC [dbo].[spRoom] IN (@endYear), In (@calendarID)The above gives me syntax errors. Thus I am wondering if you can show me how to change the sql listed above so that that I can pass in more than one value from the SSRS report parameters called @endYear and @calendarID to the stored procedure called [spRoom]?
↧
ssrs 2008 r2 execute with temp table
In an SSRS 2008 r2 report, the code currently obtains the results from the stored procedure and places the results in a temp table called #roomResults. See the sql below: INSERT #roomResults EXEC [StagingCA].[dbo].[spoom] @endYear I want to only insert rows into the temp table called #roomResults where the parameter called @Customer matches the Customervalue in the temp table called #roomResults.Basically I want to do something like INSERT #roomResults where @Customer= Customer --in the temp table. EXEC [StagingCA].[dbo].[spoom] @endYear Thus would you tell me how to modify the sql above so that the records for the @Customer value is entered?If there is no such sql, would I need to create a second temp table to only select records where the value = @Customer?In both cases, would you show me the sql that would solve my problem?
↧