reporting-services

URL not passing parameters to SSRS report

此生再无相见时 提交于 2019-12-13 05:22:21
问题 I am using SSRS 2008. This is my URL: http://mybox/ReportServer/Pages/ReportViewer.aspx?/BI/PlayerProfiler+v3.0&id=548127&SP=FS In my report I have 2 parameters the ID and the SP. The ID is a plain text box and the SP is a drop down. For some reason the ID does populate the text box but the SP does not want to get selected with the way I am passing the URL. Why not?? The display value and the real value is FS.... 回答1: I found the problem! There was a space next to my actual value of the SP

Grouping column by DateTime

这一生的挚爱 提交于 2019-12-13 05:09:10
问题 I'd like to grouping a column by a DateTime field ( Months ) The values of this field are how this: 2014-12-16T12:56:06.32+01:00 How should be the expression to make a primary group by column? Best regards 回答1: You can use this query : select SUBSTR(COLUMN_NAME,6,2) as "MONTH",count(*) from TABLE_NAME group by substr(COLUMN_NAME,6,2); You can add columns in group by as per requirement. Note : Columns in group by should be present in select. 回答2: Group by the record in SSRS design . In the

MDX - Always return at least one row even if no data is available

一曲冷凌霜 提交于 2019-12-13 05:04:38
问题 I am using the following MDX to pull a parameter: WITH MEMBER [Measures].[Label] AS [Dim].[Hier].CURRENTMEMBER.NAME MEMBER [Measures].[Value] AS [Dim].[Hier].CURRENTMEMBER.UNIQUENAME SELECT { [Measures].[Label] , [Measures].[Value] } ON 0, NONEMPTY([Dim].[Hier].children, [Measures].[Measure]) ON 1 FROM [Cube] WHERE ( -- Criteria ) Sometimes, when selecting certain filtering criteria the query results in empty set. Instead, I would like it to display "N/A" in both value and label. Is it doable

SSRS : New calculated field based on where condition

我只是一个虾纸丫 提交于 2019-12-13 04:59:15
问题 I'm new to SSRS reporting and I'm need of help... I have a dataset with fields "Process", "Level" and "Workweek" Process Level WW ------- ----- -- Test Lvl_0 3 Test Lvl_1 28 Test Lvl_2 48 Samp Lvl_0 10 Samp Lvl_1 39 Samp Lvl_2 51 What I want now is to create two more calculated fields called Start_WW and Pro_Start that has the values from WW field. WW of Lvl_0 is considered to be the Process_Start. the logic is something like Process Level WW Start_WW Pro_Start ------- ----- -- -------- -----

Report is not loading when using parameters

血红的双手。 提交于 2019-12-13 04:54:28
问题 I have created a ssrs report and uploaded it in reportserver which is working fine. Then I have added 4 parameters to the same report. It works fine in my local machine,But not working when uploaded to report server. Is it because of any permission issues? 回答1: it was because one of my reports was having more than 1000 values. So I have made the following changes in web.config of the Reports server and it is working fine. <add key="aspnet:MaxHttpCollectionKeys" value="10000" /> 来源: https:/

ssrs 2008 : Do not want group header to appear for every group

二次信任 提交于 2019-12-13 04:40:00
问题 I need to generate SSRS report as shown in the above picture (the top portion of the image got cut off but it has the header as shown below which should appear on only at top of each page). HEADER is as below Bin ItemNr Description QtyOnHand My data output is as below which I need to use to generate report format as shown above. ![enter image description here][2] Issues I am facing I used 2 tablix. The first tablix has groupby on ItemNr and I show only if the record has binPriority equal to 0

SSRS using iff when dividing

旧巷老猫 提交于 2019-12-13 04:37:47
问题 I need to incorporate and iif statment in my expression. What I want to do is say if a field value = 0 then Fields!example1.value/Fields!example2.value else Fields!example1.value/Fields!example3.value. I hope that is clear in what I am trying to accomplish. 回答1: You have to validate twice in order to keep your report safe of division by zero erros. Try this: =iif( Fields!Field2.Value=0, iif(Fields!Field3.Value=0 ,0 ,Fields!Field1.Value/iif(Fields!Field3.Value=0,1,Fields!Field3.Value)), Fields

How to implement user impersonation in reporting services?

旧巷老猫 提交于 2019-12-13 04:35:44
问题 Software involved in this question is: SQL Server Reporting Services 2008 R2 SQL Server Analysis Services 2008 R2 SQL Server 2008 R2 Database Engine ASP.NET 4.5 Web Forms ReportViewer component We have several dozen reports. Some reports use T-SQL queries to our Data Warehouse database and some use MDX queries to our SSAS Cube. Active Directory Security Groups secure which reports a user can access on the Report Server. We additionally have made SSAS Roles that have Dimension Permissions on

MDX: generate 2 members 'old clients' & 'new cliends' and show sales stats for them

余生颓废 提交于 2019-12-13 04:31:55
问题 First of all, I need to split all clients in 2 categories: 'new client' - came in 2015 year 'old client' - came in 2000-2014 years To do this - I push them into unrelated dimension 'Calendar'. And it works fine (while pushing them to original [Client] dimension - would raize error, I've checked it). But then, after these calculated members are raized, I fail to get sales stats for them. Here is my code: WITH MEMBER [Calendar].[Year].[new clients] AS ([Calendar].[All], {[Client].[Year come].&

Converting FileStream to WriteableBitmap to JPEG to Byte Array for SSRS

给你一囗甜甜゛ 提交于 2019-12-13 04:21:02
问题 I'm trying to save an Image to SQL Server so SSRS can read it. I need to convert to WriteableBitmap (and possibly JPEG?) so I can make changes to the image size before saving. However, when I try to pull the converted image out of SQL Server, it will not render in SSRS at all. What am I doing wrong? byte[] m_Bytes = ReadToEnd(fileStream); //this works fine WriteableBitmap bmp1 = new WriteableBitmap(166, 166); bmp1.FromByteArray(m_Bytes); //this works fine ExtendedImage image = bmp1.ToImage();