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

SSRS - Splitting result of data-set dynamically into 4 different tables.

$
0
0

I want to achieve the following - 

Suppose my result set has 4000 records.

I want to be able to assign a value of 1 to the first 1000 records, 2 to second thousand ... etc.

and in each of my 4 tables, I would want to be able to filter based on these values (1,2,3,4).

I want this to be dynamic.

Meaning if result set has 6000 records (assign 1, 2, 3, 4 to each partition of the dataset, and apply a filter in each of my 4 tables).

How can I achieve this ? 

Thanks.


blank space when hide table

$
0
0
When I hide a table based on an expression it leaves a blank space. How do you get rid of the blank space?

MS reporting server error , the HTTP request contains an unsupported verb or invalid syntax. The file 'Reportserver_.../login.aspx' does not exist

$
0
0

Hi,

I have installed MS sql 2008 and while trying to login to reportserver web serivces url I'm getting below error message. kindly let me know how to resolve. Thanks

 

Reporting Services Error

 


 

An error occurred in the HTTP Runtime object for application domain ReportServer_SQL20081_0-1-129515778977417059. Most likely, the HTTP request contains an unsupported verb or invalid syntax. (rsHttpRuntimeError) Get Online Help

The file '/ReportServer_SQL20081/login.aspx' does not exist.

Round up ex. 1.6 to 2?

$
0
0

How can I round up a decimal number?

in SSRS reports.

Thanks 


how to show bar and line chart in the same chart

$
0
0

Hi guys,

I need to create a chart with the following features

1) Bar chart that has data for 3 years (3 series)

2) Line chart that has the same data as per the above points on the bar chart but this is a running total. (3 series)

3) These data points are for the 12 months

4) there should be a secondary axis for the cumulative one

Can I create this using the same data set? If so can anyone of you give me a sample example or some references that I could look at.

Thanks

Lucki

How to show the running Value in a line chart

$
0
0

Hi Guys,

I have a question. I have the below chart.

In this, I need to add line charts for the three years specifying the running total. I already have bar charts for the respective years. This is the query that I used to get the dataset.

SELECT [Parent Name], [ID], [Year], [Month], SUM([Value]) AS 'Running Total'
FROM     Regulus_Data_Backup
GROUP BY [Parent Name], [ID], [Year], [Month]
order by [Parent Name],[ID], [Year], DATEPART(mm,CAST([Month]+ Convert(varchar(4),[Year]) AS DATETIME))

Then I added a series with a expression that had the chart type as line as shown below.

My Expression was
=RunningValue(Fields!Running_Total.Value,SUM,"MonthWiseData")

My 3 parameter was "MonthWiseData" which is my dataset name. Is this correct? I use the same dataset to get the bar charts too. I get a error message now when loading the report saying "the scope parameter must be set to a string constant.

Any idea why this is coming? My goal is to get bar values for 3 years for the 12 months and in the same chart get the cumulative numbers for the 3 years for the 12 months.

How can I do this? Please guys your help is much appreciated

Thanks

Lucki

How to use IF statement and Time function together SSRS

$
0
0

I am using the following function to set the time format, however I now need to to add an IF statement into this equation.

This is the current expression I am using:

=Floor(Fields!ACD_Calls.Value / 3600) &":"& Format(DateAdd("s", Fields!ACD_Calls.Value, "00:00"), "mm:ss")

Now I need to use the following expression with this:

=IIF(Parameters!ReportType.Value="Average", Sum(Fields!ACD_Calls.Value)/CountRows(), Sum(Fields!ACD_Calls.Value))

How do I join the two together?

Default value refreshing problem in Cascading Parameter (SSRS)

$
0
0

I have two parameters, lets say P1 and P2. P2 is cascaded with P1. P1 -> P2
For the parameter P2, the following proterty set are
 1. Multi Select
 2. The default value is all the available value selected (Same dataset is assigned to both "Available Values" and "Default Values")
The data relation be,
P1    P2
A     a
A     b
A     c
A     d
B     a

Now the issue is,

Step 1 : When i choose A in P1 first time, a,b,c and d in P2 are selected
Step 2 : When i change B in P1, a is selected
Step 3 : When i change back to A in P1, only a is selected in P2 (a,b,c and d should be selected)
 
Can someone please help me with this??


Bunch of thanks ~ Deva ~ mark it as answer if it answered your question :)

SSRS Matrix Dynamic Formatting of Cell Issue

$
0
0

Hi everyone - I have a problem that's a bit beyond me :

I have the following result set that I am putting into a SSRS 2012 Matrix:

RowNumRowLabel Val Title
1.00 Advance 10000.0000 TestTitle1

4.00 List Price 18.0000 TestTitle1

5.00 Units Shipped 20000 TestTitle1

6.00 Return Units -8125 TestTitle1

7.00 Net Sales Units 11875 TestTitle18.00Return % 45.0%/10.0% TestTitle1

*Note: The data in Val for 'Return %' is a text field - informational only and necessary.

When setting it up such that the Columns are Title, and the Rows areRowLabel, I get the folowing:

 TestTitle1
Advance
10000.0000
List Price
18.0000
Units Shipped
20000
Return Units
-8125
Net Sales Units
11875
Return %
45.0%/10.0%

What I would like to do is, basically, format the cell based upon its RowNum. RowNums 1 through 7 get a specific format for each, and I want RowNum = 8 left alone and simply display its Text contents.

 TestTitle1
Advance
$10,000
List Price
$18.00
Units Shipped
   20,000
Return Units
  (8,125)
Net Sales Units
  11,875
Return %
45.0%/10.0%

When I try to set up conditional formatting on the cell, 'Val', I get a #error for the 'Return %' row: 

"Warning1[rsRuntimeErrorInExpression] The Value expression for the textrun ‘textbox2.Paragraphs[0].TextRuns[0]’ contains an error: Input string was not in a correct format."

I tried using Cstr and CDec in different combinations in the 'Expression' setting for the cell, to no avail - This is my latest attempt: 

= Iif( Fields!SortOrder.Value *1 = 5 
     or Fields!SortOrder.Value *1 = 6
     or Fields!SortOrder.Value *1 = 7
         ,"#,0;(#,0)"
         ,(Iif (Fields!SortOrder.Value *1 = 4
                 ,"'$'0.00;('$'0.00)"
                ,(Iif (Fields!SortOrder.Value *1 = 8
                      ,"Text"
                      ,"'$'#,0;('$'#,0)")
                 )                 )
           )
       )

ANY help would be GREATLY appreciated!

Thanks!

--Jim










Expression to display only strings that start with this....Report Builder

$
0
0

How do you write an expression in report builder to only display the results that start with a certain string value...

eg.  Project Number - CUP1501, DPR1502, ENG1507 etc.  These values will all get returned but I only want the Project Number that has CUP and DPR in it?

SSRS: Controlling Space Between Two Tablix

$
0
0

I have a report I'm trying to modify for a client that has two auto-grow tablix.  We want the second tablix to start after the first one completes, however the first tablix will overwrite the second one if it contains multiple rows, rather than pushing it down.

How can I control this?

Microsoft Reporting -spacing controls

$
0
0

I use Visual Studio 2013 to create Microsoft local reports. I create various text box controls that are next to each other in the designer. When I run the report my text boxes are spaced out with extra white space between the lines. How can I control vertical and horizontal spacing? What I see in the designer I not what I get when I run the report.

What am I doing wrong?


Certified Geek

How to write a custom legend text

$
0
0

Hi Guys,

I have a small question. I was trying to write a custom legend text for a chart that I have in SSRS. In the chart I have a Bar chart and a Line chart. I have two values coming from a dataset. One is a running value. All the series values are from year dataset.

I need to get a custom legend text for the three data series looking like this. "2013- Mth", "2014-Mth". Year should be dynamice and coming from the dataset.

I tried writing an expression in the series legend option as shown below.

But I don't get the required text for the chart. I only get the default series text for the legend. If I only write a text without the dynamic year taken from the dataset columns I get the custom text. But not when I concatenate the dynamic year series with the static text

Any idea on this? any property to enable/disable?

Thanks

Lucki

Merge IF statement and Time Format

$
0
0

I am trying to do an IF statement based on the parameter (Average or Total). However I am struggling with how to put the two together.

=Floor(Sum(Fields!Avg_ACD_Time.Value)/ 3600) &":"& Format(DateAdd("s",Sum(Fields!Avg_ACD_Time.Value), "00:00"), "mm:ss")
=IIF(Parameters!ReportType.Value="Average", Sum(Fields!ACD_Calls.Value)/CountRows(), Sum(Fields!ACD_Calls.Value))

Any help I would appreciate.

Many thanks 

SSRS Parameter dynamic font size

$
0
0

Hello all,

I know most probably ist not possible . However, just to confirm :

Is there any possibility to have the  Defaultvalue of  a Parameter in Bold fonts and rest of it as Default

parametervalue=Defaultvalue ,"Bold","Default"

So for example in drop down of parameter if the C is the current value it would look like this:

ParameteValue:

A

B

C

D

Thanks,

Pragati


Can't search accented characters in reports exported to PDF, can't copy-paste accented characters to notepad or word

$
0
0

I tested the same reports in our older SSRS 2008 setup and tested different reports under another SSRS 2012.  They all work as they should.  Exporting directly from the Visual Studio (VS2012) report preview works well too.  Trying to find out if it's something we did not configure properly or if it's a bug.

Using SSRS 2014 sp1, reports exported to PDF format are problematic.  Other formats work fine.  Exported PDF files contain accents and it shows up well in various PDF readers i tried.  However doing a CTRL-F search in any of those 2014 generated reports doesn't find any text near accented characters.  I can find text on another row that has no test with accents.

Copy-pasting any row containing accented characters gives out squares in Notepad, Word or anything else.  This behavior happens with the 3 PDF readers i tried.  It also happens on our customer's workstations and other developer's computers too.

Can't seem to find any solution on web search.  Any hints would be really appreciated.

How do I get SSRS Add-In for SharePoint version to sync with SSRS Engine?

$
0
0

I have installed SQL 2012 on my DB Server. The SSRS database version table(s) list the current version as 163. The Version number that's displayed in the Programs and Features for SSRS Add-in for SharePoint (yes, on the db server) is 11.2.5623.0.

On my two SharePoint servers the version number for SSRS Add-in for SharePoint shows 11.2.2058. I have installed SQL Server 2012 Service Pack 2 on all three machines. When the SharePoint box calls into SSRS to render a report I get this error:

  • The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is '163'. The expected version is '162'. ---> Microsoft.ReportingServices.Library.InvalidReportServerDatabaseException: The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is '163'. The expected version is '162'.

I have no idea what else I need to install - and where - to correct this error. What is expecting version '162' and why?

SSRS Properties greyed out in SSMS on Windows 2008

$
0
0

Hi all,

 

Have installed SQL 2008 on Windows 2008 and have come across a strange issue.

 

When connecting to the Report Server cvia SSMS to enable "My Reports" (for example) the Report Server Properties are greyed out and we cannot alter them. This occurs when logged on both locally & remotely to the Win 2008 server.

 

Interestingly, we have another (XP Pro) box with SQL 2008 on it. If we connect to the Win 2008 SQL report server from the XP machine's SSMS, then we have full control and can access and change the report server properties on the Win 2008 server. 

 

The relevant domain accounts are in the Admin group on the Win 2008 server and the XP Server so we are confused as to why we cannot edit the Win 2008 report server properties locally.

 

Any thoughts?

Error when exporting report with multiple subreports to PDF

$
0
0

I have a report in SSRS 2008 R2 that has multiple subreports, in fact the report uses the same subreport twice with different parameters.  Then that subreport also has a subreport, which has a subreport.  (It's a complex data scenario with a hierarchy that can go up to three layers deep.)  The report renders fine in report viewer, but when I try to export to PDF I get the following error:

Object reference not set to an instance of an object.

Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.

Exception Details:
Microsoft.Reporting.WebForms.ReportServerException: Object reference not set
to an instance of an object.

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:
[ReportServerException: Object reference not set to an instance of an object.]

[ReportServerException: An error occurred during rendering of the report.]

[ReportServerException: An error occurred during rendering of the report. (rrRenderingError)]
   Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +1034
   Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +1329
   Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension) +209
   Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +219
   Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +171
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

Each subreport renders correctly to PDF, and if I remove either subreport from the main report, it also renders correctly.  But the two subreports together on the report cause the error.

Any help would be appreciated!

Thanks!


UPDATE : Removing the third hierarchy layer (the final one) fixes the issue.  Is there a limit to the number of nested subreports when rendering to a pdf?

Is this a Scale-out Deployment ?

$
0
0
 Good Morning

We have two servers. Server1 has SQL Server 2005 Standard Edition Database Engine installed, Server2 has SQL Server 2005 Standard Edition with only the Reporting Services and IIS installed.

The ReportServer & ReportServerTempDB databases have been restored to Server1 form the previous SQL 2000 server (OldServer1) and are referred to using the Configure Reporting Servers utility on Server2 (using a SQL login).

With everything installed and the encryption key restore I can browse to localhost/reports on Server2 and the report manager displays an error say that -

"The feature: "Scale-out deployment" is not supported in this edition of Reporting Services."

However in the Configure Reporting Services utility I create a new (blank) database and the report manager displays without an error.

I feel that somehow the previous SSRS 2000 installation is being referred to in the ReportServer databases. The previous installation also used an identical configuration where OldServer1 was a SQL Server 2000 Standard Edition (SP4) and OldServer2 had SSRS 2005 version 9.00.2047.00 (trying to find out which version of SQL Server seems impossible but I believe it would have been Standard).

Any help would be great

Thanks

Ben







Viewing all 10045 articles
Browse latest View live


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