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

Step by step adding parameters

$
0
0

I am trying to add 4 parameters to a report.  I have 2 questions:

1) Once the parameters are created in the Design window, is there another step or am I done?

2) I have created 2 of the parameters.  The second one is not working properly because the drop down list shows duplicate values (i.e. one value for each record, instead of one instance of each value.).  How can I fix this?

I've been searching online but haven't found answers to these questions yet.

Thank you very much!


Filter Dataset based on submitted Parameter

$
0
0

Hello,

I'm fairly new to SSRS so please bear with me. Ive created a chart to display data retrieved from a CRM FetchXML query. This is all working well and I am able to populate my pie chart with the resulting data. Now I would like to add a Parameter that will filter the chart to only display the resulting data for the Parameter that is selected (in this case by the owner of the CRM record). My Parameter list is populated with my list of users and I have added a filter that sets the 'owner' field to be equal to the Parameter. However, when I run the report I get an error stating 'Failed to evaluate the FilterValue'. I suspect this is because it never gets to the point where I can select the user from Parameter pull-down.

I know I'm missing a step here or setting something in the wrong order.

Where to Put the parentheses in this formula

$
0
0

I was hoping someone could help me out with this formula below. I'm either missing a parentheses or have too many and or they may be in the wrong place.

Ignor the true and false words as they were just to help me find the correct place for the parentheses.

Thanks for your help as this is driving me crazy.

Mike

iif(Fields!ORDERTYPE.Value = "AR", TRUE IIF(Fields!SHIFT.Value = "1st Shift", TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"ARFIRSTSHIFT")),

FALSE IIF(Fields!SHIFT.Value = "2nd Shift", TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"ARSECONDSHIFT")), FALSE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"AR3RD")))), FALSE iif(Fields!SHIFT.Value = "1st Shift", TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"NonARFIRSTSHIFT")), FALSE iif(Fields!SHIFT.Value = "2nd Shift", TRUE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"NonARSECONDSHIFT")) FALSE Code.HrsMinSec(Lookup(Fields!PICKDATE.Value,Fields!DATE.Value,Fields!SECONDTIME.Value,"NonAR3RD")))))


How to change datasource dynamically in rdl file based on some condition ???

$
0
0

Hi 

Can any one help me how to change datasource dynamically in rdl file based on some condition ?

I have two datasources in my rdl file and i am using shared datasource as datasource in it.Based on some condition i want to change datasource dynamically. Pls suggest


shravan

Creating a report from a web service

$
0
0

Hi all,

I must say upfront that I know little about web things and web services, but I have a need to create a report from a web service

I have a web server that I can send a request and it returns back to me a bunch of XML.  So if I type in an address something likehttps://myweb.xyz.com/r25ws/servlet/wrd/run/spaces.xml it prompts me for a username and password, and once supplied spits back a bunch of XML.

So, Is there a way to set this up as a data source so that I can create reporting services reports out of these types of data sources?

My humble apologies if this is a stupid question.  SQL seems to be far easier.. but the world seems to be moving to these web data sources, so I am trying to figure out how to connect to them and provide menu based reports for them in Reporting Services.

(I also wonder how you join several of these web services to get more complex information)

SQL Dude

Convert seconds to nearest 15 minutes

$
0
0

I have data in seconds and need to convert the seconds to nearest 15 minutes.

Does anyone have an SSRS expression for this?

Thank you,

Michael


Use as Windows credentials when connecting to the data source

$
0
0

Hello,

What does this settings do in addition to Stored Connection specification for the data source?

Thank you

Textbox Properties Question

$
0
0
I'd like to Create a Drill through or Hyperlink which displays the the same report but filtered according to the link.  For example North, South, East, & West will return 4 reports with the same information filtered by the links.  Click the North Link and the same report appears with the North information so forth and so on.  Please Help!  I cannot figure this one out.

VB code in RDL file to find length of an array

$
0
0

Hi

Can any one help me find how to find length of an array in vb code in rdl file??


shravan

How to implement user Impersonation when calling reports.

$
0
0

The short story... We need to be able to access reports using an impersonated account from our application.

The longer version...

We received a mandate that we need to tighten report security down to the point where access is defined all the way down to the report level, by user.

The decision was made to control report access though our primary application (as opposed to the Report Manager) and to use a service account with "Browser" access to return the called report.

The problem is that we are having a hell of a time getting it to work...

Well... We sorta had it working, using the Microsoft Report Viewer for ASPX (v3.5), using version 10 of the Microsoft.ReportViewer.WebForms, Microsoft.ReportViewer.Winforms and Microsoft.ReportViewer.Common assemblies...

<rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" ProcessingMode="Remote" AsyncRendering="true" SizeToReportContent="false" Height="825px" />

But the performance was horrible so we had to go back to calling the report via URL.

If anyone's been able to either, call a report using impersonation through IE OR, failing that, knows what parameter setting need to be tweaked in the ReportViewer control to get good performance, please let me know. Any ideas or assistance would be greatly appreciated.

Thanks in advance,

Jason


Jason Long

Conditional page break depending on page location

$
0
0
 I want to put a row with a page break in a report, which will be "visible" only if that row's location is more than a certain distance from the top of the page. There are a couple of ways I could do this; unfortunately, I can't figure out how to do either of them. (1) Determine the row's Location/Top property at runtime and show the page break if it is greater than a given value. (2) The length of the report varies because of two subreports with a varying number of rows. If I could capture the number of rows in each subreport, and send that value back to the main report, then I could show or hide the page break if the total rows exceed a certain number. Is there a way to capture either of these values at runtime?

Optional parameters

$
0
0

I have a query that I built using BIDS query builder.  I have two sets of parameters (ProjectStart/End and PrDatefrom/To).  I want to allow the user to fill in one only set of the parameters (either search by project range or production date range) or all parameters if they want.  How do I modify my query to use the parameters only when they are available and ignore them when they are null? I'm using SQL2005

SELECT        *
 FROM            ProductionRequest AS PR INNER JOIN
 ProductionRequest_Reports AS REP ON PR.ID = REP.ProductionRequest_ID INNER JOIN
  Projects AS P ON PR.Project_No = P.ProjectNo INNER JOIN
 Reports AS R ON P.ProjectID = R.ProjectID AND REP.Report_ID = R.ReportTypeID INNER JOIN
ReportDetails AS RD ON R.ReportID = RD.ReportID INNER JOIN
SHPOLtrFindingOfEffect AS SF ON RD.FindingofEffect = SF.LtrID
WHERE        (PR.Project_No >= @ProjectStart) AND (PR.Project_No <= @ProjectEnd) AND (REP.Report_ID = 4) AND (REP.ElecFinal_Num <> 0) AND  (CONVERT(DATETIME, REP.ElecFinal_PRDate) >= @PRDateFrom) AND (CONVERT(DateTime, REP.ElecFinal_PRDate) <= @PRDateTo)


Milissa Hartwell

How to remove NaN% value and replace with 0% when there is no value

$
0
0

I have this expression in my SSRS report. I use Business Intelligence Development Studio 2008

I have coded value values of those field and they coming from code. Calculation works fine but I am getting NaN% instead of 0% when there is no value.I need to display result as 0% when there is no value.

= IIF(String.IsNullOrEmpty(Fields!7DaysMADischarge.Value),"", CStr(Math.Round((Fields!7DaysMADischarge.Value / Fields!MADischarge.Value)*100)) +"%")

Any help will be very much appreciated. Thanks in advance.




Msg 468, Level 16, State 9, Procedure CopyOfspnGetRoadmapBenefitSummary, Line 67 Cannot resolve the collation conflict between "Latin1_General_CI_AS_KS_WS" and "Latin1_General_CI_AS" in the equal to operation

$
0
0

Hi All,

I am trying use the split function to break the multi parameter values and passing into Stored proc.

I am using below where statement in the query:

AND P.ProjectName In (Select item from dbo.Split(@ProjectNameParameter,','))

Unfortunately, I am getting collation error as below:

Msg 468, Level 16, State 9, Procedure CopyOfspnGetRoadmapBenefitSummary, Line 67 Cannot resolve the collation conflict between "Latin1_General_CI_AS_KS_WS" and "Latin1_General_CI_AS" in the equal to operation. FYI, this is working in case of single ssrs input parameter.

As part of troubleshooting, I have tried to apply COLLATE Default_Database in Join/Where/comparison place but doesn't help me.

Any pointer will be really appreciated. cheers.


Warm Regards Badal Ratra

SQL Server 2012 Reporting Services - Data Bars Not Displaying in Report Viewer

$
0
0

Hi All,

We recently upgraded to SSRS 2012 (from 2008 R2). And, we are using Report Viewer 2010 for displaying the reports on our website.

Most of the things are working find except for the reports where we use Data Bars.

The problem is that the Data Bar related image is NOT being displayed. I even looked at the HTML and found that the 'SRC' value is empty ("").

Using Firbug, I also noticed that the request to the following URL was aborted.

ttps://Example.com/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=10.0.30319.1&Name=Microsoft.Reporting.WebForms.Icons.SplitterHorizCollapseHover.png

Is this some configuration problem that we need to fix? Please help.

Thanks in Advance,

Prawin


Prawin



Passing Parameter in drill through

$
0
0
How do we pass a parameter on click in SSRS...For eg. if we have to drill through from one report to another report and we click on a year 2012,the second report should show the results related to 2012...i am using SSAS cube as my data source...

Data Dependent Worksheet names in SSRS 2005 and 2008

$
0
0

Hi All,

How do i acheive Data Dependent worksheet names , when exporting to an excel in either RS 2005 or RS 2008. I know it is straight forward in '2008 R2'.  Please share the solution if any one has already implemented this.

Regards

Chaithanya M


Regards Chaithu.. If it is usefull,Mark this as Answer.


SubTotals in SSRS

$
0
0

Hi,

I have got requirement to generate a report with subtotals.

Anyone please help me in finding subtotals for only two records.

I have table with two columns

Col1 Col2

servicefare50

tax20

vat30

busfare200

Now i need to find the subtotal for only two rows vat and busfare..

Please help me to do this...

Thanks in advance....

Table and image tag as value of Placeholder in SSRS reports

$
0
0

I want to set the text of the place holder having HTML content in SSRS reports. Even if i set the HTML - Interpret HTML tags as styles checkbox on for the textbox it does not work for table tag as the content is not displyed in tabular format as specified.

Any idea how i can implement it? Same applies to images coming as value for place holder. Can't we pass the image tag as value of placeholder in ssrs report.

Thanks in advance.

XML Data source location how to find

$
0
0

Hello every one

My question is a report is  not returning the data correctly so happen to see what is data source but the data source is xml.link is some soap.something

my question is how to find the that webservices hosted server r . webservice is getting data from which server

Regards

Krish

Viewing all 20764 articles
Browse latest View live


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