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

Report Builder - set parameter to include or exclude columns from data presentation on report

$
0
0

Hi,

Based on a table like below I have created a report so that I can compare number of items in the main warehouse (LOCATION1) and the outlets (LOCATION2 and LOCATION3).
___________________________________
| ID | PRODUCT_INDEX | LOCATION   | VALUE |
___________________________________
| 1  | INDEX1             | LOCATION1 | 1         |
___________________________________
| 2  | INDEX1             | LOCATION2 | 1         |
___________________________________
| 3  | INDEX1             | LOCATION3 | 0         |
___________________________________
| 4  | INDEX2             | LOCATION1 | 0         |
___________________________________
| 5  | INDEX2             | LOCATION2 | 0         |
___________________________________
| 6  | INDEX2             | LOCATION3 | 1         |
___________________________________
| 7  | INDEX3             | LOCATION1 | 1         |
___________________________________
| 8  | INDEX3             | LOCATION2 | 0         |
___________________________________
| 9  | INDEX3             | LOCATION3 | 1         |
___________________________________

The way I present data in my Report is as such. I want to show items that are available in the warehouse that should be moved to the outlets.

select 
 a.PRODUCT_INDEX
, a.LOCATION1(VALUE)
, b.LOCATION2(VALUE)
, c.LOCATION3(VALUE)  
from 
(
select 
 VALUE as 'LOCATION1(VALUE)'
, PRODUCT_INDEX 
 from TABLE 
 where LOCATION = LOCATION1 
and VALUE > 0
) a
inner join 
(
select 
 VALUE as 'LOCATION2(VALUE)'
, PRODUCT_INDEX 
from TABLE 
where LOCATION = LOCATION2
) b
on a.PRODUCT_INDEX = b.PRODUCT_INDEX
inner join 
(
select 
 VALUE as 'LOCATION3(VALUE)'
, PRODUCT_INDEX 
from TABLE 
where LOCATION = LOCATION3
) c
on a.PRODUCT_INDEX = c.PRODUCT_INDEX


__________________________________________________________________
| PRODUCT_INDEX | LOCATION1 (VALUE) | LOCATION2 (VALUE) | LOCATION3 (VALUE)|
__________________________________________________________________
| INDEX1               | 0                              | 1                              | 0                             |
__________________________________________________________________
| INDEX2               | 1                              | 0                              | 1                             |
__________________________________________________________________
| INDEX3               | 1                              | 0                              | 1                             |
__________________________________________________________________


I have added some parameters in my report to filter out products that are not available in warehouse (LOCATION1) and this works great.

select * from VIEW where 'LOCATION1(VALUE)' > 0 and ('LOCATION2(VALUE)' = 0 or 'LOCATION3(VALUE)' = 0)


__________________________________________________________________
| PRODUCT_INDEX | LOCATION1 (VALUE) | LOCATION2 (VALUE) | LOCATION3 (VALUE)|
__________________________________________________________________
| INDEX1               | 1                              | 1                              | 0                             |
__________________________________________________________________
| INDEX3               | 1                              | 0                              | 1                             |
__________________________________________________________________

Now the issue starts when I add a parameter to my report for user to choose which outlets (LOCATIONs) he wants in the equation. I know how to make a column disappear based on parameter value but how to take it out of equation? At the moment when user selects only LOCATION2 and not LOCATION3 then data is not filtered correctly:

__________________________________________________

| JOIN_ON_VALUES | LOCATION1 (VALUE) | LOCATION2 (VALUE) |
__________________________________________________
| INDEX1                 | 1                              | 1                             |
__________________________________________________
| INDEX3                 | 1                              | 0                             |
__________________________________________________

Ideally I would like a user to select random outlets (warehouse would be static on the report) and compare one or multiple and only show records that are 0 in the outlets. 

Any ideas someone?




Create indented child rows in SSRS report

$
0
0

I am trying to figure out how to create indented child rows under the parent, in SSRS report. I am quite new to SSRS, the group by function works in a different (and obvious) way then what I want.

I have a sample dataset as below.

Declare @Employee Table(Code varchar(10), Name varchar(500),
Organization varchar(100), IsChild bit, ParentId varchar(10))

insert into @Employee Values('BR456','Brandon','XYZ',0,NULL)
insert into @Employee Values('CR674','Carolina','ABC',0,NULL)
insert into @Employee Values('ME230','Melissa','PQR',1,'CR674')
insert into @Employee Values('JR987','Jerome','LMN',0,NULL)
insert into @Employee Values('JO435','Joseph','IJK',0,NULL)
insert into @Employee Values('ME321','Meghan','UVW',1,'JO435')

Here, Melissa is child of Carolina & Meghan is child to Joseph.  I could not find example matching this.

Is it possible to make this using some formatting options?

I am looking for below result.ME230 is slightly indented, as it is child.


Code

Name

Organization

BR456                   

Brandon

XYZ

CR674

Carolina

ABC

   ME230

Melissa

PQR

JR987

Jerome

LMN

JO435

Joseph

IJK

   ME321

Meghan

UVW

Report builder - how to use multiple-value parameter in dataset control?

$
0
0

I have used my parameter value in where clause of my dataset control SQL query. When I choose a single value in my multiple-value parameter then I get output as expected. Hovewer when I choose multuple values I get an arror:

Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
----------------------------
Query execution failed for dataset 'DATABASE'. (rsErrorExecutingCommand)
----------------------------
An error has occurred during report processing. (rsProcessingAborted)

I am convinced that it's a syntax problem. Is there a way I can change syntax of data output from query:

select @parameter

I need output to be like: value, value, value ... etc.

The dataset control query looks something like the following:

select
ID,
a,
b,
c,
d
from DATASET.dbo.Table
where ID in (select @parameter)

I have been searching through google for weeks to solve this and got this far and got stuck. Is it possible at all to achieve what I am looking for?

Regards,

Meva


using iif expression for visibility for stacked column

$
0
0
Hello, Please I have a stacked column with 2 series("phones", "no phones") on the categories, What I am trying to do is to show only one of the series in each category,
I used the visibility option in the series properties, and chose show or hide based on an expression
using the expression below
iif(Fields!PENETRATIONSERIES.Value="no phone",FALSE,TRUE) i get no graph , But when I switch the true and false value, the graph show with the two series there, please any hint

Double Doughnut

$
0
0
Is there anyway to create a double doughnut chart in SSRS?

x

Display issues

$
0
0

Hi,

I have built an SSRS report and fetching my data from an ERP system, previously we have done the same way and the reports are working fine, but only one report which is also working fine but when the values displayed in Preview or Excel, we cannot see values in Excel, when we click on the cell we can see the values in formula bar, but not in the cell. When we select the cell and change the color it will then display the values. In this report many of the values are displayed correctly, but some are not displayed, so every time we need to change the color of entire report. This is causing issues to the end users. Request you to kindly guide us to resolve this issue on TOP PRIORITY.

Regards

Krishna Marella

Data-Driven Subscription issue in SSRS 2012

$
0
0
Hello,

We are facing an issue related to SSRS 2012. We have Reporting Services 2012 configured on a couple of servers. On one server, we have created Datasources and Data-driven subscriptions for our reports and selected email as the report delivery option. But the subscriptions are not working. The LastRunTime column is NULL in the Subscriptions table in the ReportServer database and no email is being triggered. Also, no error message is displayed.

The same reporting solution is working on another server that also uses Reporting Services 2012.

We are unable to figure out the issue. Kindly guide us as to what have we missed out on.

Report Viewer 2012 (ReportViewer.msi) is not recognizing microsoft system clr types(SQLSysClrTypes.msi) in the system

$
0
0

When i try to install Report Viewer 2012 on Windows 2013 server i am getting following error.

after above error i have installed SqlSysClrTypes 32 and 64 bit versions as shown in below figure.

after prerequisite installation , i am still getting the CLR types for Sql server 2012 error when i try to install report viewer on the server.,

Why Report viewer is not looking into installed prerequisites?



SSRS 2008 R2 Subscription Email Error (only with Attachments)

$
0
0

I am having the same issue as in the following post http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/6a4ee2d8-23ce-4b68-a14e-fe7024cb58ea.

I have SSRS 2008 R2 set up on a Windows Server 2008 SP2 server.

Everything works fine, with the exception of subscriptions with an attachment.  If the subscription is just a link, it works fine.  In reviewing the log files, I get the following error info:

library!WindowsService_8!e6c!04/25/2011-13:32:06:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: AuthzInitializeContextFromSid: Win32 error: 5; possible reason - service account doesn't have rights to check domain user SIDs., Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!WindowsService_8!e6c!04/25/2011-13:32:06:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
emailextension!WindowsService_8!e6c!04/25/2011-13:32:06:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The report server has encountered a configuration error.  ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
notification!WindowsService_8!e6c!04/25/2011-13:32:06:: e ERROR: Error occured processing subscription bf7ba260-6f39-4915-834c-70ca36a616ef: Failure sending mail: The report server has encountered a configuration error. Mail will not be resent.

When I review the KB article mentioned (link below), the top specifically says "NoteThis problem does not occur in Windows Server 2008"

http://support.microsoft.com/kb/842423

Since I have it installed on a Windows Server 2008 box, and am experiencing this issue, is there something different that people know of for that version of Windows Server?


- Glenda

Problem in Displaying Fixed No of Rows in each page of matrix inside of List

$
0
0

Hi,

i want to display 8  rows in each page also want to combine two more matrix so here i have used list to combine all the matrix

and i used "ceiling(RowNumber(nothing)/8)"this Expression in the list grouping and below to this added common grouping column. 

but it is not working properly.


GVRSPK VENI

How to sum the data labels to a total in my chart diagram?

$
0
0

Hi

I am counting order type by a field which can have 3 different values.In a stacked column chart I am displaying the count of those different values, and showing a data label with the count for each order type. See screenshot.

Now I would like to show a line based on the total of each order type. I can see that SSRS already know the number of each order type as it is shown in the labels.How do I add those numbers (shown in the labels) together and get it into a Total field?I would prefer not to alter my SQL query, if possible.



Select between From and To Dates in multiple parameter report

$
0
0

Hi All,

I have a report that uses several filters including a from and to date filter, I have  a field named TimeLastMod which is a Timestamp. I am extracting the From and To dates from this field using Select format(TimeLastMod,'MMM') as FromMonth,format(TimeLastMod,'MMM') as ToMonth From Eventlogs syntax. These I pass on to a parameter and eventually to a tablix filter in an between opeartion.  When I run the report, the records returned by the report is not what is expected as it sometimes returns an extra months data eg using between Aug and Sept will return october data as well.

Thanks and Regards,

SSRS 2008 r2 cascading parameters - visible only when certain criteria previously selected

$
0
0

I am creating a report where there are 3 tables in one report which have visibility set as an expression so that when a certain criteria is selected in the "Report" parameter, a different table is shown below.  This works as expected.

When table 3 is shown, I want a new parameter to be visible to the user called "Ward" where the user will select the ward they are interested in and the table will display data below just for the ward selected.  However, I don't want the ward parameter visible when either of the other 2 options are selected.

Is this possible and can anyone advise how to do this? 

Many thanks

Natalie

run a report in a for loop

$
0
0

Hell all..

     first of all sorry if my question is a bit stupid. but i don't know reporting services that well.

    My problem is:

       i have an order , (order id) and multiple boxes (ex: 7 boxes)

      i must create a report, that contains among others a bar code => composed like this : "orderId+01" for the first box, "orderId+02" for the second box, .... , "orderId+07" for the 7-th box

     i need this report to repeat itself for each box , only the bar code is changed.

    once i call it , it must generate 7 labels in this example.

    now i am able to generate only one report :(

    any ideas? anything helps...

i am using report builder 3.0

Thank you very much!


Hope it helps. Spiri


Unable to run report on report manager using windows authentication

$
0
0

Hello,

I was able to log in to SSRS report manager. But i was unable to run a report i designed on report builder.

It prompts for login when i wanted to run the report and i used the same windows authentication to sign in

It will show me the parameters but when i click on view report it gives this error

 "Data source 'DataSource1': An error has occurred. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'DataSource1'. ---> System.Data.SqlClient.SqlException: Login failed for user 'Acc-11\Admin'."

Please how do i rectify this.

Thank you

God bless


Akintayo Kemi


Export to excel with Reporting Services 2012 on an IPad

$
0
0

I manage a Sales MIS Reports System, which has been in Production since 2006 for a Pharma company. The web app is built on ASP.NET with SQL Server Reporting Server 2012. This May we migrated to SQL Reporting Services 2012, as IPad support for reports was required.

A Safari on IPad limitation which we knew of and documented was lack of "Export to Excel" feature for SSRS 2012 reports (only export to .PDF and .TIFF supported). The same report on a desktop browser allows me all export functionality.

But now an overwhelming number of IPad users have come back with the requirement to support "Export to Excel" on the IPad.We were also surprised to discover that few of these users were provided IPads last year and they were accessing the old SSRS 2008 R2 reports (even though we did not support it). 

And these users were exporting reports to excel on the IPad since last year. These users are especially annoyed that we broke existing functionality while moving to a new version which was supposed to support IPads.

Any ideas on how we can provide the "Export to Excel" functionality for these IPad users.

Thanks
A. Tauro


Avinash Tauro

Getting Error while clicking "Manage" on the Report from report manager url

$
0
0

Hi, 

I have to deploy some reports to my report server, So i have uploaded my report files and when i tried to click on the drop  button and click "MANAGE" I am getting the below error

An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help For more information about this error navigate to the report server on the local server machine, or enable remote errors

But if tried the deploy the reports through BIDS application, right click DEPLOY. That time I am not getting any error when i click on Manage.

But i cant use this method in PROD deployment. 

Any help would be much appreciated !


S B A

SSRS Group Total Expression - Add Total Disabled

$
0
0

Hi All,

For some reason my Add Total is grey out, when i tried to add grand total using some expression.

I have two row & two column groups?

Is there any alternative or how can i enable add total? using expression..as you can see in my Attached Image

I'm using iff condition in my expression.. 

Thanks

 


Parameter is missing a value

$
0
0

Hi there,

 

I have an issue where I need to set a whole bunch of internal parameters' values to the result of a dataset first executed with the report...nothing new or majestic about it.

 

The problem is that the 'First dataset', under some parameter values, return no records..it is empty (which is fine). But this meas that these internal parameters error my report as the 'NEED' a value even though I have specified a default, I still get the 'Paremeter X is missing a value' error. I just want the other datasets, which are reliant on these erroring parameters to either execute with parameter values of 0 or not execute at all. Thus I want the sub datasets to return with blank data in this case or not execute at all.

 

How can I achieve this? I am at a loss.

 

Cheers

Milke

SSRS Only Display One Row

$
0
0

Hi people,

I am using VS 2010 and the SSRS that came with it. I am sure its SSRS 2008. Anyway, I added a report file to the project, added an ObjectDataSource and connected this to SQLServer 2008, and display the dataset on the report. The report is using ScriptManager, ReportViewer1, and Report1.rdlc file. I preview the dataset and I have multiple row returned. The problem is I only have one row displayed on the report. Maybe I did a quick and dirty report? What setting of properties did I missed?

BlueMarker

Viewing all 10045 articles
Browse latest View live


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