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

Display all results and then choose to filter by paramter

$
0
0

If I have a query that lists all the results automatically without a filter first but then I want to filter the results by a field after, how would I go about doing that?

The query runs and there is no parameter restriction on it.  After that, I would like to have the option of sorting that field by field type?


2008R2: Can I filter one dataset using values in another dataset?

$
0
0

I've got two datasets - let's say one is registration documents, which includes a location code; the other is a list of locations, which includes a renewal frequency:

Dataset 1:

User Name     Date Filed     Location Code

Dataset 2:

Location Code     Location Name     Months Renewal Needed

 

Given a report based on Dataset 1, I want to show all the records where the filing has expired (based on date filed, and how many months a filing is good for in this location). Is this doable? Every approach I use either doesn't work, or is disallowed by Reporting Services (lookup not allowed in calculated field, for example)

 

Also - these values CANNOT BE JOINED AT THE SOURCE. The problem has to be solved in the report, if possible.

 

Thanks!


Philo Janus, MCP Author: Pro InfoPath 2007 Pro PerformancePoint 2007 Pro SQL Server Analysis Services 2008 Building Integrated Business Intelligence Solutions with SQL Server 2008 R2 & Office 2010 Blog @ http://philo.typepad.com/with-all-due-respect/

How use count for value from another table

$
0
0

Hi,

Please have a look at the below tables and result , I am failed to use count with group by and having clause.

Basically this to display the result in SSRS 2008. Any one help me to get the result like my sample result table or any solution for SSRS 2008.

Table : Category

Table:Incident

Result

Thanks,

"User already exists" error in Report Server Database Configuration Wizard when using Service Credentials

$
0
0

I am running SQL Server 2008 R2 SP1.

I am attempting to change the credentials of the database access in the Report Server Database Configuration Wizard to the service credentials. When I get to the "Progress and Finish" screen, I get an Error at the "Applying Connection Rights" step.

The error is "System.Data.SqlClient.SqlException: User, group, or role "Domain\User" already exists in the current database. <Stack trace continues>

I removed the user and schema from the instance\Security\Logins and the SharePointRS, SharePointRSTemp, and msdb databases but the error persists (though it does recreate the user and applies the dbo,public, and RSExecRoles).

What is going on?

EDIT: Also removed user from MSDB.

SSRS 2008 - How to tell a table from a matrix by looking at the tablix properties? Why only one row?

$
0
0

Was looking at an existing report and something seemed strange.  Ive not used a matrix before, but there were two "tables" on the report.  One had dashed lines between the header and the row below it.  The 2nd table used the same dataset as this table, yet it showed multiple rows that included the details.  Looking at these "tables" in the designer, it was obvious that the top table didnt have any detail rows (indicated by the lack of small lines in the row headers), whereas the 2nd table did.

So my questions are:

- Looking at an existing SSRS 2008 report in design mode, how can one tell if a give table is a matrix or a table?
- If a table has no "detail" rows, how can they be added?

How can I use stored procedures with passing parameters in SSRS

$
0
0

Hi Guys,

I have trouble to use the procedure in SSRS report dataset which has a parameter. I have to pass report executor loginID as a parameter to stored procedure using the ReportUser parameter available in SSRS. Is there any way to do it?


Swapna

Can't find Microsoft.ReportingServices.ReportRendering Namespace/Assembly

$
0
0
Title is pretty self-explanatory.  Here is an excerpt from the online docs.  I think it's also curious that the links are greyed out, almost like placeholders, is there something overtly secret about this stuff getting left out of docs AND Samples??  I mean there is no sample for rendering extension, this is really poor.

Microsoft.ReportingServices.ReportRendering

Contains classes and interfaces that enable you to extending the rendering capabilities of Reporting Services. Using the members of this namespace along with members of the Microsoft.ReportingServices.Interfaces namespace, you can build your own, custom rendering extensions for Reporting Services.


So who is the magic gatekeeper?  Where can I find this stuff?

Calling Reporting Services Web Service with jQuery possible?

$
0
0

Hi,

is it possible to call the Reporting Services Web Service with jQuery? If yes, can someone post me a small example?

Background:

My plan is to create a html with a form which is also uploaded then into the reportserver. I open this html later by clicking a link in a report (with gotoURL open.window). The report opens the html inclusive the overtaken of some additional parameters (reportname, reportdescription). These parameters I will use in the html-form as defaultvalues for the corresponding input-text-fields. Now the user can make some changes (i.e. the decription). With a click on a button I will send the new description to the Reporting Services Web Service by using the SetProperties method, closing the html-window and reload the report. Important is that I want to upload the html also into the reportserver itself.

I have already found how to consume a web service via jQuery but with the Reporting Services Web Service I did not get it running in my tests.

I have referenced to the following jQuery.js: http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js

Here you can see my tests I made with the results:

$.ajax({
	type: 'POST',
	url: 'http://<..>/ReportServer/ReportService2010.asmx/ListChildren',
	data: {'ItemPath':'/','Recursive':false},
	complete: function(xData, status) {
		$('p').html($(xData.responseXML).text()); // result
		$("#divStatus").text( status ); // status	}
});

I got a NULL response with Status success. But where are the items?

Another test which should response only one value was that:

$.ajax({
  type: "POST",
  contentType: "text/xml; charset=utf-8",
  url: "http://<..>/ReportServer/ReportService2010.asmx/GetItemType",
  data: {"Item":"/Development"}, // Development is a Folder in my Reportserver-Root
  dataType: "xml",
  success: function (msg) {
   $("#divResult").html(msg.responseXML);
  },
        error: function (data, status, error) {
   $("#divResult").html("WebSerivce unreachable<br> <br>" + data.responseXML + "<br> <br>(" + error + ")");
  }
});

Here I got an [object Error]

And here my last test:

 var soapMessage = '<?xml version="1.0" encoding="utf-8"?>\<soap:Envelope \
       xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" \
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
       xmlns:xsd="http://www.w3.org/2001/XMLSchema">\<soap:Body>\<GetItemType xmlns="http://www.microsoft.com/sql/ReportingServer">\<ItemPath>/Development</ItemPath>\</GetItemType>\</soap:Body>\</soap:Envelope>';
 $.ajax({
  type: "POST",
  contentType: "text/xml; charset=utf-8",
  url: http://<..>/ReportServer/ReportService2010.asmx?wsdl,
  data: soapMessage,
  dataType: "xml",
  success: processSuccess,
  error: processError
 });

    function processSuccess(data, status, req) {
        if (status == "success")
            $("#response").text($(req.responseXML).find("Type").text());
    }

    function processError(data, status, req) {
        alert(req.responseText + " " + status);
    }

Here I got an "Undefined error"

Can anyone help me?

Thanks

René Illner


error: Incomplete RPL stream received (length=67578)

$
0
0

In an ssrs 2010 report that is passed from a vb.net 2010 application, I am getting the error message

error: Incomplete RPL stream received (length=67578).

This error message is only occurring on a few letters when run  on the report server. The data is basically loaded from an html string that is loaded in a report displayed on the report server.

I am guessing that there may be some character, symbols, hidden values, etc that may be causing the issue.

Do you think the 'character, symbols, hidden values, etc that may be causing the issue'? is so, what time of characters could be causing the problem?

Thus can you tell me what you think is wrong and what I can do to solve the problem?

SSRS 2012 - NANS , IIF's, Counts, and Lookups - Can't get them to play nice

$
0
0

Hello, having an issue with NaN values when there is an attempt to divide 0 by 0.   I have two datasets, a year-to-date (YTD) and month-to-date(MTD).   In this expression I want to get the number of tickets not breached and divide by the total number of tickets.  In my datasets the field that hold this info is the im_is_breached.Value which can either be 0 for false, 1 for true, or empty meaning no tickets.

The following gives me the NaN warning when there are 0 tickets for both sides of the express.   I can't figure out a syntax that would work with this to get around the NaN's.   Anyone have an idea?

=(Count(IIF(Lookup(Fields!im_id.Value,Fields!im_id.Value,Fields!im_is_breached.Value,"MTD")="0",1,Nothing)))
/
(Count(IIF(Lookup(Fields!im_id.Value,Fields!im_id.Value,Fields!im_is_breached.Value,"MTD")="1",1,Nothing))
OR
Count(IIF(Lookup(Fields!im_id.Value,Fields!im_id.Value,Fields!im_is_breached.Value,"MTD")="0",1,Nothing)))

An example of the complete table results are below.   This express is used in the total row and % Met column, you can see when MTD and Breached are 0 it gives me the Nan but otherwise seems to work.

Group AMTD Breached% Met

Critical 000.0%
 Totals 00NaN
Group BCritical 10100.0%
High 220.0%
Low 000.0%
Medium 000.0%
 Totals 3233.3%

  

page break after certain number of group display

$
0
0

how can I do a page break after displaying 10 group collapsed lines ?

i am showing collapsed groups and want to page break after displaying 10 group lines (in collapsed view)


How to add Dynamic SQL Pivot tables to SSRS tablix

$
0
0

Hi Guys,

I have a SQL query that uses dynamic columns using SQL Pivot. I need to add this to a Tablix in a SSRS report as a dataset.

I have add this as a SP to the dataset. But when I try to run the SP in dataset mode none of the columns are displayed.

Can I do this using a SP? I cannot use a Matrix cause my objective is to get interactive sorting enabled. On Matrix interactive sorting is not supported on dynamic column groups.

Any help guys?

Thanks

Lucki

ReportServer for External access - port forwarding

$
0
0

Good day to everyone!

I am trying to reach report on external url

http:// xxx.xxx.xxx:1122/reportserver?[reportfolder]/[reportname]

there exists port forwarding for this external xxx.xxx.xxx:1122 from internal [servername]:8080

url reservations are

               <UrlString>http://+:80</UrlString>

               <UrlString>http://+:8080</UrlString>

               <UrlString>http://+:1122</UrlString>

As I can see,  the following occurs

Browse trying to reach from EXTERNAL IP

 http:// xxx.xxx.xxx:1122/reportserver?[reportfolder]/[reportname] – about 20 second

Then url  in browser address line changes to

http:// xxx.xxx.xxx:8080/reportserver/Pages/ReportViewer.aspx?[reportfolder]/[reportname]

and timeout error message appears

export to PDF and Excel for same report and for same external IP works fine

Am I missing some important settings?

P.S. I’ve tried to set <Service><UtlRoot> setting in reportserver.config, but had no luck

Besides , generally speaking, does this  kind of url ([server]/reportserver/Pages/ReportViewer.aspx?) has his own (descriptive) name?

In Microsoft documentation, where they talking about URL ACCESS the url considered is [server]/reportserver

, but in another sources – (like stakeoverflow etc) authors often mention  ([server]/reportserver/Pages/ReportViewer.aspx?) as url for URL ACCESS

Can't connect to Report Server via Report Builder after installation: Insufficient rights

$
0
0

I'm new to SSRS. So my question may be easy to answer, but I couldn't find any helpful information yet.

After having installed SQL Server Express 2014, SP1 with Advanced Services and Report Builder 3 (plus Report Builder für SQL Server 2016 RC) I cannot connect to SQL Server Report Server to browse for data sources.

I don't have any data sources defined, yet. Nonetheless I should be able to connect to the Report Server, shouldn't I?

The error I get is "Unable to open or save the file. The permissions granted to the current user are insufficient for performing this operation.":

Both, Report Builder for SS 2016 and Report Builder 3 for SS 2014 show the same error when trying to connect to my Report Server.

What's wrong? What do I need to do to be able to have Report Builder connect to Report Server?


Still people out there alive using the keyboard?

Working with SQL Server/Office and their poor keyboard support they seem extinct...

Report Builder: Can't successfully connect to SQL Server 2014 Express

$
0
0

I'm new to SSRS. So my question may be easy to answer, but I couldn't find any helpful information yet.

After having installed SQL Server Express 2014, SP1 with Advanced Services and Report Builder 3 (plus Report Builder für SQL Server 2016 RC) I cannot connect to SQL Server in order to create a data source.

While the Connection Properties screen tells me that everything is fine when I'm testing the connection, I'm getting an error message when testing the connection from there.

I can't run a report preview either.

What am I doing wrong?



Still people out there alive using the keyboard?

Working with SQL Server/Office and their poor keyboard support they seem extinct...


SSRS Multivalue parameter blank issue

$
0
0

Hi,

I am working on a SSRS report having 5 parameters

1:- Parameter A -- Main

2:- Parameter B :- Cascading on Parameter A -

3:-Parameter C :- Cascading on Parameter A

 (Parameter B and C are independent of each other )

4:-Parameter D,  and E  ( independent of any other parameters )

All are multivalued parameters

Requirement is tablix should show the data based on

 Parameter A ,D, E  (mandatory ), Parameter B,C can be blank  .. If user selects any value out of B and C  then the tablix dataset should include in where clause else no..

The issue I am facing is , if the parameter B  is not listing anything  ( based on parameter B ), then if I click on view report, tablix is not returning any data.

It has nothing to do with my dataset query as even if In my dataset query ( I comment all parameters in the where clause )    the data is not returned..

Reporting Services 2008 R2 Script error

$
0
0

I am receiving the below error and found some articles to address; however, when I go thte web.config for reporting services I do not see<httpRuntimemaxRequestLength to increase the value.

Any suggestions on how to resolve this script error?

 

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; AskTbWIZ/5.12.2.16749; .NET CLR 1.1.4322; MS-RTC LM 8)
Timestamp: Mon, 25 Jul 2011 19:49:54 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031
Line: 5
Char: 62099
Code: 0
URI: http://reportstest/Reports/ScriptResource.axd?d=oKcQyhim5m24KuxwijyfU68K3ib7TmZZM8BeU9KsXegX4G1oAmatMqU7NKB7yiWHQXS5_PFKXR5T1C2QvclyAH57533SEpJ0ieB8oJBm4LvJLJUBKeZwqYUMKf6STt-WIPIERqFJBgqJsoRCYcCntEEqBrM1&t=5c2f384e

 


Sonya

SQL report add Memory

$
0
0

I have the followng script that get out the correct data on the record Memory. Now I what to add this value to my other report only if I do that the value will change. I want to have the correct data from the first sql statement published in the second report.
First:

SELECT

    S.ResourceID,
	S.Name0 as Name,
    SUM(PM.Capacity0)
as Memory,

    SUM(LD.Size0)
as [Disc Size],

    SUM(LD.FreeSpace0)
as [Disc Free]

FROM

    v_R_System S

    join v_GS_PHYSICAL_MEMORY PM on S.ResourceID = PM.ResourceID

    join v_GS_LOGICAL_DISK LD on S.ResourceID = LD.ResourceID

where LD.DeviceID0 = 'C:'

GROUP
BY S.ResourceID, S.Name0

Second:

select  distinct
s.Netbios_Name0 AS [Computer Name],
(select top 1 ou2.System_OU_Name0 from v_RA_System_SystemOUName ou2
where ou.ResourceID = ou2.ResourceID and LEN(ou2.System_OU_Name0) = MAX(LEN(ou.System_OU_Name0))) OU,
s.User_Name0 as [User Name],
v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
v_GS_OPERATING_SYSTEM.CSDVersion0 AS [Service Pack],
v_GS_SYSTEM_ENCLOSURE_UNIQUE.SerialNumber0 AS [Serial Number],
v_GS_COMPUTER_SYSTEM.Model0 AS [Model],
v_GS_PC_BIOS.ReleaseDate0 AS [Bios Date],
v_GS_WORKSTATION_STATUS.LastHWScan AS [Last Hardware Scan],
SUM(PM.Capacity0) as Memory,
v_GS_PROCESSOR.NormSpeed0 AS [Processor (GHz)]
from v_R_System_Valid s
inner join v_RA_System_SystemOUName ou on
(ou.ResourceID = s.ResourceID)
 inner join v_GS_PC_BIOS on (v_GS_PC_BIOS.ResourceID = s.ResourceID)
inner join v_GS_OPERATING_SYSTEM on (v_GS_OPERATING_SYSTEM.ResourceID = s.ResourceID)
 left join v_GS_SYSTEM_ENCLOSURE_UNIQUE on (v_GS_SYSTEM_ENCLOSURE_UNIQUE.ResourceID = s.ResourceID)
inner join v_R_System on (v_R_System.ResourceID = s.ResourceID)
 inner join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = s.ResourceID)
 join v_GS_PHYSICAL_MEMORY PM on s.ResourceID = PM.ResourceID
 inner join v_GS_PROCESSOR on (v_GS_PROCESSOR.ResourceID = s.ResourceID)
inner join v_GS_WORKSTATION_STATUS on (v_GS_WORKSTATION_STATUS.ResourceID = s.ResourceID)
 inner join v_FullCollectionMembership on (v_FullCollectionMembership.ResourceID = s.ResourceID)
 left  join v_Site on (v_FullCollectionMembership.SiteCode = v_Site.SiteCode)
 inner join v_GS_LOGICAL_DISK on (v_GS_LOGICAL_DISK.ResourceID = s.ResourceID) and v_GS_LOGICAL_DISK.DeviceID0=SUBSTRING(v_GS_OPERATING_SYSTEM.WindowsDirectory0,1,2)
 left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP on (v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = s.ResourceID)
 Where v_FullCollectionMembership.CollectionID = @CollectionID
group by s.Netbios_Name0, ou.ResourceID, s.User_Name0, v_GS_OPERATING_SYSTEM.Caption0, v_GS_OPERATING_SYSTEM.CSDVersion0, v_GS_SYSTEM_ENCLOSURE_UNIQUE.SerialNumber0, v_GS_COMPUTER_SYSTEM.Model0,
v_GS_PC_BIOS.ReleaseDate0,
v_GS_WORKSTATION_STATUS.LastHWScan, v_GS_PROCESSOR.NormSpeed0, s.ResourceID
Order by s.Netbios_Name0


Returning SharePoint People Picker with multiple values

$
0
0

(Note. I'm using Report Builder on a SP13 site, so my SQL knowledge is very limited)

I have a SharePoint list as my dataset.  I have a People Picker field that allows multiple selections.

I want to perform two actions:
1. Return all names from the people picker either comma delimited, or with a line feed.
2. Provide a count of all names/entries from that field.

Issues:
In Report Builder preview I can see all of the names, but I also get the SharePoint user ID appended to the name:
eg 32;#Smith, John J;#40;#Doe, Jane J;#15;#Smith, John S

In SharePoint when I publish the report, I only get the first name, but no ID appended:
eg Smith, John J

As for count, no luck with any method.

I have tried Join, LookupSet, Count, Sum with a Count and several other Google iterations I found to no avail.

Any advice or suggestions welcomed.


Tim

Report Server URL- Authentication popup

$
0
0

Hi,

We do have a strange issue with the report server with Windows authentication enabled. (SSRS 2008 R2, hosted in Windows 2008 server).

The report server url opens for me in my local PC (Windows xp machine) and from another Virtual server running in Windows 2003 server. If we try access it from another windows 2008 server, the authentication window was been popup  and request user id/ password. Even though we supply it, it keep on request the same. we did not have the clue on this issue. Please assist us if you were aware of this.

Thanks, Jey


--Jey
Viewing all 10045 articles
Browse latest View live


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