Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

Change Background Colour Of Record Depending On Proj_Status

$
0
0

Hi,

I'm writing a report where I want to colour the background of a record blue if "Fields!Proj_Status = Tender" and red if "Fields!Proj_Status = "Won/Ordered"

I realise this requires some sort of IF statement in the BackgroundColor property but I'm not sure how to write it. Can anybody please advise how to do this?

CheersPaul


Reportviewer 2012 is missing Microsoft.SqlServer.Types

$
0
0

How do I download and installMicrosoft.SqlServer.Types?

I am trying to run Reportviewer 2012 runtime in a winforms application and I get the error message below.

Microsoft.ReportingServices.ReportProcessing.ReportProcessingException:
An unexpected error occurred in Report Processing. --->
System.IO.FileNotFoundException: Could not load file or assembly
'Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
or one of its dependencies. The system cannot find the file specified.

Query for UserName and Date who last deployed a SSRS DataSource on to ReportServer

$
0
0

Hi, We are using SSRS 2008 R2 and very recently one of the datasources got over written. Is there a way to figure who and when this happened? I was looking at ReportServer..DataSource table and was not able to interpret all its fields.

Thanks in advance...........

LightGray or LightGrey????

$
0
0

Ok, I am working on a system to allow an administrator to configure a Pseudo-CSS for a set of reports and store it in SQL Server. The end user then can use expressions to apply the style elements in the properties of each report element. Whenever the admin is configuring a style element that refers to color, I enumerate the known colors collection to populate a dropdown list so the user can select a color name rather than type it out. Here is what I found:

The known color name is "LightGray" from the enumeration, However SSRS enumerates it as "LightGrey"!

Is this a known issue? It took me the better part of the day yesterday to realize what was going on in my testing. Is there a different collection I need to be pulling names from that SSRS understands?

Thanks,

Don

Pivot tables in Analysis Services allow for no aggregate - why not in SSRS???

$
0
0

I have a fairly simple scenario. I have a list of source hosts, ports, and destination hosts for firewalls. Right now, it's in an Excel spreadsheet as such:

HOST001    80    HOST002
HOST001    443   HOST002
HOST001    8080  HOST002
HOST001    80    HOST003
HOST001    8080  HOST003
HOST002    443   HOST001
HOST002    8080  HOST001
HOST002    8080  HOST003
HOST002    443   HOST003
HOST003    443   HOST001
HOST003    8080  HOST002

Notice that there is a many-to-many relationship, here. If I pull this into a non-normalized table in SAS, I can right click the table, click "Explore Data," use a pivot table, and format the data to show source vs destination hosts and the open ports between them (without an aggregate function):

              Destination
Source      HOST001    HOST002    HOST003
HOST001                    80              80
                                 443             8080
                                 8080
HOST002   443                             8080
                8080                           443
HOST003   443           8080
 

Instead of using a SUM, COUNT, or other function on the port data, it displays all values. SAS does this. So why, WHY can I not do something similar like this in SSRS or even Excel??? When I export the SAS pivot table to Excel, it applies a SUM and goofs up my data. Is there any way to do this the way I want?

Many thanks!!!








DataMatrix Barcode in SSRS 2005

$
0
0

I need to create a report that will have the application number presented in the DataMatrix barcode format. Could you, please share your experience if possible. Thanks

DKDBA

SSRS 2008 R2 Average Averages of Child Row Groups

$
0
0

I have looked in many forums and I cannot find a solution to my issue.

My dataset returns this information:

Country State  Region  City Population
A            B        C           P1  2

A            B        C           P2  1

A            B        D           P3  3

And In my report, I need this output

Country       State       Region      City        Population

A

                    B                                           (AVG(Population))

                                   C                             (AVG(Population)) = 1.5

                                                    P1          2

                                                    P2          1

                                   D                             (AVG(Population)) = 3

                                                    P3          3

So I have 4 row groups, one for Country, State, Region, and City. I can show the average population for each region (Region C is 1.5), but I cannot show the average population for the state (text bolded above). In this example, the average population of the state should be (1.5 + 3) / 2 = 2.25, but instead I am getting 2 (because it is finding the average of all populations 2+3+1 / 2 = 2).

Does anyone know how I can find the average as I mentioned above?


120811049008

How to make date dynamic for a report in ssrs using T-sql?

$
0
0

Hi ,

I have a procedure which is something like this

select

TEDW_D_DATE_TYPE_1.DATE_SHORT,TEDW_F_EMAIL_CAPTURE.ORDERS_BOUNCE

from

EDW.Calendar.TEDW_D_DATE_TYPE_1

full

outerjoinEDW.Retail.TEDW_F_EMAIL_CAPTURE

on

TEDW_F_EMAIL_CAPTURE.DATE_KEY= TEDW_D_DATE_TYPE_1.DATE_KEY

where

TEDW_D_DATE_TYPE_1.DATE_SHORTbetween'2012-08-01'and'2012-08-30'

Now i want to use this procedure in a report and if the user picks a particular date then he must be able to see all the values for the whole month not for the day which can be done by above proc but how can i do it dynamic? how can i allow the user to only select 1 date and show all values for whole month? I cannot use start date and end date as i have to use only 1 date.

Can somebody help me with this,

Thanks.


Calculate Value based on Days in Month

$
0
0

Hi.

I am looking to calculate budget values based on days in a month.

Fields!Budget.Value * 12/52 This gives me the weekly budget.

I need per day budget.

easy enough...

Fields!Budget.Value/31 =budget per day

The issue is not every month has a neat 31 days.

Can someone tell me how to do this in SSRS.?

Thanks for the your help in advance!

Ziggies


An extra page is visible when running a report

$
0
0

I have a main rdl file with about 40 subreports.  Each subreport has a filter that only allows that filtered data to show.  At the end of each subreport there is a rectangle that is used to "add a page break after".

The problem is that all of the pages are showing up correctly with the appropriate page break.  Unfortunately, the last page is blank from the "add a page break after".  The user does not want to see that blank page.

I tried hiding the rectangle when the last page is visible, but then the headers of all the other subreports that did not meet the condtion showed up.

Any ideas?

Report Builder 1.0 for SQL Server Reporting Services 2008 R2

$
0
0

We are trying to implement Ad-Hoc Reporting using SSRS 2008 R2.

First of all, it is very unhelpful that all SSRS books are for either 2008 or 2012, even though SSRS has major changes in 2008 R2 compared to 2008.

Our instructional materials indicate that we should build Report Models to abstract out our databases into terms familiar to our business users.

The problem we are having is the difference in functionality between Report Builder 1.0 and Report Builder 3.0. Report Builder 3.0 is touted as having the modern, ribbon based interface that is supposed to make end-users feel more comfortable.  However, all the documentation says that end users are supposed to use Report Builder 1.0 for Ad-Hoc Reporting.  And, it seems, that the reports generated by Report Builder 1.0 are not round-trip compatible with all the other reporting tools for SSRS 2008 R2.

The documentation we have illustrates that Report Builder 1.0 is nice for Ad-Hoc reporting, because is based on connecting directly to Report Models, and the end users can directly drag-and-drop entities and fields into their reports.

When we try working with Report Builder 3.0, it seems we must first connect to the Report Model as a Data Source and then build a Dataset query on the Report Model.  Only then are some entity attributes available to be dropped into the report.  If the user decides another source column is needed, they have to go back, edit the query, save the query, and then drag the column from the Dataset to the report.  This does not seem end user friendly at all!

We are also concerned that if we train our users on the seemingly soon-to-be-obsolete Report Builder 1.0, and get them used to having direct Report Model access, that at some point we will have to move them to the Dataset-interrupted approach of Report Builder 2+.  Highlighting this perception of impending obsolescence of Report Builder 1.0 is that in our shop that is starting with SSRS 2008 R2, we cannot figure out how to get a copy of Report Builder 1.0 in the first place.

We just don't see our end users being savvy enough to handle the steps involved with creating Datasets on top of Report Model Data Sources.  So we would have to build the Datasets for them.  But in that case, what point is there in creating any Report Models in the first place if DBAs are the ones to make Datasets?

As such, it is hard to envision a forward-looking SSRS implementation that has the end user ease-of-use Ad-Hoc reporting that the SSRS 2008 documentation presents.

What is it that Microsoft actually wants/expects SSRS implementers to do?


Dan Jameson
Manager SQL Server DBA
CureSearch for Children's Cancer
http://www.CureSearch.org

How to make cell background color continuous red green based on value?

$
0
0

Hi all,

I have a column in my report that takes on float values, both positive and negative. Currently I'm using iif statements to have the background color of a cell take on either red, green, or yellow, depending on which of 3 intervals the cell's value falls into.

It would be slicker if I could make the background color continuously "fade" between those three "perfect" values, depending on the exact value of the cell.

Can this be done? How?

Thanks for any suggestions,

sff

sum of floating point number gives #error

$
0
0

I have a value in column

199.99

199.99

299.99

399.99

199.99

Now i need to sum of it.I used

=SUM(Fields!Payment_Gross__c.Value)

but it return me

#Error.

Kindly help

Whats Wrong I'm doing.

Thanks

run the report automatically whenever user changes the parameter, SSRS 2008

$
0
0

Hi All, I have a report with 2 parameters "Customer" and "Date" - date is defaulted to today and user might change it. Each time User changes the Customer parameter I need the report to run automatically without the need to click "View Report" button. Is this possible in SSRS 2008?

Thanks in advance, San

SSRS Set Text box background color

$
0
0

Hi All

SSRS 2008 R2

I have a report that has 5 datasets. Some of the fields on my report are populated by using the LOOKUP function e.g.

=Lookup(Fields!Employee.Value, Fields!EmployeeID.Value, Fields!Bank_Details_Added.Value, "BankDetails")

What I want to do is set the background color of all fileds when a value = 'False'. E.g> =IIF(Fields!Account.Value ="False","Red","White"). This works fine for fields that are part of the original dataset but not fields that are populated by the LOOKUP. I get the following message:

The BackgroundColor expression for the text box 'Textbox7' referes to the field 'Account'. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope.

I've tried adding the dataset scope by doing =IIF(Fields!Account.Value, "BankDetails" ="False","Red","White") but it just wont work.

Does anyone know how to set the background color on a text box when the text box is populated by a LOOKUP?

Many thanks


Count of Varchar values in SSRS

$
0
0

Hey, currently my report looks like this:

Id    State
1     Renew
2     Upgrade
3     Deleted
4     Renew
5     Deleted

What I want is, I want to add a textbox or a tablix below this report which will tell me the total of the states. Something like this:

Total Renews = 2

Total Upgrades = 1

Total Deleted = 2

I tried doing this in a new column ina new tablix having the same dataset as the main report:

SUM(IIF(Fields!State.Value = "Renew", 1, 0))

It doesn't seem to work, probably coz its a varchar field.

Any ideas?


Import or SQL text query fails, but query designer works (I need to use the text query)

$
0
0

I am able to successfully connect to datasource & run reports when I build query with the GUI.

For some reason though, when I import .SQL or when I type SQL into the 'Text' query box I encounter errors (using the same datasource that worked with no problem in the query designer) . The SQL statement itself is extreemly simple, yet has a where clause that keeps the result set small so I do not beleive it is the syntax.

I am new to MS SQL Server ReportBuilder so it likely is something very simple/obvious, but I cant figure it out. I beleive the user account that I am using has only read permissions to the database, but my query is just a simple select statement. Here is the error I receive:

(note: I only posted a portion of the error message because this form reads a lot of it as web links and my account is not elevated yet to post links, perhaps because it contained xml tags)

Thank you for your time and I appreciate any suggestions you may have!!

---------------------------
Microsoft SQL Server Report Builder
---------------------------
Could not create a list of fields for the query. Verify that you can connect to the data source and that your query syntax is correct.

An error occurred when the query ran. Refer to the inner exception for details.

The remote server returned an error: (500) Internal Server Error. query compilation failed: e InvalidSemanticQuery The semantic query is not valid. Details: Data at the root level is invalid. Line 1, position 1. ( '').</Message></MoreInformation><Warnings  /></detail>

The remote server returned an error: (500) Internal Server Error.

To continue without updating the fields list, click OK.
 

Reporting services throwing Sharepoint error out of the blue? - Sharepoint 2010 integrated reporting services 2012

$
0
0

I didn't know if i should post this in reporting services or sharepoint.  The error is thrown by reporting services so I am posting it here.

Sometime in the last month reporting services on sharepoint server starting throwing errors for no reason out of the blue, and is completely unusable.  Its sharepoint 2010 (SP1) integrated with reporting services 2012.  We cannot open a report in report builder, run a report, open a report data source or create a new data source without the following error:

Report Server has encountered a SharePoint error. ---> Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {BDEADF26-C265-11D0-BCED-00A0C90AB50F} failed due to the following error: 800703fa. ---> System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors

We also get this error in Sharepoint Central Administration... <appplication management> <service applications> <RS service application> <system settings>

I did nothing to this server in the last few month, we created no new reports, manually installed nothing, etc. 

I have spent the last few days looking at this and it looks like the following items were installed within the last month from some network update:

1/21/2013:  Miscrosoft Visual C++ 2005 Redistributable (x64)
1/21/2013:  Microsoft Visual C++ 2008 Redistributable (x64)
1/21/2013:  Microsoft Visual C++ 2008 Redistributable (x86)
1/16/2012:  Microsoft System Center 2012 SP1 DPM Protection Agent

Does anyone know if any of these updates could possibly be causing this error in reporting services/sharepoint?  Possibly something is out of sync now and I need to install another service pack?

I don’t know much about Sharepoint, and I really don’t want to reinstall the whole thing.  Any input is appreaciated.





Repeat header rows on all pages when you export to excel sheet and print it

$
0
0

Hello ,

I need to export report into excel sheet. And when people try to print it . The header rows only appear on First page of the print . Other subsequent pages d onot have header rows.

I saw another thread saying SQL server 2008 R2 will solve the issue. Can you tell me that is fixed and how to i go about configuring it on SQL server 2008 R2.

 

Thanks

Madhavi

Enable Disable SSRS report parameter visible property during run time

$
0
0

is it possible to enable or disbale visible property of report parameter based on some condition or during run time? please help

Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>