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

SharePoint | Report Builder | 2 Lists

$
0
0

Need a little help please. I have 2 identical SharePoint lists. (Active & Archive). What I want to do is take a column from each and count them.

If I was just using one list, I understand my steps would be;

  1. Open Report Builder, Insert Table and link to my one list (Active) 
  2. Select Column (Team)
  3. add expression:   =Count(Fields!ID.Value)

My result would be something like 

Team A   5

Team B   2

Team C   1

So I want to do the same using both lists. (Active and Archive) My results should be something like, 

Team A   12

Team B    5

Team C    8

How can I do this?



Multi-value list passing in wild card search using user prompt parameter SSRS 2008 r2(text box)is showing incorrect o/p when retrieving values

$
0
0

Function and procedure definition

Create a Table valued function in SQL Functions as below Step 1 CREATE FUNCTION [dbo].[FnSplit] ( @List nvarchar(2000), @SplitOn nvarchar(5) ) RETURNS @RtnValue table ( Id int identity(1,1), Value nvarchar(100) ) AS BEGIN While (Charindex(@SplitOn,@List)>0) Begin Insert Into @RtnValue (value) Select Value = ltrim(rtrim(Substring(@List,1,Charindex(@SplitOn,@List)-1))) Set @List = Substring(@List,Charindex(@SplitOn,@List)+len(@SplitOn),len(@List)) End Insert Into @RtnValue (Value) Select Value = ltrim(rtrim(@List)) Return END CREATE proc ProcedureName @lists varchar(2000) as DECLARE @SQL NVARCHAR(4000) = 'SELECT Table_name.* FROM Table_name WHERE ' SELECT @SQL=@SQL+ STUFF((SELECT filter+'' FROM (SELECT DISTINCT 'OR NUM LIKE ''%'+value+'%''' AS filter FROM dbo.FNSPLIT(@lists,','))T FOR XML PATH('')),1,2,'') EXEC SP_EXECUTESQL @SQL GO

I have 2 ssrs parameters text boxes 

1. Accepts a list of values 

2.Other box shows the result.

The data is always in the following varchar format- 'xyz123456' or 'xyz76859-12345'

With the above function we split and pass the data to sp which retrieves the result and shows to the user

E.G 

Right now the o/p 

when we pass single value -xyz123456 we get xyz123456

when we pass xyz we get a all the available xyz values .

When we pass a  comma separated list continous -(xyz123456 ,xyz76859-12345 )we get the xyz123456 ,xyz76859-12345 output shown in drop down box

However when we pass comma separated list (because of the muti-value parameters which allows newline ) text box 

xyz123456, (new line for illustration)
xyz76859-12345(newline for illustration)

 the o/p

we get all other values including the ones which we pass e,g .

xyz123456
xyz76859-12345

xyz563456

xyz333456

We are trimming the user prompt parameter- VarCode which we are passing to the dataset which calls the sp using the 

=ltrim(rTrim(Join(Parameters!VarCode.Value,","))) but even then we are facing unwanted o/p?






Register Power BI with SQL Server 2016

$
0
0

I am following this article:

http://biinsight.com/ssrs-2016-power-bi/

but in my SSRS config Manager I dont see Power BI tab. Why is that?

Thanks


Pass Field values to multi-value parameter in another report

$
0
0

I have row and column groups that aggregate counts for a high level report.  I want to have another report that accepts a list of IDs from the high level report and displays information for those IDs.

Example:

I have 12 people that finished project A in January and a different 9 people that finished project B in February.  The counts display correctly in the main report but when I click on one of the numbers it should go to a details report.  This details report will always display the same information for a given ID but the IDs might change.  I am trying to pass the Fields!ID.value to a mult-value parameter in the details report but the best I have achieved is getting the first ID to be sent.  Is there any way to do this?

SSRS - Use combination of dates parameter and drop down list parameter

$
0
0

Hello,

I have a hard time to manage date range in month or year in SSRS calling a third parameter dropdown list.

Here are my two queries from two different data set.

Query for DataSet1:
SELECT Item, Rev, Qty, Date
FROM   Table1
WHERE  Date BETWEEN @FromDate AND @ToDate

Query for DataSet2:
select ID, Option from Table2

I have included three images that show what have already done.

IMAGE1:

IMAGE2:



IMAGE3:

I would really appreciate it if you could help me.

Jean







Set Default zoom in SSRS report viewer web part

$
0
0

Using SQL Server 2014, I have a SSRS report. I use the Reporting Services Viewer to display the report on Sharepoint site, so users can view this report on main page.

I need to set default zoom to "Page Width". I know how to pass a zoom parameter Within a URL, but have no idea how to apply defaul zoom for SSRS report viewer web part.

Hope for help with solution, if it is possible.

SSRS 2016 Mobile Reports / Passing Parameters via URL

$
0
0

Hi,

I know that this topic might have been discussed before as in the below link which indicates that this feature doesnot currently exist inSSRS 2016 Mobile Reports:

How to pass a parameter to ssrs 2016 mobile reports

Also, I want to make sure that the below feature is only valid for Paginated Reports and not forMobile Reports:

URL Access (SSRS)

The reason for that, is that we have a project that depends on passing parameters to a report through URL, so the whole project depends on the availability  of this feature. So, if this feature does not officially exist inSSRS 2016 Mobile Reports, then I have to return back with this official statement from Microsoft to management in my organization in order to take the appropriate decision regarding this project...

Please advise... 


Luai7

Passing Data Parameters to Oracle Query

$
0
0

"with" SELECT        TRUNC(TO_DATE(: StartDate, 'yyyy-mm-dd')) p_date
              FROM            dual AS parameters
                                           SELECT        vax_feed_dt, create_dt, vax_file_name, vax_feed_type, load_status
                                            FROM            vax_load_audit
                                            WHERE        trunc(vax_feed_dt) between parameters.p_date - 8 and  parameters.p_date

The above is not working fine for me. Can anyone help on this

StartDate is a report parameter Datatype as Date.


ssrs 2008R2 setup and configuration FQDN

Switch Parameter Values correctly.

$
0
0

Hello I am trying to get a certain parameter value to show.

E.g. I have 3 different parameter values, 1 ,2, and 3.   I am trying to create another parameter value which switches and shows me either 1 or 2 or 3.  Depending if there are parameter values inserted into it. 

So I have written this code.  

	   =Switch(Not(IsNothing(Parameters!1.Value)),Parameters!1.Value
               ,IsNothing(Parameters!1.Value),Parameters!2.Value,
			   (IsNothing(Parameters!1.Value) And IsNothing(Parameters!2.Value)), Parameters!3.Value)

This works for showing parameter 1 correctly, 

If parameter 1 is blank/null then parameter 2 shows correctly. 

It fails on Parameter 1 and parameter 2 is blank/null then show parameter 3.  So what am I doing wrong on the 3rd line for it not to show me parameter 3?

Any help would be great. 


SSRS E-Mail Settings and Office 365 E-Mail Account

$
0
0

Hi,

I would like to configure my Reporting Services so that a group of end-users can subscribe to a series of reports, but my email account resides on O365 and I don't know what values to use for the email settings.

Any suggestions would be greatly appreciated.

Saeed Fattahi


Saeed Fattahi .NET Specialist


SSRS subscription is not visible but is still running.

$
0
0

 I have SSRS integrated with SharePoint 2010.  I have a monthly subscription running on one of my reports, when I logged in last month to check on it, it seemed to have disappeared.  I was confused, but I recreated the subscription (as  best as I could remember).  This month, I get the report twice (with slightly different parameter settings). It looks like the old subscription is still running even though I cannot see it in SharePoint.

 I logged into my SharePoint/RS SQL DB instance and ran this statement:

  DECLARE @myReportFileName varchar(50) = 'MyReport.rdl';
   SELECT
      c.Name
     ,u.UserName
     ,s.* 
   FROM
     dbo.subscriptions s 
     INNER JOIN [dbo].[Catalog] c ON s.Report_OID = c.ItemID
     LEFT JOIN dbo.Users u ON s.OwnerID = u.UserID
    WHERE
      c.Name LIKE @myReportFileName
   ;

I can see two rows in the subscriptions table, with the LastRunTime corresponding to the dates I received my reports.

Both subscriptions are in my name (OwnerID), but as I said before, only one appears in SharePoint under "Manage Subscriptions" for that report.

How can I access this hidden subscription.  If I cannot otherwise access this subscription, can I just delete the extra row from the Subscriptions table?


TIA


add time to date

$
0
0

Hi,

This expression "=DateSerial(Year(Now())-1, 12, 31)" populates a Parameter with "December 31" of last year i.e. "12/31/2015". I want to add midnight time "11:59:59 PM" So it look like "12/31/2015 11:59:59 PM".

Regards

SSRS2016 - Date/Time parameter problem

$
0
0

Hi,

In SSRS2016, there is a date/time parameter (Parameter Name: fromdate) in report. When I choose, 8/10/2016 (10-Aug-16) in fromdate parameter, I see following value under Parameters field of report server view: ExecutionLog3

fromdate=8%2F10%2F2016%2012%3A00%3A00%20AM

for the same report, in SSRS2008R2, I see following value under Parameters field of report server view: ExecutionLog3

fromdate=08/10/2016 00:00:00

This SSRS2016 behavior for date/time parameter’s value is causing error while executing query.

Thanks,

Aftab


Aftab Ansari

Upgrading from Visual Studio 2008 to Visual Studio 2015

$
0
0

Hello,

We are looking to upgrade from Visual Studio 2008 to Visual Studio 2015 and I am wondering what issues we might have and what the best way to go about this would be. I am worried about compatibility issues and any other issues that we would have. Also are there any compatibility issues with Internet Explorer or Google Chrome? I was wondering if there there are any conversion issues when converting .rdl files from 2008 to 2015. 

Thanks,

Tom


Send SSRS report with Filtering capabilities

$
0
0

I've created a Sales Report that is grouped and page breaked by Manager ID.  So every day the staff can get this information for their specific page(s) only (via hard copy).  I guess I've been killing to many trees in this approach so my boss has asked me to send this report to the manager's file share directory (or rather their specific page(s) to their directory).  I realize that I could create separate SSRS reports for each manager and thus a separate subscription but if the report gets changed for any reason (and I'm pretty sure that it often will) then I have to recreate the subscription process from scratch.  Quite the pain.

Is there a way to programmatically send this single report out with some sort of filter integrated into the report?

Brian

2016 SSRS Will Not Start With Network Service but will with Local System

$
0
0

Fresh un configured install of SSRS 2016. Service will not start when using Network Service however if it is switched to Local System it start fine. Would like to use this with the less privileged account and to be sure that it is not an issue as we begin rolling out 2016. Any experience this issue?

Service start times out with generic error quickly.

When using Network Service, Logs indicate ERROR , ReportingServicesService.exe, Right instance-specific key can not be determined

AND

ERROR: CLR runtime initialization error: error type=3, hr=0x80131534, updated=1, state=15.
ERROR: Failure happened during critical phase of CLR initialization.
ERROR: CLR runtime initialization failed. Generating a dump and exiting the process.

Have reinstalled several times and have attempted repair of .NET components. Have tried the services pipe timeout fix also and the aspnet_regiis -ga 'servicename' also.

'Form' type of reports (created inside a LIST) in SSRS?

$
0
0

I have created a report using a LIST. Below image is the expected output. Think this as a "College Form" with the college contact information.

GREEN BOX - All the records are placed in a textbox inside the LIST and working as expected.

Please suggest if this can be put in a TABLE inside a LIST?

ORANGE BOX - Currently, the orange box records are getting scattered in different pages, may be because of the textbox inside a LIST. (Example: Corporate 1 - Admin 1 in Page 1, Corporate 1 - Admin 2 in Page 5, Corporate 1 - Admin 3 in Page 10).

How do I design so that all the corporate 1 records are in one page and same with other corporate records(as the orange box shown in the image)?

Do I need to create a 'TABLE' inside the LIST? Is it possible?

Any help would be great. Thanks in advance. 

Modifying the Manage Subscrptions page in SharePoint Report Server Integration mode.

$
0
0

When creating an SSRS report subscription in SharePoint mode integrated, there are 6 columns which show data about the scheduled reports.

  • Type
  • Delivery Extension
  • Description
  • Event
  • Last Run
  • Last Results

The Description column is completely useless, as the Last Results column shows the same data.

Is there any way to modify the Description field to show the Subject field of the emailed report instead?

We have multiple copies of the same report going to the same recipients for different timeframes (Daily, Weekly, Monthly). Sometimes, we have the same report going to the same recipient, but for different teams. Currently, it is impossible to determine which report is which without opening each one up. If there were a way to use the Subject field in the scheduled report as the description, this would provide the needed information on the Manage Subscriptions page.

Word rendering in ssrs 2008 r2/ssrs2014 to repeat headers workaround is not functioning for my report design which has a list and a tablix

$
0
0

My report structure shown below which is a list containing a tablix and I am trying to repeat header in word export by following the below article

Note : I dont have header

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/fd58a159-7462-46d8-af44-2d6eb33066fe/ssrs-2008-when-exporting-to-word-repeat-header-rows-on-each-page-functionality-does-not-work?forum=sqlreportingservices

Unfortunately its not working.


I tried thesebelow  steps on the tablix but i keep getting error message -saying scope is invalid .I cant copy the error becasuse it comes during preview which doesnt let to copy.

Steps:

Assume one Word page can contains 20 rows. So, you can insert a Parent Group for your subreport, and its group expression is =(RowNumber(Nothing) -1) \ 20 and click the "Add the group header" and enable this group page break function in this group properties window. Delete the table header row and fill in the content into the group header. Now, one group will be in one page, and one group has its own header. But this way is not smart due to it is limited by the number of rows of the word or PDF.




Viewing all 28687 articles
Browse latest View live


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