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

How to sort a column in report

$
0
0

Hi

   I have a reports in which I use different tables and datasets to show data in rows and join all the tables without header to makeit look like one table. Is there any way to sort the IDs when I transfer it to excel?

all rows are different tables. In second set sometimes one table extract multiple rows. IS there any way of merging and apply sort without hindering with data?

Thanks !


ssrs 2008 data driven subscription

$
0
0

Hello,
I am working on scheduling a report where it should only run if the sql count > 0

In datadriven subscription I have the sql in the command box which basically does select count(*) as counter from tbl1...
But I do not know how to set this schedule so that it only runs at 8 am only if the counter is > 0

How is this done please?

Thank you

update xml RDL with script

$
0
0

Hi,

We have a few reports with queries that need one line to be updated many times a year. Is it possible to update the RDL xml through a script, so that I don't have to manually open every report in visual studio. And how can I regenerate the data file that comes with the project? Or is that unnecessary? We generally generate and export the report pdf on the client side. Thank you so much for your help!

Best,

Jess

Interactive sorting does not work

$
0
0

I have 1 row group Group2 grouped by [Group] and 2 fake column groups AMT, QTY, grouped by Nothing. For some reason I could not get Interactive sorting working. Please help what else could be done.

SSRS Tablix vs Tablix

$
0
0

Hi,

I have two tables one after another but the second table is displayed after a lot of gap.

As seen in above image the the <<EXPR>> is my second table.Whenever we preview the report it shows some gap and then displays the the second table.

Waking UP SSRS 2016 worse than ever

$
0
0

I have a small report in SSRS 2016 that retrieves Applied Payment Information from DynamicsGP by Voucher, and it parameterized.   I am attempting to embed this report with parameters into another application so that users in the other browser-based application can view payment information on vouchers that originate in that application and are integrated into GP.

The technical implementation works in general.  However, this type of information, while important, will be used randomly and sometimes the report may only run once a day, or not at all.  The requirements are driven by Vendor inquiries to the local AP staff.

I have found horrendous performance on start up.  I have tried every trick in the book with regard to running the report on schedule, waking up SSRS by browsing to the site, cycling the app pools, launching IE with a script, etc. and NOTHING makes the report wake up well.

I have found that if I browse to the report and run it with parameters for the first time in the morning using Report Manager, the initial performance is as horrendous as when it is embedded

If I run it once during the day through Report Manager and then use it inside the embedded application, the performance consistently stays good throughout the day, no matter how long I wait after the initial run.  It just seems that no matter what I do, it will have to be run once before it performs well.

This is not a complex report or query, it just seems like Reporting Services struggles to load all the objects the first time and I am at a loss as to how to correct it permanently so that the performance of this report is acceptable under the parameters I described where it is run sparingly at times.

I know this is a common problem with SSRS through the years, but the performance of the SQL 2016 SSRS seems to be worse than ever.  I have patched the SSRS installation with the latest version of SQL 2016.

What else can I do to get this to perform with a reasonable amount of responsiveness?

 

DWM

Parameter visibility based on other parameter vallue

$
0
0

 Hello All., I have a report  with custom parameters ., I needs to add custom parameter on a dataset for column 1, filtering the  column values  based on 3 conditions like 

Condition 1 - values in ('1','2','3') display those values
Condition 2 -if it is Null display all values

 Condition 3 -values Not in ('4','5','6') display those values

 if it is Null display all values

If we select condition 1/2 , condition 3 needs to disable

If we select condition 3 , condition 1 needs to disable.

Could someone help me with this please

Thank's in advance.

  

No Data Message Formatting Drops in PDF

$
0
0

In SSRS, I have a bunch of subreports in a report. Within each subreport, I have a No Rows message. For each of those messages I have the TextAlign set to Center. When I run the report in the Design View in Visual Studio or within the Report Viewer in a browser, the TextAlign property is respected; however, when Print Preview within Visual Studio or export to PDF from Visual Studio or from a browser, all formatting of the No Rows message is dropped. Does anyone know why this occurs?


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.


Move SCCM 1806 Database to SQL2014 - always on

$
0
0

Hi 

I'm trying to move sccm databasde from stand alone server to always on availability group.

I'm sure that all SQL Configurations are done successfully. But I face the following error 

Kindly advice

Thanks and regards

mid-groups subtotal and grand total

$
0
0

All,

I have an SSRS Report that like this

Single group based on Unit of Measure(UOM), Min, Qty

there are two types of Unit of Measure lets say CM and IN

within CM (and only CM) there is a Min column

I need to subtotal within cm rows that don't have a min, rows that do have a min.  Then a separate total for each and then IN.

So..

UOM, Min, QTY

CM,,5

CM,,10

Subtotal 15 (no Min)

CM, 1, 5

CM, 1, 10

Subtotal (CM, min 1) 15

CM, 2, 5

CM 2, 5

Subtotal (CM, min 2) 10

Grand Total CM 35  (CM with no min(10) , cm with min 25)

IN,,5

IN,,5

SubTotal IN  10



Any help would be appreciated.

How to sort a column in report

$
0
0

Hi

   I have a reports in which I use different tables and datasets to show data in rows and join all the tables without header to makeit look like one table. Is there any way to sort the IDs when I transfer it to excel?

all rows are different tables. In second set sometimes one table extract multiple rows. IS there any way of merging and apply sort without hindering with data?

Thanks !

VS 2015 component/installs to build SSRS for SQL 2008 server

$
0
0

Recent reimaged pc with Windows 10 and reinstalled VS 2012 & VS 2015.  Cannot build RDL's in VS 2015 for our old 2008 server because of :

The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded

Tried changing TargetServerVersions to SQL Server 2008,

Clean Solution/Clean Project / Rebuild Project

<g class="gr_ gr_750 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" data-gr-id="750" id="750">however</g> the same reference persists the revised RDL, even though output from the rebuild Project or rebuild Solution display

"Building 'Report1.rdl' for SQL Server 2008 Reporting Services"

When viewing the code this remains:

Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" <g class="gr_ gr_1013 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="1013" id="1013">xmlns</g>:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

Looking for suggestions of how to install correct SSDT or other items for this to perform a build target version that works correctly?

ReportViewer display issues

$
0
0

Using: Microsoft.ReportViewer.WebForms, Version=15.0.0.0

Why do the buttons under the Save / Export control appear like they do in the below image? They are not clickable when they appear like this... i have tried setting the z-index CSS property to fix this without luck.

To get the body of the report to display I had to add the following CSS to a basic web form page in Asp.Net:

< style >   [id=ReportViewer1_ctl13] {   

    o v e r f l o w :   v i s i b l e   ! i m p o r t a n t ;
   }

< /style >

This somehow affects the buttons behind the Save / Export control in the report. If I omit the CSS above, the body of the report does not show, but the controls work / display as expected.

.ASPX page file:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WebApplication.Test" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <title></title>
</head>
<body>
 <form id="form1" runat="server">
  < style >
   [id=ReportViewer1_ctl13] {
    o v e r f l o w :   v i s i b l e   ! i m p o r t a n t ;
   }
  < /style >
  <asp:ScriptManager runat="server" ID="scriptManager" AsyncPostBackTimeout="600" EnablePartialRendering="true" EnableScriptLocalization="true" EnableScriptGlobalization="true" />
  <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
  <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" Width="100%" Height="100%" BackColor="LightBlue" KeepSessionAlive="false"
   BorderColor="LightBlue" InternalBorderColor="DarkGray" SplitterBackColor="LightPink" ToolBarItemBorderColor="LightBlue" ToolBarItemHoverBackColor="LightGreen" >
  </rsweb:ReportViewer>
 </form>
</body>
</html>

</form>






SSRS Export to Word, texts in Text Box not auto-wrapping

$
0
0

I have designed a SSRS template with a text box to display up to 255 characters. When I preview the report, I can see that the texts are auto-wrapped and contained with the text box. When I export it to EXCEL and PDF, the texts are also displayed within the text box. However when I export it to WORD, the text box extended beyond the portrait width to accommodate the texts, and this caused the report format to be out.

Please help. Thanks.


SSRS Report Builder Page Break Location on grouped data bug

$
0
0

I'm building a report that has sub groups.

Group A, has child Group B, has child Group C.

I want to put a conditional page break on Group C.  I want Group C ON ITS OWN PAGE, if the condition matches.

My groups are correct, my condition is correct.  This works when the BreakLocation is Start OR End, but NOT if StartAndEnd.

We have 3 rows, Row 1, Row 2, and Row 3.   Row 1 & 3 meet the condition to be on it's own page.  That means, if StartAndEnd functions correctly, ALL rows would be on their own page.  This doesn't occur.  Row 2 & 3 are on a page together.  What appears to be happening, is the disabled End page break from Row 2 is disabling the Start page break from Row 3.

Both BreakLocation Start, End work correctly.  StartAndEnd doesn't work.

Am I missing something?

SQL Server Reporting Services 2017 patching

$
0
0
How do you patch SQL Server Reporting Services 2017? In previous versions of SQL Server, you could patch Reporting Services when you patched the rest of the SQL Server services (database, SSIS, etc.). However, now that Reporting Services is a separate install, there is no option to patch Reporting Services when you patch the other SQL Server services. I only see the download page  for the full product of Reporting Services 2017. Where is the download page for the Reporting Services patches? The current Reporting Services download is definitely a higher version than the one that installed earlier this year.

The linked data source could not be found. - Sharepoint integration mode

$
0
0

Hi

we have 100s of reports deployed in sharepoint site working fine.

Today morning most of the reports not working and the reason was the connection that we made between reports and datasource files is empty. not sure how this would have happened?

Any idea.

we did not redeploy and report.


Ravi.S Chennai, Tamil Nadu, India


Query Execution Failed Error

$
0
0

Hi,

Could you please suggest the solution for the following query:

="SELECT  NAME WIDTH 100, IP_TREND_VALUE FROM  IP_ANALOGDEF WHERE NAME IN ('" + Join(Parameters!SQL_Budget_Norm_Value_YTD.Value, "','") + "') AND IP_TREND_TIME BETWEEN ('"+ Parameters!StartDate.Value+ "') AND ('"+ Parameters!EndDate.Value + "')ORDER BY IP_TREND_TIME"

Below is the snapshot of the error

Help with

$
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]


Viewing all 28687 articles
Browse latest View live


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