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

Help with Average calculation in SQL Query

$
0
0

Hi,

I am looking for some help on a SQL query in relation to SLAs for a service desk application please.

I have the query below in SQL Report Builder which pulls out the Incidents that have met the SLA level for the month of June. 

The help I require is to perform a count of all the tickets for the month in question and then find the percentage of those for that month that are within their SLA. It looks like I need some form for subroutine which I have no experience of and seem to be failing with everything I have tried:

select distinct 
ImIncidentTicket0.ProcessId as [Incident.ProcessId],
ImIncidentTicket0.SubmittedBy as [Incident.SubmittedBy],
sla1.SLAStatus as [SLA.ResolutionLateStatus],
sla1.LateDate as [SLA.ResolutionLateLateDate],
sla1.CompletedDate as [SLA.ResolutionLateCompletedDate]
FROM
ReportProcess as Process with (NOLOCK) inner join (SELECT s.ReportLogProcessID, s.[Status] SLAStatus, s.StartDate, s.LateDate, s.CompletedDate, s.PausedDate, s.PausedBy, s.PausedUntilDate
FROM
dbo.SLAProcess s WITH (NOLOCK) inner join dbo.SLAConfig c WITH (NOLOCK) on s.SLAConfigID = c.SLAConfigID
WHERE
c.SLAMilestoneID='152E9002-C700-4DCF-8A05-557B164AE37F' 
AND c.SLAEscalationID<>'6914F10D-55F3-46DA-AE37-76218308A5E7') as sla1 on ((sla1.ReportLogProcessID = Process.ReportLogProcessID)) inner join ImIncidentTicket as ImIncidentTicket0 with (NOLOCK) on ((ImIncidentTicket0.ProcessId = Process.ReportProcessID))
AND DATEPART(Month, Process.ProcessStarted) = 6 
AND DATEPART(Year,Process.ProcessStarted) = 2018 
AND sla1.SLAStatus = 4 
AND ImIncidentTicket0.SubmittedBy <> 'user@conmpany.com'
ORDER BY [Incident.ProcessId]




Omit last page break rectangle

$
0
0

Hi, our report consists of several detail textboxes and a tablix all nicley lined up in a rectangle. The page break is set in the rectangle to END. Which also works fine. However, there is always an empty page (apart from the footer that is printed on it) at the end of the report - regardless if there are 1 or 20 pages. 

How can we stop the last page break?

Thx.

Uli

 

SSRS Average function

$
0
0

Hi,

I have created one report in SSRS in which there are multiple tags.

Each tag can  have multiple values.

I need to populate individual tag values average for each and every record.

Example:

TAGS VALUES

A    100

A    250

Result: 350/2=170

In my case its bringing only latest value for tag A i.e 250

Please help to achieve our requirement!

HOW to enable HSTS in SSRS SQL Server 2014

$
0
0

I've seen a lot of information on enabling HSTS in SSRS 2014, but nothing concise that indicates where the code needs to go.

I've tried plugging it into the web.config for the instance, the RS.config, etc and I can't seem to get it to work.  It's either disregarded, or breaks SSRS.

Is anybody willing to hold my hand and tell me precisely where I need to insert the code in my configuration to get HSTS to work?  It is a hard requirement for me and I'm finding my research to be circular and/or dead-ends.

Much appreciated - this is my first post in the SQL world ;

Error when adding a Data Source to SAP HANA along with a Data Source to SQL Server on the Same Report

$
0
0

Hello,

I am trying to build a SSRS Report and it needs to get data from both SQL Server and SAP HANA.  First, I created an ODBC Connection to SAP HANA and the connection works and I was able to view data in SSRS From SAP HANA.  Then, I added a SQL Data source to get data for another Tablix and all of a sudden the SAP HANA Connection doesn't work and I am getting the following error.  Has anyone ran into this issue or any workarounds?

Thanks in advance.

SSRS-HANA-Error Screenshot

Parameters in an SSRS dataset against an API?

$
0
0
Hello, all.  I'm creating a report against an in-house API.  To query the API we use the:
<Query>
       methods, parameters, etc
</Query>
format and it works admirably well as long as the parameter values are hard-coded.  The problem is, this is a report and would be pretty useless if it only returned what was coded when it was created.

So far, I have had absolutely no success substituting a report parameter in the dataset definition.  When I attempt it the report returns the message “An error has occurred during report processing.”  Since I'm currently in development and am running the report in Visual Studio, the fact that the error appears in the report pane and not in the Visual Studio Error List leads me to believe the problem is with the way the dataset communicates with the API via the datasource.
I found a TechNet article (Reporting Services: Using XML and Web Service Data Sources), which states:

XML Data Provider Query Language
The query language supported through the XML data provider resembles the XML Path language (XPATH). However, there are both syntactical and behavioral differences between the two languages. Perhaps the most notable difference is the lack of querying and filtering support. For a complete description of the query syntax, see SQL Server Books Online.

It appears to me that it is saying parameter substitution doesn't work in the XML data provider.  I hope someone tells me I'm wrong.

I've successfully created the entire dataset command text, with the correct parameter values, in a report parameter but I can't figure out how to make the dataset use it.

Does anyone have any suggestions?

Thanks.
Don

Testing Report access, can I log in as some one else or as a group?

$
0
0

using Report server 2008.  I am trouble shooting a report deployed to the report server.  They belong to a windows group.  Can I test by logging on as them?  So I don't have to keep asking them to "try now".  I would like to know for sure things work before I bother them.  Especially if it takes a few tries.

Thanks,

Mike


Displaying fields problem - SQL Reporting Services

$
0
0

Hello, 

I am trying to access to a SQL Server Reporting Services using Chrome, but I cannot visualize some of the fields to insert data. Using Chrome, I got realize that there is several error in th scripts. See: 

Failed to load resource: the server responded with a status of 403 (Forbidden)
ScriptResource.axd:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
ScriptResource.axd:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
ScriptResource.axd:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
ScriptResource.axd:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
WebResource.axd:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
Reserved.ReportViewerWebPart.axd?OpType=Resource&Version=11.0.2100.60&Name=ViewerScript:1 Uncaught ReferenceError: Type is not defined
    at Reserved.ReportViewerWebPart.axd?OpType=Resource&Version=11.0.2100.60&Name=ViewerScript:1
RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:77 Uncaught ReferenceError: Sys is not defined
    at RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:77
RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:449 Uncaught ReferenceError: $get is not defined
    at ResizeRSViewerPage (RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:449)
    at RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:466
RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:477 Uncaught ReferenceError: Sys is not defined
    at RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:477
RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:516 Uncaught ReferenceError: Sys is not defined
    at RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:516
3RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:449 Uncaught ReferenceError: $get is not defined
    at ResizeRSViewerPage (RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:449)
    at onresize (RSViewerPage.aspx?rv:RelativeReportUrl=/ReportesPortal/GaleriaBusqueda/Certificaciones General/Certificacion Personas.rdl&rv:HeaderArea=None:18)

Please help. I really need to access to those files. 


Formula error within a report

$
0
0

This existing reports seems to have an error where hours aren't being placed into the correct place. 

As you can see in the table there is no data in 4 of the milestones but upon digging in to the data there should be. The only thing The only thing I've noticed is that the milestones that are showing as blanks all have the same dates earlier in the report. The Release Case Magazine is 2/26/2018 and the following three are the same date. Then Mech Assembly Start 3/19/2019 and that one is showing up. 

I'm sure this isn't enough information, but I'm just kind of wondering where to look to try and solve this issue. Here is what the formula for the reg hours column:

=Sum(iif(Fields!Rework.Value = 1, 0, Fields!Hours.Value))

SSRS 2016 portal Report and folder name cut

$
0
0

Hello, 

In SSRS 2016 Portal, folder and report names' last characters are cut/hidden and do now show full name for some items. 

For example: Folder name Student Success Teacher Or DRA Junior School Report. 

r goes missing (hides beneath the elipsis ...) in Student Success Teacher. ort goes missing DRA Junior School Report. 

Can someone please try to create these folders on your environments and confirm if this is only me having this issue? Or It is because of CSS from Microsoft? Please try with exact names. Even a letter of CAPS or no caps makes difference in these cases.

I have tried above in more than two environments and we have same issue. 

Thanks,

Ved

SSRS – Recursive Sum did not provide the desirable results at the sub-grouping level

$
0
0

(I use the SSRS 2012 version)

I have been working on the SSRS report for the recursive organization. I got the result working partially. Let me explain step by step.

1. The recursive levels are working fine. I got everyone listed with correct hierarchical levels.

2. “Total Hours” column provides the correct numbers.

Example: Joseph has the result of 3,609.00 in Total Hours.

The result comes from the direct reports: 285.25 (Brad’s team) + 235.50 (Brian’s Team) + 244.50 (Garth’s team) + 1,901.50 (Patrick’s Team) + 203.00 (Timothy’s Team). This comes up at: 2,869.75 hours.

Then, on Joseph’s line -> that’s hours of his direct reports:

So, we add: 80.25 + 526.5 + 3+ 129.50 = 739.25

All combined to: 2,869.75 + 739.25 = 3,609.00

3. On the sub-level, Patrick’s team has David and Hart as his direct reports and each direct report has some team members. 

For example: Hart: He has two direct reports,

Jo and Thomas and both also has sub ordinates in each team.

However, the total hours for Hart are 809.25, which are from: 174.00 hours for Jo and 397.25 hours for Hart. Make the combinations of: 571.25 hours. 

Then, Jo and Thomas each put 99.75 + 137.25 + 1 = 238.00 hours. Total for Hart’s team = 571.25 + 238 = 809.25 hours.

Each wrap up the hours to the next level. We have good "Total Hours" because the report sums the correct hours within the appropriate hierarchical levels.

------------------------

Row and Column Grouping:


---------------------------

Problem:

I cannot make the week column to work as in the Total Hours column. Apparently, it looked like the sum of the hours, were counted only one level apart. We would like to see the organization level, just like we see in the Total Hours column.

Another word, I would like to see total hours column broken down by each week. But I feel that, my SSRS expression was incorrect for the Week column.

The expression that I used for the total hours column is:=sum(Fields!TotalHours.Value,"bossname", recursive) 

RDL Layout and SSRS Expression: 

The expression that I used for the week column is:

=Iif(InScope("Week"), Iif(InScope("bossname"), sum(Fields!TotalHours.Value), sum(Fields!TotalHours.Value, "Week")), Iif(InScope("bossname"), sum(Fields!TotalHours.Value,"Week",recursive), sum(Fields!TotalHours.Value))) 

Can you let me know of what I did wrong on this?  

Also,one additional question:

Can we produce the charts, like stack bar charts, based on the recursive mapping? I did not see any parental mapping properties in any of the charts.

Thanks.


Multiple conditions in an IIF Statement

$
0
0

I have a table with the following fields and data:

Offense, Year, Month, Count, Amount

F 2007 January 11 $49,238.00
F 2007 February 12 $24,000.00
F 2007 March 31 $55,184.00
F 2007 April 19 $64,647.00
F 2007 May 33 $100,010.00
F 2007 June 16 $59,678.00
F 2007 July 22 $39,700.00
F 2007 August 3 $9,000.00
F 2007 September 4 $75,000.00
F 2007 October 8 $19,250.00
F 2007 November 50 $106,153.00
F 2007 December 26 $80,000.00

I have data for years 2007-2014. I am designing an SSRS report, and want to use IIF statement to return data. Using the following:

=IIF(Fields!Year.Value="2007" AND Fields!Month.Value="February", "return value of count field", "n/a")

The above does not work, it doesn't return the value of Count field, it does return the n/a.

Can someone please help?

Regards,

jr7138


jer

SSRS Sub report Parameters

$
0
0

Hi,

I have created a sub report which i need to embed in my main report at the bottom.

There are 25 parameters in my sub report, in which two are my start date and end date parameters.

When i only map start date/ end date parameters(Sub report) to --->My main report in sub report properties.

It gives me the following error:

Sub report cannot be shown/One or more parameters misting?

Do i need to create those 25 parameters in my main report in order to display it in the bottom of my main report.

If Yes,

Do we need to assign any default/available values for those parameters.

Please Help!

How to transpose some generic fields as columns and other as rows using grouping in SSRS?

$
0
0

Any help on this is greatly appreciated.

isnumeric() function in SSRS giving "#Error" when value is alphanumeric

$
0
0

I am trying to use isnumeric() function in my SSRS report expression as follows.

iif(isnumeric(Fields!Code.Value),Cint(Fields!Code.Value)>=20,false)

The expression works correctly when the value of "Code" is numeric but gives "#Error" when the value of "Code" is alphanumeric.

Please help.


DBMail Query with Rowspan

$
0
0

I've got a dbmail set-up from a query working nicely, but I'd prefer to have it formatted a bit differently using rowspan but can't find any examples of this?

Set @tableHtml = @tableHtml + '<table and header stuff blah blah' +

Cast (( select td=a,'', td=b,'',td=c,'',td=d,''
from myTable b
for xml path('tr'), type) as nvarchar(max) ) + n'</table>';

The goal is to have column a have a rowspan of 2, with b and c having td tags, but column d on the second row with a td colspan of 2

Could probably use something like '2' as 'th/@rowspan'
but, how do get the ending </tr> tag and second row beginning <tr> tag to show up properly?

Thanks,
Janet

How to set default values for a multi value parameter in SSRS

$
0
0

Hi,

I am having an SSRS report in which there is a parameter called "Employee name". Following are the requirements.

1.The report should show data for all employees if no value is selected.

2.The report should show data for particular employee(s) that are selected.

I tried something like below in WHERE clause-

where

(@EmpName in ('Default')
or
EmployeeName IN (@EmpName ))

I also set  default parameter value as 'Default' in default values section in SSRS parameter properties.I used the following query to populate the parameter values.

select distinct EmployeeName  from EmployeeData
union
select 'Default'
order by EmployeeName  

Output which i am getting-

1.When i do not select anything, query displays data for all employees.

2.When i select a single employee and uncheck 'Default', i get the data for that employee.

3.When i select multiple employees and also uncheck 'Default', i get the following error "An expression of non-boolean type specified in a context where a condition is expected, near ','."

Please provide some pointers.


Incorrect syntax when attempting to use two fields in order to create a parameter in SSRS 2008

$
0
0

I'm attempting to create a parameter for when jodrtg.fdescnum <> inmastx.fbin1. I want to be able to use this in a dropdown list selection for my report. They'll be one selection for the filtered criteria and another for all of the records to show.  I have tried a number of combinations but keep getting syntax errors near the <or =.I'd be appreciative if anyone can point me in the right direction. I've never tried using two fields to create a single parameter before.
This what I've been attempting to get as my final result.

WHERE jodrtg.fdescnum <> inmastx.fbin1 = @MoldPress


VS 2017 Report Server Project SSRS 2016 Deployment Issue - The attempt to connect to the report server failed...

$
0
0

As of Monday, 10/22/2018, I am no longer able to deploy my project to my SSRS 2016 site.  I was able to deploy on Friday, 10/19/2018. I made no changes to the SSRS service on the server and there have been no updates to my computer running VS 2017.

The only thing that happened was that our network team ran a software package called Varonis to clean up permissions on our network. 

What permissions would have changed to cause the issue of me no longer being able to deploy the project?  Any

VS 2017

SSRS 2016 - Version 13.0.1601.5 - Native mode - Windows Intergrated Security - Windows Server 2012 R2

SQL Server Reporting Services Reports not Rendering

$
0
0

We are having the following problem where reports are intermittently unable to render when previewing them.

We see the following the error logs when this occurs :

webserver!ReportServer_0-7!1a74!10/23/2018-03:27:29:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeClientDisconnectionException: A client has disconnected from the Report Server Web service application domain ReportServer_MSSQLSERVER_0-7-131847203148234072. No corrective action is required. An error code has been submitted to ASP.NET to release the connection. The error code is 800708CA. ---> System.Runtime.InteropServices.COMException (0x800708CA): This network connection does not exist. (Exception from HRESULT: 0x800708CA)

This error and symptoms we are seeing is almost identical to this post:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9a6a1b0f-c413-4692-a3f3-dfc35dd7361e/problem-with-connection-to-report-server-using-web-services?forum=sqlreportingservices

Upon which they recommend the following:

Microsoft® SQL Server® 2008 R2 Service Pack 1 - http://www.microsoft.com/en-us/download/details.aspx?id=26727

Cumulative update package 6 for SQL Server 2008 R2 Service Pack 1 - http://support.microsoft.com/kb/2679367/

But we are on  Microsoft SQL Server 2014 (SP1-GDR) (KB4019091) - 12.0.4237.0 (X64) ,
is there any such updates/service pack for this version if relevant?

Any suggestions about the above error would be very helpful, thank you

Viewing all 28687 articles
Browse latest View live


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