I have default to enter a value of the parameters. Only one other table that I wanted to put a fixed parameter, how do I have the following expression=Fields!qntafter.Valueas effort to give the parameter I need?
↧
Add Parameter expression
↧
The Objects listed above have already been created so the data can be accessed manually right now.
In a new ssrs 2008 r2 report, I am obtaining parameter values to pass to the main query of the report by setting up individualdatasets that look like the following for each value in the temp table called #year:declare @user int = 1IF OBJECT_ID('tempdb..#year') IS NOT NULL DROP table #yearCREATE TABLE #year( Year varchar(10) , School varchar(40) , Calendar varchar(30) , taskID int) INSERT #year EXEC [text].[dbo].[procQCParam] @user select distinct year from #year IF OBJECT_ID('tempdb..#year') IS NOT NULL DROP table #yearI am told by the users that each parameter value will be displayed independently by each parameter. In other words once the user selects year, then the values for school are displayed. Once the values for school are selected, then the values are can be selected for Calendar. These I believe are called cascading parameters.Based upon what I described above, can you show me the sql for the cascading parameters and explain how to link the parameters together?
↧
↧
Exporting SSRS Report to Excel with formulaes Preserved
Hi Team,I have a request to develop a report / template. In which I have some columns where user have to populate them after gettting the report in Excel format.EgManager - Populted from DB columnSname - POpulated from DB ColumnTT(Mins) - Populated by the user after receiving ther report in excel format.TransportTime - TT/60 ( formulae to be inserted as expression in SSRS )My aim is to ensure when the user gets the report the "TransportTime" cell formulae needs to be carried as well. So, that when ever user start populating the TT(MINS) column in excel, the transporttime will get auto populated based on the formuale.In SSRS fro TransportTime I have used the expression as " Fields!TT(Mins).Value/60Yet the formulae is not transferring across to excel.Any advise is highly appreciated.Thanks.
↧
Send SSRS report in Email body
Hi Team,As the report is used more like a template, the request is to send the report in Email body, so that the end user can easily edit and send it back to the receipents.If you subscribe the SSRS report and export as MHTML, then the report is coming in the body. But, I want it to be ediatble as well? Please adivse how can I acheive this?Regards.K/
↧
ssrs 2008 r2 pass paramter value to a sort
In a new SSRS 2008 r2 report, I am going to be using sql within a dataset and not a storedprocedure since will I need to pass multiple values to each parameter.One of the parameters that I will be working with is allowing the user to be able to pick what itemsthey want to sort on. The sort will have 3 items that will be always be sorted on first which are:year, and school_number. The users will be able to pick additional items to sort on like grade, and teacher.The following is the sql that I have so far:select year, school_number, grade,teacher,room,course_number, course_namefrom dbo.schoolorder by year, school_number, several parameter values.Thus I am wondering if you would modify the sql above so that I can allow the user to sort on the additional parameters in any order like grade,teacher,room,course_number, course_name?If any part of my request is not possible, I am wondering if you would show me what is possible in the sql?
↧
↧
Prompt Users for a Variable in SSRS
I am building a SSRS report (my first report) that will pull all records from a single table. Before the data is populated in the report I would like to have SSRS prompt the users for an item number. Do I add the functionality in the stored procedure the report calls? Or, can a text parameter field be added directly in SSRS to filter just the data? Thanks!Edit: Attempted to change the post name.
↧
SSRS lab exercises
Hi Can you please send SSRS lab exercisesEx: Create a tabular report listing films by language and country, with two levels of grouping and subtotals for each
↧
SSRS Report slow
I have one ssrs report, when we run th report, its loading page opens very late, once it start showing loading page then data comes very fast. I executed the same proc which we are using in the rdl, that proc is taking very less time. After loading the page when i chnaged the parameter and give maximum input , still the output comes in seconds. I am attaching the screen shot, which shows the pre and post loading page. Pl suggest why the laoding page come very late.Thanks
↧
ssrs 2008 r2 straight line in a matrix
In an SSRS 2008 R2 new report have placed a matrix on the end of the report for information the user wants to see at theend of the report. The user wants to place a straight line between the different infomation sections in the tablix. Here arethe problems I am having:1. In a row I would like to merge 2 cells together so that a line placed within the matrix is the same length. The problem is that I do not know how to merge the cells.2. When I drag a line into a cell in the matrix, the line is not straight. The line points to an angle. I have tried to changethe properties of the line on the endpoint values but that has not worked. Thus can you tell me how to make the line placed within a matrix cell to be straight?
↧
↧
SSRS in VS 2010 tool, VS 2012 Data services, what is compartiblity??
Hi, I have SSRS proj developed in VS 2010 Shell on SQLServer 2012 which is most standard setup, but now we want (or asked) to use VS 2012 for our SSRS, I might lost of track of all versioning and compartability, is there any good reason to do so? its still against Sqlserver 2012??I tried to pen my proj/solution in VS2012 (there is not initial reporting services default settings, so I choose some c#...) and could not open SSRS project, neither got any conversion options.Or do I need to do some 3rd party conversion?Main goal for our mgmt to make sure that everything is upto date to most recent SQL Server 2012 and so no any compartability issue will pop up in the future if SSRS reports done on VS 2010 Shell/Data Tools.Appreciate your help in this navigation, what is the optimal setup for this situtation.BestMario
↧
Dynamic file attachment name in SSRS 2008 R2 subscriptions
Hi,How to define customized attachment name from the SSRS subscription.Regards,
↧
Filtering on a parameter value ??
HiNot sure why I'm stuck on this.. but I am I have a parameter called activestatus values are "A" for Active or "B" for "All"I want to filter the dataset by the field "Active" if the parameter value is "A" then get only "Active" field = "A" But... if the parameter is "B" then I want everything with no filtering... ThanksJoe
↧
SSRS Subscription - Write to a SharePoint Folder
Is it possible to set up a subscription in SSRS to write to a sharepoint directory via the URL?For example, I have a sharepoint site and I want to write to the directory via : http://myserver/reports/myuser/pdfs/SOME_REPORT_YYYYMMDD.pdfA consultant here told me that it was totally ok to write directly to the HTTP directory as above but I received an invalid path ("must be UNC convention" error).I'm using SSRS 2012 (new test machine) and wanted to see if it was possible to write out files to the URL string of a SharePoint install.
↧
↧
Embedded connection Issue
I am using embedded connection for data source and the connection string is a expression. In credentials page, I am passing values for "use this username and password" but even after saving the report it is automatically changing to "Prompt for credentials".Any advice would be appreciated.
↧
How to Calculate specific cell (with expr) total in SSRS ???
i use sql server 2012 and visual studio 2010.I want to just calculate only two cells (where it's a red text in a picture) 1. win total its' sum all win. 2. Bet Amount win it's total amount money of win. win it's bit (False/True), so for get count i use this code:[b] =Sum(IIF(Fields!Win.Value, 1, 0)).ToString() [/b]Bet Amount Win it's money cell and it's sum from this code:[b] =SUM (fields!BetAmount.Value * IIF(Fields!Win.Value, 1, 0))[/b]if you can tell me who to do it, i try make a sum col in a date line (where it's dark grey line, under a blue) [img]http://i.imgur.com/5AN0bwx.jpg[/img]
↧
Error running Subquery in Report Builder 2008
I am running the below query in Report Builder and it is giving an error saying "An item with the same key has already been added."This scripts all good in SSMS 2008 and also in Report Builder inside Design a Query window, when I hit '[b]![/b]' it runs and gives me correct output but, when I hit next it gives me this error.If table structure and example required I can provide that.SELECT SUB1.PortfolioName, SUB1.SiteName,SUB1.BuildingName,SUB1.AccountTypeName, SUB2.Month,SUB2.Year,SUB2.UsageAmount,SUB1.Month,SUB1.Year,SUB1.UsageAmountFROM(SELECT PO.PortfolioName, SI.SiteName, BU.BuildingName,AT.AccountTypeName, AM.Month, AM.Year,AM.InvoiceAmount,AM.UsageAmount,CL.ClientIdFROM AccountMonthly AMINNER JOIN Client CL ON AM.ClientId = CL.ClientIdINNER JOIN Portfolio PO on CL.ClientId = PO.ClientId INNER JOIN PortfolioSite PS on PO.PortfolioID = PS.PortfolioID INNER JOIN Site SI on PS.SiteId = SI.SiteID INNER JOIN Building BU on AM.BuildingId =BU.BuildingIdINNER JOIN AccountType AT ON AM.AccountTypeId = AT.AccountTypeIdWHERE CL.ClientName LIKE 'ANZ%'AND PO.PortfolioName = 'AUSTRALIA' AND SI.SiteName = 'COMMERCIAL'AND BU.BuildingName LIKE '833 Collins St%'--AND AM.Year ='2012'AND AT.AccountTypeName = 'ELECTRICITY')SUB1INNER JOIN(SELECT PO.PortfolioName, SI.SiteName, BU.BuildingName,AT.AccountTypeName, AM.Month, AM.Year,AM.InvoiceAmount,AM.UsageAmount,CL.ClientIdFROM AccountMonthly AMINNER JOIN Client CL ON AM.ClientId = CL.ClientIdINNER JOIN Portfolio PO on CL.ClientId = PO.ClientId INNER JOIN PortfolioSite PS on PO.PortfolioID = PS.PortfolioID INNER JOIN Site SI on PS.SiteId = SI.SiteID INNER JOIN Building BU on AM.BuildingId =BU.BuildingIdINNER JOIN AccountType AT ON AM.AccountTypeId = AT.AccountTypeIdWHERE CL.ClientName LIKE 'ANZ%'AND PO.PortfolioName = 'AUSTRALIA'AND SI.SiteName = 'COMMERCIAL'AND BU.BuildingName LIKE '833 Collins St%'--AND AM.Year ='2013'AND AT.AccountTypeName = 'ELECTRICITY')SUB2ON SUB1.ClientId = SUB2.ClientIdWHERE SUB1.Month = SUB2.MonthAND SUB2.Year = SUB1.Year + 1AND SUB2.UsageAmount > SUB1.UsageAmount--ORDER BY SUB1.BuildingName
↧
DATETIME Field loses time in SSRS, but still listed as datetime
Hi All,I have a completely unresolved problem here (three people in our team have looked without solution). In our test server, I made a SSMS stored procedure that returns (among others) a datetime field, which is used in the dataset of a report. I ran the report and saw that the field (CreateDate) displayed correctly as a datetime with the field format of "dd/MM/yyyy HH:mm" as requested in the spec. The report was signed off and added to our live report solution in SSRS, but we soon received a complaint that all the times were showing as 1 o'clock in the morning.We have a function to convert the database GMT to display BST, which adds one hour to the displayed time at this time of year, so I would expect this result if the SSMS query was finding a date, not a datetime, then adding one hour for BST and giving that to SSRS. This implies that the report is receiving a datetime, as the function is run as part of the SQL query in the stored procedure.I checked everything I could think of and can see no reason why the test version would return a correct datetime field, while the live version would return this datetime field that looks as though it came from a date field.In the end, I added a new datasource to the live report, referring back to the test server - the times display correctly, which seems to imply that the problem is somewhere on the server, However, when I run the procedure itself as a query in SSMS, the results include the correct times. I am at a loss to see what is going on here - any suggestions most welcome!Cheers,Mark
↧
↧
SSRS report manager not rendering charts
We have built out a new report server using SQL 2012. After deploying our new and old reports to this server, charts are not rendering. It doesn't matter whether viewing reports in a browser or attempting to export to PDF.The following is what we see in Production:[img]http://social.msdn.microsoft.com/Forums/getfile/298914[/img]However, we should be seeing something like this (from Report Manager in my dev environment):[img]http://social.msdn.microsoft.com/Forums/getfile/298924[/img]This is happening with ALL of our charts. The data renders fine.In production, we're using: SQL Server 2012 on Windows Server 2008 R2 SP1 Standard (64-bit)On my dev environment. I have SQL Server 2012 and Windows Server 2008 R2 Enterprise (64-bit)Thanks!ijidak
↧
can't retrieve RDL from report server 2005?
Jeez Louise, I can't believe the difficulty of this task!! I made changes to a report and deployed them to our report server. However, the changes are not in TFS. I overwrote my changes from TFS. Now I am banging my head against the wall trying to get the RDL out of report server.I've looked here:http://www.sqlservercentral.com/Forums/Topic965586-147-1.aspxhttp://www.sqlteam.com/forums/topic.asp?TOPIC_ID=102320http://social.msdn.microsoft.com/forums/sqlserver/en-US/df191498-9b45-413e-bc1b-32944ac02701/how-to-download-reports-from-reportserverhttp://sql-articles.com/articles/general/download-export-rdl-files-from-report-server/When I visit Report Manager, my URL looks like this:http://XX.XXX.XX.XX/ReportServer/CompanyReportsI have a list of report names. If I right-click the one I want, I can "save target as". The only problem is it is saving an HTML file, not the RDL file that I need.Right-click on the report, then properties, opens up a dialog with no other options besides OK/Cancel.Did Microsoft really make it impossible to retrieve a report from Report Server 2005? This is super frustrating.Any help appreciated. Thanks.
↧
sp approach for SSRS with Extra Select, does it make any sense?
Hi,I'm working on new site now and we have a req that all sp for our SSRS reports utilized that approach, the very last SELECT comes from predefined #SSRSTable, so local sp are very bigin terms of number of lines, rationale behind this is that SSRS will be able to update columns/fields if any change happened in dataset (?).I know that it's not true but probably there are some other reasons I'm not aware of ? Not counting that local dbd paid by line? :-) I always try to make my sp compact and optimized in terms of everything.Thansk for your feedback.MmarioThis is our typical structure of sp:[code="sql"]Create sp..Create Table #SSSRTable ( -- ???? c1 ... c2... c3)INSERT #SSSRTable --- ??? SELECT C1,c2,c3 FROM source s -- all main logic is here JOIN 1.. JOIN 2.. Join 3.SELECT C1, C2, C3 --- ???FROM #SSSRTable END[/code]
↧