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

Get #ERROR with IIF(xxx="", "", Replace(....)) when data is null.

$
0
0

Using ssrs 2014 I have a cell in a tablix where I need to replace Chr(13) with VbCrLf to make the line breaks show.  All was good until the call received a null from the database.  I ran the select on the db to confirm it was returning null and not an empty string.

The original expression was this:

=First(Fields!Id_Rationale.Value).Replace(Chr(13),VbCrLf)

but the cell would show #ERROR when it received the null or empty value.

so then I tried this:

=IIF(Fields!Id_Rationale.Value = "", "", First(Fields!Id_Rationale.Value).Replace(Chr(13),VbCrLf))

and this:

=IIF(IsNothing(Fields!Id_Rationale.Value), "", First(Fields!Id_Rationale.Value).Replace(Chr(13),VbCrLf))

and this:

=IIF(IsNothing(Fields!Id_Rationale.Value) OR Fields!Id_Rationale.Value = "", "", First(Fields!Id_Rationale.Value).Replace(Chr(13),VbCrLf))

but if I run this I don't get the #ERROR

=IIF(Fields!Id_Rationale.Value = "", "empty string", "not empty string")

hmmm.  so I tried this

=IIF(Fields!Id_Rationale.Value = "", "empty string", First(Fields!Id_Rationale.Value).Replace(Chr(13),VbCrLf))

and got #ERROR again.

I'm puzzled. any idea how to make this work and not get #ERROR on empty values?

Thanks.


bar chart pivot

$
0
0

How do create a chart where each bar in a chart is the each Class value.

CREATE TABLE [dbo].[Test](
[Dept] [varchar](50) NULL,
[Class1] INT NULL,
[Class2] INT NULL,
[Class3] INT NULL,
[Class4] INT NULL
) ON [PRIMARY]

INSERT INTO [dbo].[Test]
           ([Dept]
           ,[Class1]
           ,[Class2]
           ,[Class3]
           ,[Class4])
     VALUES
           ('Dept1'
           ,54
           ,25
           ,75
           ,95)

Must have a corrupted RDL, cannot add a page footer

$
0
0

Hello,

I have an rdl that I open in Report Builder 2014.

I click insert  Page Footer, and I see nothing added to the report that was completely empty.

Is there something that has to exist in xml for the report.rdl before a footer can be added?

Thank you,

Mike


SSRS time difference

$
0
0

Hi,

How can I get teh time difference between the 2 fields below download time andfirst entry time:

Many thanks

Zimiso

SSRS Fill data down then across

$
0
0

Hi,

I want to create report which has 2 columns. The data will fill down first column (to end of page) and then go to next column.

I've try fake multi-column report in below thread (using two tables):

http://stackoverflow.com/questions/10882784/ssrs-how-to-continue-data-to-next-column

However the problems is the row's height of each item does not equals. In this case, one column may be too small and other column is big.

I cannot use mulit-column solution because I need it display correctly in preview, excel and pdf.

regards

Custom Palette Gradient

$
0
0

I have a custom palette for my column chart. I would like the column to be graident colour from itself to a lighter shade of itself.

For example my custom palette is "Blue", "Green" etc
I want to be able to gradient my columns so my question is.
In the Series -  Fill - Gradient I have my primary color as Automatic (based on my Custom Palette).
is there a way to set the Secondary Color to a lighter shade of the Primary color based on the Primary Colour value.

Thanks

Quentin

an error occurred during local report processing report parameter has default value or valid value that depends on the report parameter forward dependencies are not valid?

$
0
0

Hi Team,

I am using below query for the report but  i did get databaseName dropdown is empty and getting below error ... please share the your valuable suggestion to resolve the issue.

Query:

SELECT *  FROM [XX].[dbo].[Backup_Failed_Databases_Info] where(Startdate between (@StartDate) and (@Enddate)) and  DatabaseName IN (@DatabaseName)  

error: an error occurred during local report processing report parameter has default value or valid value that depends on the report parameter forward dependencies are not valid

if i not select the any available value for database parameter getting below report.



SSRS subscription setup


SSRS display sum for sub category group by value.

$
0
0
I have a table in below format

criteria Year   count
A        2014   6
A        2015   24
B2014   2
B        2015   72

I have a stacked chart with
values =count
categorygroup=criteria
categorygroup1=year

Now I have to display the data in the chart as percentage.
The percentage should sum upto to 100 for a particular year.

for example for 2014 it should be 6/(2+6) = 75% for criteria A and 
2/(2+6) = 25% for criteriaB.

similarly for 2015 it should be 24/(24+72) = 25% for criteria A and 
72/(24+72) = 75% for criteriaB.

The number of years is variable but no of criteria is 2(fixed).

This percentage value should be displayed in the bars of column chart.

Please help me to come out of this scenario.

Thanks,
Joy

Obtain valid values from an SSRS report using PowerShell

$
0
0

Hi 

I'm trying to get the parameter values for a second parameter by passing through the values selected from the first parameter. The report uses cascading parameters. I believe I need to use the Reporting Server service object. I'm using PowerShell to do this. This is the code I have so far:

$rService = new ReportingService();
$rService.Credentials = [System.Net.CredentialCache]::DefaultCredentials

$historyID = $null
$forRendering = $true
$values = $null
$credentials = null

$parameters = $rService.GetReportParameters
("/Reports/1",
$historyID,
$forRendering,
$values,
$credentials)

Any help would be greatly appreciated. 

Thank you.



Issues configuring SSMRP with Reporting Services

$
0
0

I'm trying to connect the SQL Server Mobile Report Publisher to the Reporting Services in SQL 2016? I'm having some problems configuring it to work with. Can I get some comments to help me out?

First, I have a local machine that I have sql installed on.

Second, I configured the reporting services and assigned it a weburl with an ip address. I tested the link and I can reach this:

desktop-77f1pe9/ReportServer_SQL2016DEVDB - /





Microsoft SQL Server Reporting Services Version 13.0.1601.5

Now, I've started up the SSMRP but I cannot connect. Has anyone connected locally with this to make it work?

I have a wide world imports db that I want to connect to make this work with SSMRP but I keep missing something.

Can someone tell me what URL should here?


Cache, Snapshot: what do they store? Data or pre-rendered reports?

$
0
0

Hello,

SSRS provides two closely related features; Snapshots and Caching.

Snapshots are again divided into two; Execution snapshot and history snapshots.

Internally, what type of data do they store internally? ie. Cache and Snapshots store'pre rendered reports' or 'data' that is used to render a report? Is there a difference between Caching and Snapshots in this context?

Secondly, if an SSRS report has parameters, can snapshots be created for parameter combinationsbased on a data driven subscription (or through a similar mechanism?)

Thanks


Top N report Total row not correct

$
0
0
I have a simple report that does something like show me the Top 30 Customers by Revenue - with a grand total then at the bottom for the top 30 customers.  For some odd reason, my grand total at the bottom does not show the total for my top 30 customers, it shows the total for all customers.  Am I missing something silly?

Here is what I do:

Using a Tablix, I inserted a group called "Customer" based on Customers.  Added a filter to this group that basically does a Top 30 on the revenue field:

Expression: =Sum(Fields!ContractValue.Value, "Customer")
Operator: Top N
Value: =30

The report so far works great and shows my top 30 customers by revenue....

On the "Customers" group I then "Add Total After" to get a total line at the bottom of my table.  Only problem is the totals does not add up - it shows totals for all Customers (and not just my top 30).

How do I get the total line to only display the total for my top 30 customers?

Need HELP With Page Breaks!

$
0
0

I have a large and long report with many sections which need to be on their own page. This is a master report for the end of a workshop which shows the results of all the idea generated in the workshop (Often more than 100 ideas).  Think of this as a list of ideas.  Each idea has a page of summary information, followed by what we call an "Idea Write Up".  The write up has multiple sections each having a dedicated page per section.  The write up is followed by 2 pages of financial information (always 2 pages here).  Lastly the idea has 0 to n exhibits where each exhibit is it's own dedicated page.

Some of these page are sub reports and some are not (but I can make all into sub reports if needed).  Lastly, some of the sub reports need to be parsed out into multiple pages - such as the exhibit section.  The exhibits will a sub report and it must force a new page for each exhibit (for each exhibit record). 

How can all of this be done?  I've had a little success using groups, but that only took me a little way.

THANK YOU for any help you can offer.

Report Builder 3 chart wizard

$
0
0

Hi All

No mater what I try I always seem to have a thin line at the right-hand side of my line chart. Others on the same page (but a different size) look perfect. Advise please.


date picker issue in ssrs reports hosted in wpf application

$
0
0

We have hosted SSRS reports in a WPF application using ReportViewer.

Month selection in the date picker is not working properly. However the date selection through navigation buttons is working fine. The date picker is getting displayed as shown in the below image. On selecting any month does not return anything.

It needs to work like in calendar control in WPF

We are using SQL server 2008 R2 and Visual studio 2010.

If there is any patch to fix this problem, that would be really helpful.



How to extend number of running jobs?

$
0
0

In RS server, you can find running jobs using SQL:

SELECT * FROM RUNNINGJOBS
I find only two jobs are running at a time in one server while more than 7 jobs are running in another server. How should I do to change number of jobs? Thanks.

SSRS 2008 R2 subscription setup

SSRS URL Access (POST) will not accept a report parameter

$
0
0

I have a report that, according to user requirements, must accept a report parameter that can have multiple values, and most frequently will require far too many values for this parameter to include them all in a query string, but must have at least one parameter selected. The report must be run through a URL Access interface using the POST method, and returning a PDF file in a new window, so that the UI can be included in an existing MVC web application in accordance with user wishes.

This seemed to be a well-documented procedure, that could be done with a simple form:

<html><title></title><body><form id="frmRender" action="http://{serverURL}/ReportServer?%2FFacility+Status+Report" method="post" target="_blank"><input type="hidden" name="rs:Command" value="Render" /><input type="hidden" name="rs:Format" value="PDF" /><input type="text" name="rp:FirstName" /><!-- match pattern for staff with specific names --><input type="text" name="rp:LastName" /><select name="rp:FacilityNames" size="10" multiple="multiple"><option>ADAMS FACILITY</option><option>ALBERT FACILITY</option>
    ...<option>ZOD FACILITY</option></select><input type="submit" value="Get Report" /></form></body></html>

The problem is, whenever I click the "Get Report" button, I get the following message back:

This report requires a default or user-defined value for the report parameter 'FacilityNames'. To run or subscribe to this report, you must provide a parameter value. (rsReportParameterValueNotSet)

This occurs no matter how many items I select from the "rp:FacilityNames" listbox. I even tried submitting a manually constructed request via HttpClient, with a properly formed rp:FacilityName parameter, only to receive the same response. Neither"rp:FirstName" nor "rp:LastName" seem to cause any issues, though this could be the SSRS server deciding to check (and choke on) the FacilityNames parameter first.

Is this a problem unique to report parameters that have to support multiple values AND provide at least one value? Or am I doing something else wrong here?

SSRS Report Manager "View" Content

$
0
0

On SSRS report manager, under "View" option, the content type selected by users  does not save in Google Chrome. It works fine in Internet Explorer though.

Is it a bug or settings with Google Chrome?

Viewing all 28687 articles
Browse latest View live


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