reporting-services

NaN and Infinity values in SSRS

我只是一个虾纸丫 提交于 2019-12-05 07:15:52
I am using Visual Studio to build my report and I have tried to use those three expressions: =IIF(Fields!A.Value = 0 or Fields!B.Value = 0, 0,SUM(Fields!A.Value)/SUM(Fields!A.Value) =IIF(SUM(Fields!A.Value) = 0 or SUM(Fields!B.Value =0),0,SUM(Fields!A.Value)/SUM(Fields!A.Value) =Replace(Round((((SUM(Fields!A.Value)/SUM(Fields!B.Value)))*100),0),"NaN","0")+"%" The first 2 give me only 0 as % and the last one doesnt get rid of Infinity but does get rid of NaN. Can someone please help where I can use both these expressions together and not get only 0% and Infinity when I use either the top 2 or

SSRS how to render HTML escaped character

…衆ロ難τιáo~ 提交于 2019-12-05 06:37:54
I am trying to render a column which has lots of HTML escaped characters, such as &#0945 for alpha, &#0946 for beta. I use SSRS 2012's placeholder property to render it as HTML markup type. This feature looks like only works with HMTL tags, not escaped characters. Any feedback appreciated. Right-click on the non-design surface of your report and click Report Properties... . Click the References option, click Add in Add or remove assemblies and add System.Web from the .NET options. Click the Code option and add the following code: Function Decode(ByVal EncodedString AS String) AS String Return

how to avoid to Specify a username and password for datasource in SSRS?

放肆的年华 提交于 2019-12-05 06:35:19
I am using SSRS as a part of my project for displaying reports. It accesses data from SQL data source.Here my problem is that each time I view my report on the browser, it asks me like this "Specify a user name and password for data source" I need to avoid this prompt while seeing my report on the browser. Kindly suggest what should i do to get rid of my problem. Yes this can be fixed.. You should Go into your DataSource properties Select Credentials Select "Use this user name and password" Enter the credentials that you want to use with the report Save the report (or DataSource if it's a

how to fit content of reports so that we can print it on A4 size

久未见 提交于 2019-12-05 06:24:59
I have created a report in ssrs 2008 r2.It is larger then the normal A4 size .So when i export the report in word i see it clearly but when i see print preview of the report in to the word its contents get cut from the right end.I think it is due to report size. Is there any way so that we can fit the content at the time of export in to the ms word so that user can clearly take a print out in A4 size. The only way to do this is to physically decrease the size of your report when building it as there is no auto size capability in report builder. Right click and properties on the grey back

Internet Facing SSRS Report

心不动则不痛 提交于 2019-12-05 06:14:34
问题 I am designing a website using PHP 5.2.9 and MS Sql Server 2005. I have an SSRS report and I want to set it up so that people over the internet can access it (after they put in a username and password, but i can figure that part out). Our website is hosted locally on a web server and the database is on a seperate server. I haven't set up the SSRS instance yet. So any help on figuring out how to do this would be awesome (it's a bit too late in the game to change over to asp.net( 回答1: Simplest

In SQL Reporting Services, how to filter a dataset according to a parameter?

℡╲_俬逩灬. 提交于 2019-12-05 05:50:01
I've got an unfiltered dataset to deal with so as to generate a report (SQL Server 2005 btw) . Let's say I've got a Name column, and I'd want to add a parameter to my report, so as to select only the names containing some characters. Does one know how to deal with these filters? I've tried with no luck these: =Fields!Name.Value Like =Parameters!FilterName.Value =Fields!Name.Value = = "%" + Parameters!FilterName.Value + "%" I'd like to be able to get the names 'foo' and 'foobar', if I give the parameter 'oo' Edit: I know the filtering should be done on the SQL server side, but I don't control

SSRS Reports - Hiding a Tablix doesn't shrink the space and move content after it up

无人久伴 提交于 2019-12-05 05:37:58
I have a tablix with another tablix beneath it with 0 space between the bottom of the first tablix and the top of the second. When I change the Hidden property of the first tablix to true, it hides the tablix with empty space but doesn't move the second tablix up. Is is possible to hide the first tablix and move the second tablix up? Ah, just figured it out. Have to add both tablixes to the same rectangle. Then hiding the first tablix moves the second one up. 来源: https://stackoverflow.com/questions/14046910/ssrs-reports-hiding-a-tablix-doesnt-shrink-the-space-and-move-content-after-i

Possible to send SQL Reporting Services report in email format with a duplicate pdf attachment?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 04:21:14
Our system sends a "Daily Update" email via Reporting Services to all users each morning. If people are on a computer there's no issue. But, for users on the go, some mobile device email clients can't render the email. However, they can all render pdf files. So... the quick fix was to create two subscriptions for each user; one with the message in the body and one with the message in an attached pdf. This creates an annoying amount of friction. I'd love to send a single email with the message in the body a duplicate pdf version attached. Is there a simple solution? FYI, we're managing this

Can I create SSRS Reports in VS 2015 using SQL Server 2008 R2?

≡放荡痞女 提交于 2019-12-05 04:08:22
I'm new to SSRS. Recently upgraded my development environment from Visual Studio 2010 to Visual Studio 2015 Enterprise Edition. Currently my reports are made using Crystal Reports. I would like to to use SSRS and I'm trying find out my current environment will allow me to do it. So now I'm using Visual Studio 2015 and SQL Server 2008 R2. Can I create SSRS Reports using these two? If yes, how can I create it? I know how to create a report and publish it using the Business Intelligence Development Studio in SQL Server 2008 R2. But could not understand how I could use those reports in my

Trying to sum distinct values SQL

ⅰ亾dé卋堺 提交于 2019-12-05 03:52:18
I'm having trouble coming up with a value for a cell in SSRS, which should be a sum of distinct values. I have a SSRS report that looks similar to the below screenshot: I'm having trouble getting the value in red ($11.25). I basically need to sum the Ship Cost, based on distinct Tracking #s. So there are two distinct tracking #s, one with a Ship Cost of $5.25 and the other $6.00, so the total displayed in red should be $11.25. But I cannot achieve this in SSRS and can't figure it out in the SQL query either. I'm thinking a subquery like (and I know the below is not valid SQL): (SELECT SUM(