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

refer to another table

$
0
0

Hi,
There are two tables in the report.
Each table is populated from a separate dataset i.e. ds1 and ds2
Question:
How is it possible from within table2 cell, refer to a value which is inside a cell in table1 ?

Thanks


Please need help with date format

$
0
0

Hi All,

I have a SSRS Report. The data source is a stored procedure. It is using two date parameters "FromPurchaseDate" and "ToPurchaseDate".

When i execute the SP and enter the date as '08/26/2016' and '08/27/2016' i get data.

In the report when i right click on the dataset and query and try to execute the stored procedure and enter the same date range am getting the error:

TITLE: Microsoft SQL Server Report Builder
------------------------------

An error occurred while executing the query.
Failed to convert parameter value from a String to a DateTime.

------------------------------
ADDITIONAL INFORMATION:

Failed to convert parameter value from a String to a DateTime. (mscorlib)

------------------------------

String was not recognized as a valid DateTime. (mscorlib)

------------------------------
BUTTONS:

OK
------------------------------

In my stored procedure i have a convert and declared the dates as DATE

Any idea why this is happening

Please need help.

Thanks

X-Frame-Options SameOrigin

$
0
0

We have a need to open the subscription properties page in SSRS 2008 R2 from a different web server in an IFrame. Apparently the subscription properties page sets the X-Frame-Options Header to SameOrigin for this page. Is there any way/settings in SSRS that I can use to turn off the header for this page. This is all intranet deployment so there are no security concerns as such with opening a page from different page in an IFrame. 
I have noticed that the other pages in Report Server do not set this header. So I am hoping that there is some setting where in I can override the default http headers of subscription properties page.It is not working on IIS so customheaders in web.config did not help. 
The workaround via rewrite subscription using SSRS WS can't be used.

I tried to use HTTPModule with SSRS but response.Headers.Remove(XFRAMEOPTIONS_HEADERNAME) throw exception PlatformNotSupportedException - since it is not IIS.

Any pointers/help will be greatly appreciated.

Convert doc-files to rdl-files

$
0
0

Hello,

 

I might have a rather strange question but I was wondering if there is a way/tool that can be used to convert/import Word documents (.doc) into Reporting Services report files (.rdl). The problem is that I have lots of Word documents containing e.g. survey question. The reports are very extensive with many pages and many "graphical" objects e.g. rectangles etc.. Now I want to have all these reports imported into Reporting Services, i.e. I want the .doc-files to be converted to .rdl-files. I do not want to use e.g. OfficeWriter but I want the .doc-files to be migrated to the rdl-format. Is that possible, is there a tool for this? Both file formats are Microsoft formats, so there should be a conversation tool right?

 

Best Regards

Lars

End date greater than Start date

$
0
0

Hello,

I am working on an SSRS report that has the following requirement:

-         The [End Date] needs to be greater than the [Start Date]

Additionally, users will have the opportunity to pick a date (Start & End) from a drop down list.

We have a stored procedure that returns a date range based on predefined conditions.

I used that stored proc to populate the two date drop down list.

In order to implement the above requirement, I created a second dataset, in Visual Studio, and filtered set result set using the User provided start date (coming from the drop down list).

This solution does not work.

My parameters are:

-         @StartDate (Datetime) coming from DateRangeDataSet

-         @EndDate (Datetime) coming from DateRangeDataSet_2

My datasets are:

-         MainDataSet (Actual data)

-         DateRangeDataSet

-         DateRangeDataSet_2 (identical to DateRangeDataSet but filtered within SSRS using the @StartDate parameter)

Any help to implement this would be much appreciated. Thank you

SSRS error- Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object when you select all parameter values

$
0
0

SSRS error- Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object when you select all parameter values.

I never used to face this issue as I was able to select all and get all the values.

The values are basically codes - 

e.g xyz123

xyz234

xyz456

but today all of a sudden its showing this error

As per google it says because of Microsoft  security patch.

The dataytype of this column is string

ssrs 2014




How to divide a pie chart internally in SSRS

$
0
0

I have  data 

Where % of Total Voids is  : TotalVoid of Individual/TotalVoid *100 and % of Reissued is Void Reissued for individual/TotalVoid Individual*100.

Above chart shows % of Total Voids ,now in this I want to divide Pie chart such that it also shows %Reissued.

For example OfficerName Duncan, OfficerId 0000 has % total Void as 42% now again this has 88% as Reissued so I want to divide this portion again.

Is that possible?





Is data purge feature available in SSRS 2014 projects in Visual studio 2013?

$
0
0

In old SSRS 2008 R2 we used purge data by deleting the rdl data file.

SSRS doesn’t offer by default data purging feature but you can try this cool feature

If you are working with SSRS reports and you want to purge the report data( which is cached in .data files) and preview the report then follow the below instructions

 

Instructions

  1.       Go to Tools > External Tools...
  2.       Add a new tool with the following settings:
  3.       Title: Clear Report Data Cache
  4.       Command: "%WinDir%\System32\cmd.exe"
  5.       Arguments: /C DEL /S /Q "$(SolutionDir)\*.rdl.data"
  6.       Check options: Use Output window & Close on exit

Now whenever you want to delete your report data cache, just go to Tools > Clear Report Data Cache.



Now whenever you want to delete your report data cache, just go to Tools > Clear Report Data Cache.

Is there any by default purge option or we need to configure this in VS 2013 ?






Report mobile builder não reconhece campos do tipo DATA importados do analytics

$
0
0
Hello,

My company used the Datazen to build some dashboards some time . Just upgrade SQL Server to the 2016 version but we have a problem .
When importing the Dataset for mobilebuilder it does not recognize the fields of date type , as modified mascara field in analysis to various formats but even so it does not recognize .

Someone had the same problem ? You know what can be ?

power view missing from ribbon excel 2013

$
0
0

I have office professional plus 2013

I have checked the box in com add in's for power view and it says it it's currently loaded.

however power view does not apear on the ribbon?

what's even more interesting is I can see it in the customize ribbon section in excel options.  the box is also checked.



SSRS 2016 GA: Server error in ReportServer Application for non-Admins.

$
0
0

We installed SQL Server 2016 this week, and migrating reports from older versions onto the new SSRS instance.

We segregate reports/datasets into folders and then assign certain users to access each folder. As an Administrator, I can use Report Manager to navigate the folders and execute any of the reports successfully. I can also navigate the reportserver URL successfully at http:<server>/ReportServer/Pages/ReportViewer.aspx?<report>.

I've assigned a non-admin user as a Browser on the Home directory. That user can log into Report Manager and navigate the folder structure, but when trying to run a report it gets an error in the reportserver application (shown below). The same user gets the same error in navigating to the reportserver URL (listed above).

Server Error in '/ReportServer' Application.


Access is denied.

Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL. 

Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance.

I've set SSRS logging to level 4 in ReportingServicesService.exe, but haven't found anything helpful to me in the resulting logging:

rshost!rshost!18d4!06/29/2016-18:13:07:: v VERBOSE: AcceptCallback(): accepted new connection pipeline=0x000000E3180A1B90...
rshost!rshost!1a08!06/29/2016-18:13:07:: v VERBOSE: ThreadContinuePipeline: processing request on pipeline=0x000000E3180A1B90, state=0, IOError=0, node=0.
rshost!rshost!1a08!06/29/2016-18:13:07:: v VERBOSE: Processing request pipeline=0x000000E3180A1B90, callback=0x180a2620, callback->pipeline=0x000000E3180A1B90, id=18086456109962363304, connid=18086456109425492386 ...
webserver!ReportServer_0-1!1a08!06/29/2016-18:13:07:: v VERBOSE: Logging usage IP: 192.168.30.1, Username: {Domain}\scottlyons
runningrequests!ReportServer_0-1!1a08!06/29/2016-18:13:07:: v VERBOSE: User map'<Users><User><Name>{Domain}\scottlyons</Name><Paths><Path>http://{Server}/ReportServer/Pages/ReportViewer.aspx?{Report}&amp;rc:showbackbutton=true</Path><NrReq>1</NrReq></Paths></User></Users>'
library!ReportServer_0-1!1a08!06/29/2016-18:13:07:: i INFO: Call to GetItemTypeAction(/{Report}).
appdomainmanager!DefaultDomain!1bf4!06/29/2016-18:13:07:: v VERBOSE: GetAppDomainId for AppDomain type 'WindowsService' found AppDomain 2
servicecontroller!DefaultDomain!1bf4!06/29/2016-18:13:07:: v VERBOSE: ServiceAppDomainController::ServiceMaintenanceInternal - Mark the WindowsService (worker) AppDomain as active.
servicecontroller!DefaultDomain!1bf4!06/29/2016-18:13:07:: v VERBOSE: ServiceAppDomainController::MarkProcessAsActive - Mark the WindowsService (worker) AppDomain as active.
library!ReportServer_0-1!1a08!06/29/2016-18:13:07:: i INFO: Call to GetItemTypeAction completed. Returns 2.
rshost!rshost!1a08!06/29/2016-18:13:07:: v VERBOSE: HttpPipelineCallback::EndOfRequest(): continue pipeline=0x000000E3180A1B90.
rshost!rshost!18d4!06/29/2016-18:13:07:: v VERBOSE: ThreadContinuePipeline: processing request on pipeline=0x000000E3180A1B90, state=2, IOError=0, node=0.
appdomainmanager!DefaultDomain!1bf4!06/29/2016-18:13:08:: v VERBOSE: GetAppDomainId for AppDomain type 'WindowsService' found AppDomain 2
servicecontroller!DefaultDomain!1bf4!06/29/2016-18:13:08:: v VERBOSE: ServiceAppDomainController::ServiceMaintenanceInternal - Mark the WindowsService (worker) AppDomain as active.
servicecontroller!DefaultDomain!1bf4!06/29/2016-18:13:08:: v VERBOSE: ServiceAppDomainController::MarkProcessAsActive - Mark the WindowsService (worker) AppDomain as active.

My Reporting Services configuration is set to use the Virtual Service Account.

If I add the Browser user to the local Administrators group on the server, then the reports execute successfully. Remove it, they fail again.

I appreciate any and all help as I've gone in circles for a long time on this! Hoping there's a file system file with bad permissions or something simple to fix. Are there any suggestions?


Can't Configure Data Source for Azure

$
0
0

I have a web site currently running on a Rackspace server. I am moving it to Azure. I have moved the database into an Azure SQL server instance so that I don't have to pay for full time VM anymore.

I have also set up a smaller VM that I will use just to house the SSRS report server.

I copied my report project to this new VM and opened it in Visual Studio. I modified the SQL connection string to point to the Azure SQL database. I then preview the report in Visual Studio and it works fine. I can preview it and see data.

I deployed the report to the new VM (same computer). I stopped and started the SSRS service and browse to the report server page. I get the following error:

An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'MapItTrackIt'. (rsErrorOpeningConnection) The report server has encountered a configuration error. (rsServerConfigurationError)

So on the VM I go to the SSRS manager and browse to the /Reports page that allows for management inside a web browser.

I browse to this report and pull up the management pages for it.

There is a Data Source page. On this page when I hit Test Connection I see the following in red:

The report server has encountered a configuration error.

I set up all the same settings in this page as are in the Visual Studio Data Connection page that works and yet it doesn't work here.

I also tried creating a new shared data source and get the same error.

Can someone help me?


Math Sniper 3D,Math Aerobat,Math Gardener,Space Math,Lander Mania,Zombie Sniper 3D,Daniel Kole's DeadlySpace

Different Results for a stored procedure in Report vs Mangement Studio

$
0
0

I have a stored procedure which takes start date and end date, it performs a query and returns results in a pivot table.

The stored procedure works well I think.

If I run the stored procedure in a report I get a different result set using the same input values.

I have run it through the profiler and can see that report builder calls the stored procedure liks this.

exec usp_PC_corp_KPIHrs @startdate='2016-08-28 00:00:00',@enddate='2016-09-07 00:00:00

Running the stored procedure from management studio looks like this.

exec usp_PC_corp_EmployeeKPIHrs123 '20160828','20160907'

I have no idea how I can get two different results when I appear to be running the same sql statement.

If I pick up the profiler response from the report builder and run it via management studio I get a different result.

Running the query in the query designer also returns the same results as if I had run the query in management studio.  Yes different to running the query in the report.

The tablix properties in the report is not filtering any of the results.

how to pass a parameter to ssrs 2016 mobile reports

$
0
0

Hi,

Can anyone point to the documentation (or other resources) for passing a parameter to SQL Server 2016 mobile reports in a url?

I have found no examples of syntax, unless it can be assumed that it is exactly the same as paginated report.

Thanks

Sending text and table in email message body

$
0
0

Hello,

I would like to add some text to the email message body, preferably before inserting a table. I am successfully able to send results of a select statement as shown in code below. The string showing up ring above the table is showing up formatted in a pretty big font size.

Is there a way to insert text coming from a parameter value in between the large text (already displayed) and the table ?

Please see my code for reference.

DECLARE @tableHTML  NVARCHAR(MAX) ;

		SET @tableHTML =
			N'<H1>Report Distribution Update Notification</H1>' +
			-- I'm trying to insert a string block here. The string showing here will be a combination of text + parameter value
			-- e.g: 'Some text showing up in email" + @paramter
			N'<table border="1">' +
			N'<tr><th>Type</th><th>ID</th>' +
			N'<th>ReportName</th><th>Frequency</th><th>RunReport</th></tr>' +
			CAST ( ( SELECT td = Type,       '',
							td = ID, '',
							td = ReportName, '',
							td = Frequency, '',
							td = Case When RunReport = 1 Then 'True' Else 'False' End
					  FROM #ResultSet
					  FOR XML PATH('tr'), TYPE
			) AS NVARCHAR(MAX) ) +
			N'</table>' ;

		EXEC msdb.dbo.sp_send_dbmail
			@profile_name = 'smtp.company.com',
			@recipients='t.m@company.com',
			@subject = 'Successful update of RunReport flag on attached reports',
			@body = @tableHTML,
			@body_format = 'HTML' ;

Any assistance would be much appreciated.

Thanks


HUGE Mobile Report Publisher BUG. Don't think about connecting to SSAS Model with any parameters!!

$
0
0

Please read this entire post before commenting.  I have been trying to get some kind of acknowledgement from Microsoft on this problem in other posts but finally just needed to make this known.  Mobile Report Publisher cannot connect to parameterized datasets if it's connected to an SSAS Tabular Model.

I keep getting half responses like "update to latest mobile reports publisher" or "specify a default parameter" but I'm telling you, the functionality is broken!

I have a dataset that is connected to an SSAS Tabular model.  The model works fine in MS Excel or in SQL Report Builder 2014.
I have created a dataset using Report Builder 2016 and added a parameter to it.  We need the parameter so the report can be filtered before it is rendered to the client.  For now, I am leaving the parmeter blank to fully demonstate the problem

The Operator Name is just a customer name.

When I try and connect the Mobile Report to this dataset, I get the following error:

I then add a default value for the parameter.

I run the query and data is returned in the designer.

When I try to connect Mobile Report Publisher to the Dataset, I now get this error.

MS, can you please explain why this doesn't work.  This has to be a bug and a huge one at that!

Using a Parameter to fully Filter a Column in SSRS

$
0
0

Hi,  I know there has been some discussions on this but I am unable to find a solution for my problem. I have a SSRS table that looks like this:

Ticker	Company	        AcqDate
AAA	CompanyAAA	2016-07-01
	CompanyAAA	2016-08-01
	CompanyAAA	2016-09-06
	CompanyAAA	2016-09-07
BBB	CompanyBBB	2016-07-04
	CompanyBBB	2016-07-09
	CompanyBBB	2016-08-08
CCC	CompanyCCC	2016-08-09
	CompanyCCC	2016-09-06
	CompanyCCC	2016-09-07

The above is a sample and in the actual report there are about 50 Tickers. The end user would like me to add a Filter to the report so they can see the information for just one, two or however many Tickers they want. I did the following steps:

  1. Created a new dataset ("DataSet2") from the same datasource using the query SELECT DISTINCT Ticker
  2. Created a new Parameter called "Tickers". Under the Parameter Property's General properties, I checked "Allow multiple values".
  3. For the Parameter's Available values, I chose"Get values from a query" and then picked "DataSet2" for dataset, "Ticker" for value field and "Ticker" again for Label field.

When I run this report, the parameter shows up as a drop-down filter on the Preview pane and gives me the option to choose however many Tickers I like from a dropdown list.

The issue is no matter how many Tickers I choose, I keep seeing the report for all the Tickers instead of the one/ones I picked in the dropdown.

What am I doing wrong/ not doing?



Group summation omission/filter

$
0
0

I have a time report that has rows based on job number and by job code. The problem that I have is that we need to include the labor code of UPT (unpaid time) on the report but we do not want that time included in the group total at the bottom. I was able to use an IIF statement in the Total column on the far right to zero out the time if it was UPT, however when I try and use the same IIF statement in the row group at the bottom it does not work. Is there any way to achieve this?

Thank you

Don Price


Don Price

SharePoint Multi-Select box returning ;# text ;# in my report. How can I hide these characters in Report Builder?

$
0
0
We have several multi-select check box columns and have created a simple report in Report Builder. The report is working great, but the few of these columns display ;# Widget ;# How can I hide the ";#" characters?


Create Group if Field Contains

$
0
0

I am very new to SSRS.  I'm trying to create a report to count daily jail population by current housing unit.  Right now the housing description field is separated down to the bunk.  I need to group these by larger housing unit and count the total inmates assigned.

Example:

AGENCY JAIL CB.9 CELL 910 BUNK1

AGENCY JAIL CB.9 CELL 910 BUNK2

AGENCY JAIL CB.9 CELL 910 BUNK 3

AGENCY JAIL POD.F DORM 1 BUNK 103

AGENCY JAIL MDW.EAST CELL 100 BUNK 1

I need to group these by the CB.9, POD.F, MDW.EAST part of the field and count the total inmates housed.

How do I do this in SSRS?

Thanks!

 
Viewing all 10045 articles
Browse latest View live


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