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

Querying multiple servers within one report

$
0
0

I have a report requirement (SSRS 2012) that produces a summary of the same information gathered from different source systems. These have individual connection strings and include several third party products.

At this time, the information is being manually input into an Excel worksheet that shows a summary row for each account, with all of the disparate systems on one worksheet.

I've already explained to the user group that I cannot incorporate the different sources into one worksheet. The question I need to answer is whether or not I could create separate datasets and place different tablixes (same layout, different datasource) after one another with a page break and then export to Excel. The end goal would be to display each source system on a worksheet within a common workbook. Is this a possibility?

If I can overcome this hurdle the only issue is getting the user to understand that 38 columns wide is not going to translate well into one printed page (per his request). For that, I think I'll let a visual do the work of explaining the problem and let him print out the too-wide report and try to read it without a magnifying glass. :-)


PDF rendering extension

$
0
0

Is it possible to replace on a SSRS 2008 instance the PDF rendering extension with the counterpart in SSRS 2012 or somehow install them side by side?

I just notice that exporting a report to PDF in SSRS 2012 the strike-through decoration is correctly rendered whilst in SSRS 2008 is missing altogether.

I don't think it's a missing font issue because:

- I have the same report deployed to the 2 instances, SSRS 2008 & 2012, that run on the same machine.

- While viewing the reports in the report manager (HTML rendering) the strike-through effect is correctly rendered on both instances.

- Exporting to PDF will correctly rendered the strike-through text only in SSRS 2012

Of course we could upgrade the existing SSRS2008 instance but just wondering if it is possible to somehow work around this issue of the 2008 service.

Thanks in advance!


Back to Parent Button Disappears Upon Deployment

$
0
0

I am using VS 2008 R2 (.NET Framework 3.5 SP1) and am having the following problem: When I preview a drilldown report in VS, I can see and use the "Back to Parent" button without issue. However, when I deploy the report to the Report Server, the button does not appear. I have reviewed all of the available links, but cannot find a satisfactory answer. Is this a setting on Report Server? Or somewhere else?

Thank you in advance for your help!

IN(Item, Set) in a calculated field dataset ssrs 2008

$
0
0

hi.
i am trying to create a calculated field in a dataset where i need to use the experssion IN(item, set) to test if 'Covergate Type' field is equal to one of the below values:
Cargo
Contractors All Risks
Erection All Risks
PI A&E Single Project
Single CGL

Ive tried to write IN(Coverage Type,"Cargo Contractors All Risks","Erection All Risks","PI A&E Single Project","Single CGL")
but it is not working.
can any one help me how to write the syntax of IN expression


thanks

Unexpected Parameter Value Behavior

$
0
0
I have a report that includes City as a search parameter. The City parameter is deployed with =" " as the default value. When I deploy it to the server and then run it, it mysteriously inserts the name of the city associated with the user login (also a parameter passed to the report) in the City parameter field and uses it as the default.  I have searched every setting, but can find nothing that would cause this behavior. Any ideas?

Not able to access Reports outside of the machine

$
0
0

I am new to reporting service so this may be basic question .

Environment : Installed a SQL server 2012 on a VM(server 2012 OS) with local administrator account  & created a SQL reports & deployed successfully .Later joined the VM to a domain and given required permissions to domain user(in Report server URL) to view the reports URL.

Problem: I am only able to access reports URL(<machineName>:8081/Reports) locally on the machine but I am not able to access  URL from another machine (which is also on the same domain)  ,getting error "Page can't be displayed".

When I tried to ping the machine ,it is responding properly so DNS might not be an issue . What am I missing here ?

Any pointers to solve this issue ? What does "page can't be displayed error" means ?

  



Data source configuration in SSRS 2005 Report Manager 500+ reports

$
0
0

Hi,

I am just looking for the most convenient way for the below scenario:

I have deployed 500+ reports (only RDLs and not data sources) to the SSRS 2005 report manager.

Now coming to the configuring the data sources for this reports (different reports are using different data source) how do I go about creating data sources in the fastest manner?

Please advise.

Thanks

Creating a report base for parameters and actual report

$
0
0

I'm attempting to use SSDT 2012 to do query a Data Source to create a result set (used as a data set) that has distinct rows with every column that I would use for parameters or for report content. From that result set I would make new datasets as the basis of my (many) parameters as well as the query that constitutes the report itself.

Is there a way to accomplish this in SSDT? My primary motivation to do this is for performance's sake: ping the database once for all of the data I'd need and use the local result set as a source of data for subsequent queries. This approach is ideally going to replace the current one: ping the database for each (10+) parameter's available, non-repeated values as well as pinging the database for the report which runs off of these parameters.

-DJM


Data Driven Subscriptions

$
0
0

I'm trying to fiind some useful titorials/explnations on data driven subscriptions and am having no luck. THe official Microsoft "tutorial" is written at a 100,000 foot level.

http://technet.microsoft.com/en-us/library/ms166561(v=sql.105)

Is there some place I can find an actual detailed walk through of the process of creating data driven subscriptions? The above website provides little to no detail on the components, requirements, concepts behind data driven subscriptions

If anyone can point me towrds some decent literature, that would be great!

Thanks!!


A. M. Robinson

Extra rows created when exporting a matrix to CSV (unpivot process)

$
0
0

My company is developing a series of SSRS 2012 reports where we pivot rows to columns for display in the report viewer, but want the data unpivoted (default behavior) when a client exports the report to CSV. This seems to work fine except that extra NULL value rows are generated in the unpivot that is part of the export.

Here is an example:

Dataset

Col1| Col2 | Col3

a| 1 | $5.99

a| 2 | $4.25

b| 1 | $8.99

Pivoted in Report Viewer

Col1| 1 | 2

a| $5.99 | $4.25

b| $8.99 |

Export to CSV (NOTE THE EXTRA ROW AT THE END)

Col1| Col2 | Col3

a| 1 | $5.99

a| 2 | $4.25

b| 1 | $8.99

b| 2 | NULL

My question is whether this is the expected behavior or a bug in SSRS CSV rendering? Is anyone aware of a workaround?

I did notice that in the MS documentation regarding CSV rendering of matrices it says, "Renders by expanding the matrix and creating a row and column for each row and column at the lowest level of detail. Subtotal rows and columns do not have column or row headings." So maybe that answers my question but I am hoping there is a workaround.

Thanks,
Andrew

Showing Details row and Group row in Single Line

$
0
0

I have 1 detail row 3 different groups in my Report like Group1, Group2 & Group3. If I preview the report the group details are displayed in 3 different lines one by one as follows

Details

               Group1_Name
                                        Group2_Name
                                                                 Group3_Name 

                                                                            



But I would like all 4 sections be displayed in a single line like

Details Group1_Name    Group2_Name     Group3_Name

How to do I achieve this SSRS 2008?

Multiple dataset error

$
0
0

I created a simple 1 table report for SSRS 2008R2, runs fine.

I then added a 2nd dataset to the report for label translation.

When I set the report title to =First(Fields!Title.value, "translation"), get this error:

The value expression for the text box 'textbox1' refers directly to the filed 'Title' without specifying a dataset aggregate. When the report contains multiple datasets, field references outside of a data region must be contained within aggregate functions whick specify a dataset scope.

Any ideas what the hangup is?

Where is the SSRS BrightPastelle Color Template File located with the Complete Color Names of 10-16 colors used

$
0
0

Where is the Where is the SSRS BrightPastelle Color Template File located with the Exact Color Names used?

I'm looking for the specific color listing within the Palette that should include between 10 -16 specific colors.

Many thanks!


John



How to use "Microsoft.SharePoint.dll" API in custom assembly of SSRS report

$
0
0

Hi,

Recently i had following requirement:-

  • Have to create a custom assembly (say MyAssembly.dll) for SSRS report (say MyReport.rdl)
  • Inside the code of "MyAssembly.dll" I have to use API of "Microsoft.SharePoint.dll" like creating SPSite, SPWeb etc object based on some sharepoint site url. Below is a method called "GetReportTitle"as shown below
  • namespace SSRS.ResourcesEx
    {publicstaticclass MyClass
        {publicstaticstring GetTitle()
            {string strTitle = string.Empty;try
                {
                    SPSecurity.RunWithElevatedPrivileges(delegate()
                    {using (SPSite site = new SPSite("http://<ServerName>/Site/"))
                        {using (SPWeb web = site.OpenWeb())
                            {
                                 strTitle = web.Title;
                            }
                        }
                    });
    
                }
                catch (Exception ex)
                {
                    strTitle = ex.Message + "-----" + ex.StackTrace;
                }return strTitle;
            }
        }
    }
  • MyAssembly.dll is added to GAC so that it is fully trusted.
  • Also i have applied "[assembly: AllowPartiallyTrustedCallers()]" to MyAssembly.dll
  • Report"MyReport.rdl" have reference of MyAssembly.dll
  • Inside report MyReport.rdl i have a chart whose Title is based on a static method "GetReportTitle" that is present inMyAssembly.dll.
  • However when i try to access the report the chart title displays the error message for sharepoint security error as shown below
  • This is because i am using Sharepoint API in  GetReportTitle.If I comment code of sharepoint API in method then every thing works fine.
  • I think this error is related to code access security policy.
  • But i am depolying the custom assembly in GAC so that it is fully trusted.

Do i need to make any entry in "C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\rssrvpolicy.config" file of report server ?

Please help me if any body have any idea !

 


Deepak Kejriwal

Epression to choose one text value or another? Report Builder 3.0

$
0
0
I have a report that has two default values of either Issued or Canceled on the "Status" field.  I tried doing an ASC on tablix properities but that didn't work.  I would like to be able to choose either issued or canceled.  Note, I already have a parameter in place for date value. 


Incorporate two queries from the same table.

$
0
0

Hello,

I would like to extend the parameters available by adding a few more columns into a query.

I've tried to union join them but they are so different that it may not be possible to have a count query filtered by further columns but I would like to ask the question, and very much appreciate a push in the right direction to achieving this.

The queries are below.

Select i.OrganizationUnitID, i.OwnerTeam 
 from Incident i
	where i.OrganizationUnitID  in (@OrgUnit)
	and i.OwnerTeam in (@Team)

To a count query:

declare @st_date datetime;
declare @en_date datetime;
declare @days int;

set @en_date = (@en_datein);
set @st_date = (@st_datein);

select 
	 iast.incidentcount
	,icst.incidentclosedcount
	,@st_date startdate
	,@en_date enddate
from
(select 
	COUNT(*) as incidentcount
	from incident i
	where i.CreatedDateTime >= @st_date
	and i.CreatedDateTime <= @en_date
)as iast
,(select 
	COUNT(*) as incidentclosedcount
	from incident i
	where i.ClosedDateTime >= @st_date
	and i.ClosedDateTime <= @en_date
	and i.Status = 'Closed'
)as icst

If this isn't easy, I would be interested in hearing what the professional method would be.

Thank you so much.

Filter Textbox Value

$
0
0

can you help me guys..

i just want to put an expression on my textbox that will count my category "Staff" and "Labor" from Employees

in textbox1 it has a value Staff and textbox2 is blank and i want to put a expression on it.

the expression should be like this

=IIF(ReportItems!Textbox1.Value = Fields.Category.Value),Count(Fields.Employee.Value--CountOfStaff),Count(Fields.Employee.Value--CountOfLabor))

RESULT:

textbox.Staff  |   20  

texbox.Labor  |   10

Thanks in advance


Issue with Excel and Word Export - SSRS 2008

$
0
0

Hi there,

          I have created fairy simple report having a table in body section and Header, Footer. I have set the Report Properties

Orientation - Landscape

Paper Size - Custom

Width - 11in & Height - 8 in

Margins - Left 0.25 in , Right 0.25 in, Top 0.5 in, Botton 0.5 in

Issue NO 1: When i export the report to Excel, it takes margin as Left 0.75 in , Right 0.75 in, Top 1 in, Botton 1 in, because of this some part of my Report is cut. what should i do to keep margins of Excel as per margins set in RDL.

Issue No 2: In Footer excel shows Page 1 of 1 for all the pages

Expression used :

=

 

"Page"& Globals!PageNumber &" of "& Globals!TotalPages;

Issue No 3: when i export the Report to word, it does not consider landscape and show only middle part of report, cut rest of the report data.

Urgent help needed.

thanks,

Sadaf

Cannot delete a data driven subscription

$
0
0

Environment:  SharePoint 2010 and SQL Server 2008 R2 with SSRS running in integrated mode

When I delete data driven subscription "X" what ends up happending is data driven subscription "Y" actually is the one that gets deleted.

Also, I have a lot of orphaned, phantom subscriptions based on the results of the following query versus what is in the SharePoint subscription list.

I've seen some threads whereby you run queries like the one below and do some manual deletes in the subscription table, so I guess I'll flail around with that.

My question though is:  has anyone else tried deleting subscription "X" and SharePoint proceeds to delete subscription "Y"?  Odd behavior to say the least.  Also, the reason why I want to delete subscription "X" is that one phantom subscription keeps running, and I can't stop it since it does not show up in the SharePoint interface.

SELECT
            d.description
            , LastRunTime           
            , laststatus
            , b.name AS JobName
            , e.name
            , e.path
            , a.SubscriptionID
            , eventtype
            , LastRunTime
            , date_created
            , date_modified
    FROM ReportServerIntegrated.dbo.ReportSchedule a JOIN msdb.dbo.sysjobs b
            ON cast(a.ScheduleID as varchar(200)) = b.name
            JOIN ReportServerIntegrated.dbo.ReportSchedule c
            ON b.name = cast(c.ScheduleID as varchar(200))
            JOIN ReportServerIntegrated.dbo.Subscriptions d
            ON c.SubscriptionID = d.SubscriptionID
            JOIN ReportServerIntegrated.dbo.Catalog e
            ON d.report_oid = e.itemid   
    where
      e.Name = 'FPDS Checks by AutoAlert with Exclusions.rdl'
order by d.lastruntime

Hide blank rows in SRSS 3.0

$
0
0

Hi

I have designed a report for our Insolvency department which shows the disbursements on the job in different rows.

This has been working fine however now they have added more codes so I need to add more rows however I still want it to fit on one page.

A lot of these new codes won't be on every job so I was thinking I could have all the rows configured in the SRSS report and then have the report automatically hide them once the report is run and it recognises no data is coming through for that row.

At present each row comes from a different dataset and I show the sum of the amount field so row 1 would be like below

=Sum(Fields!Amount.Value, "DisbAdvert")

Row 2 as follows

=Sum(Fields!Amount.Value, "DisbStorage")

Row 3

=Sum(Fields!Amount.Value, "DisbPost")

Is there a way to have it so if row 2 was null it would hide it and shunt all the row up leaving no gaps?

I have done a Google search and found if I create a table and go into Row Group Properties and then Filters I can enter this fx

=IsNothing(Fields!Amount.Value).

Then false in the = value

This works however I don't know how to then hide/show the other rows that are in different datasets to the tablix itself if that makes sense?

I looked into the Row Visibility option and clicked on show or hide and used the following expression

=IsNothing(Fields!Amount.Value, "DataSet3")

But I didnt know where to insert the True/Falso values which might be all I need?

Any help appreciated.

:)


Cheers Chris

Viewing all 10045 articles
Browse latest View live


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