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

Sum Time Datatype in SSRS

$
0
0

Hi,

I have a duration_time column in SQL which is TIME datatype.

In my SSRS report I want to be able SUM the duration_time, when I just add SUM before it, is give me #error.

I have looked and I think I might need to covert it however unsure how.

thanks



SSRS custom report based on parameters

$
0
0

Hi,

I am building a report which is passing multiple parameters. The parameters are region, solution, report_timeframe,role,name,client and server.

Is it possible to view two different reports based on the selections.

For instance - Region, Solution and report_timeframe have default values set. Is it possible to not chose the other parameters and view the report. If yes, I want to view one report for this.

But, if Role is selected I want a different report to be visible.

Thanks in advance for the help! :)

Subreport not filtering values correctly

$
0
0

I have a main report which looks like below.

So, when I select on a section only those values should be displayed in subreport(I am using drill-downs here)

Issue is the same data shows up for whatever Section I select instead of changing dynamically.

Main Report Section - hyperlink

Design getting disturbed based on data on the SSRS Report AX 2012

$
0
0

Hi,

I am stuck up in some report alignment issue as detailed below:

Note: I have a good image to show u the report output template but since I cannot insert the image i just wrote Header , Body & Footer.

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

Header

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

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

Body

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

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

Footer

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

1. My data increases in the BODY depending upon the # of records.

2. I have to print the data on the Pre-Printed form that we have.

3. Now Issue is when I am executing the report containing [Case-1] Only 2 Records ; [Case-2] Only 4 Records. In some records the string is long enough so that it spans to more than one line in the tablix textbox.

4. Now when I see the report for Case-1 & Case-2 as said above, the content SPECIALLY below the BODY i.e. in FOOTER and Above the BODY i.e. HEADER gets disturbed in alignment i.e. are pushed down & disturbs the alignment and hence does not print the data in the proper alignment on the Pre-Printed form.

 

How can we FIX the height of Area above the BODY i.e. HEADER and Area below the BODY i.e. FOOTER as fixed so that the alignment never disturbs even if the data in the BODY increase or decrease based on the no of records.

 

I have even tried to keep the data above BODY  in Header Section and data below BODY  in the Footer Section but still I am facing the same issue.

 

Can you please suggest me how can I resolve this alignment issue?

Would appreciate for quick response as stuck up on how to resolve this.

Sincerely,

Muneeb

Refresh Fields taking FOREVER!

$
0
0

I modified my SQL Server Stored Procedure. Adding a SELECT...INTO #TempTable which includes a ROW_NUMBER function data column and using the same parameters as my main report query that then filters by my #TempTable [RowNumber] = 1. When I Refresh Fields in Microsoft Visual Studio it's literally spinning for like 2 1/2 to 3 minutes!

Why oh why is my Refresh Fields taking soooooo long? When I run this query independent, it usually comes back in like 5 seconds. Is this just a nuance of Microsoft Visual Studio?

Thanks for your review and am hopeful for a reply. 

Using a #Temp Table in a SQL Server Stored Procedure and using it as a SSRS Dataset

$
0
0

I am trying to use some #Temp Tables in my SQL Server Stored Procedure and then ultimately within the Dataset in my SSRS Report. When I attempt refreshing my fields it is taking FOREVER!

Now I did see some reference to using the following SQL...

IF 1=0 BEGIN

SET FMTONLY OFF

END

http://stackoverflow.com/questions/26868915/issue-with-ssrs-report-with-temp-table

Apparently using #Temp Tables in a SQL Server Stored Procedure and then with SSRS Dataset don't play very well together.

Can anyone add to this and point me in the right direction perhaps?

Thanks for your review and am hopeful for a reply.

How to display Columns Based On Parameter value

$
0
0

Hi, I am New To SSRS, I have One scenario Could you Please Any one help.i have TWO parameter SALES YEAR AND SALES AMOUNT

SALES YEAR HAVING ALL YEAR SALES:  EXAMPLE:(2015-04-24)AND SALES AMOUNT HAVING 3 FLAGS IN DROP DOWN YEAR, MONTH,SALESPERSON NAME.When I selected YEAR Flag i want display SELECT YEAR WISE Total sales and i selected month flag i want display year wise as well as all months on selected year wise total sales. and i selected sales person i want display year and month wise and sales persons wise total sales.

Please Help Any one.

Convert multiple matrices in one table to multiple row vectors using SQL

$
0
0

How would I use SQL to present data in tableA into a row vector here is an example:

Table A

type   x1  x2  x3
A      469
A      741
A      962
B      138
B      279

I am looking for code that would convert to the following

type   x1  x2  x3  x1'  x2'  x3'  x1'' x2'' x3''
A      469741962
B      138279

Horizontal scroll bar missing in Report View

$
0
0

Hi,

When opening wide paginated reports in the SSRS 2016 web portal the horizontal bar is missing.

The vertical bar is present, but not the horizontal one. Can you please add this feature?

/Sincerely Nathalie 



incrementing a variable in SSRS query (to define row position)

$
0
0

Hi

using MSVisual Studio 2008

I'm trying to create an alias column called "row_number", for my where statement.

for some reason the SSRS query  is not incrementing.

I have defined the parameter @num with a default value of 0. this works in mysql 

This is what I used in the SSRS dataset query , that doesn't work

Please advise how i can get this to work. thanks


SELECT

CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS.REFERENCE  AS REFERENCE,
CONSIGNMENT_ALL_USER_DEFINES_UNS.USER_DATA_NUMERIC_02,

@num = @num+1 as 'row_number'

from CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS

join CONSIGNMENT_ALL_USER_DEFINES_UNS on CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS.OPSREF$$ =

CONSIGNMENT_ALL_USER_DEFINES_UNS.OPSREF$$

where CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS.OPSREF$$="ISL1600697"

HAVING row_number =
CONSIGNMENT_ALL_USER_DEFINES_UNS.USER_DATA_NUMERIC_02



This works in mysql workbench 

set @num := 0;


SELECT

CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS.REFERENCE  AS REFERENCE,
CONSIGNMENT_ALL_USER_DEFINES_UNS.USER_DATA_NUMERIC_02,
@num :=  @num + 1 as row_number

from CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS

join CONSIGNMENT_ALL_USER_DEFINES_UNS on CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS.OPSREF$$ =

CONSIGNMENT_ALL_USER_DEFINES_UNS.OPSREF$$

where CONSIGNMENT_TRACK_BUY_SUP_REFS_UNS.OPSREF$$="ISL1600697"

HAVING row_number =
CONSIGNMENT_ALL_USER_DEFINES_UNS.USER_DATA_NUMERIC_02



SSRS 2016 Power BI app android Failed to connect make sure you are using a SQL 2016 Reporting Service server address

$
0
0

Hi there,

I am using SSRS with SQL Server 2016 RC2 on an Azure VM. I am trying to connect to the report server using the Power BI app on my Android phone.

I can connect using the browser on the phone but not the app.

I can connect using my IPad.

I can connect using any other desktop PC browser.

When I try to connect using the app, I get this message:

"Failed to connect"

"Make sure you are using a SQL16 Reporting Services server address, e.g. - https://server_address/reports, http://server_address/reports"

I am using SQL16. I am using port 80. The message seems to indicate I should use "http://" but this doesn't work and I did not include that when I used the IPad app.

I looked at the report server logs but I don't see any indication of what could be wrong.

Thanks,

Ric


Ric Miller

custom code function error [BC30451] 'Test' is not declared. it may be inaccessible due to its protection level.

$
0
0

looking at custom code facility in RS 2012

using tutorial from  http://www.sql-server-performance.com/2011/custom-code-ssrs-reporting-services-2008-r2/

This is the function in report/report properties

Public Shared Function Test(ByVal profit As Decimal) As String
        Dim st As String
        If profit >= 1000 Then
            st = "High Profit"
        ElseIf profit >= 500 Then
            st = "Moderate Profit"
        Else
            st = "Average Profit"
        End If
        Return st
   End Function

This the expression calling function

= Test(fields!ProductProfit.Value)

error.

"The value expression for the textrun 'textbox12.paragraphs[0].textruns[0] contains an error:[BC30451] 'Test' is not declared. it may be inaccessible due to its protection level."

WMIProviderException: An error occurred when attempting to connect to the report server remote procedure call (RPC) end point

$
0
0

I am getting the following error message while trying to configure a database for a Reporting Service Server.  Both SQL Server and Reporting server are 2012 named instances.  I have 2014 instances as well on the same server.

Exception details...

Microsoft.ReportingServices.WmiProvider.WMIProviderException: An error occurred when attempting to connect to the report server remote procedure call (RPC) end point. Verify that the Report Server Windows service is running, and then retry the operation.

 ---> System.Runtime.InteropServices.COMException (0x800706B3): The RPC server is not listening. (Exception from HRESULT: 0x800706B3)
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)
   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.GenerateDatabaseScript(String databaseName, Int32 lcid, Boolean isSharePointIntegrated, String& script)
   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.GenerateDatabaseScript(String databaseName, Int32 lcid, Boolean isSharePointIntegrated, String& script)

Can someone help me on this please?

SSRS determine last field in group

$
0
0

Hi all,

i have report with group and i want to determine the field locate in the last of the group 

EX:

ParentGroup      ChildGroup

A1

A2

A3

B5

B9

i want to determine value of last filed of each group ,in group A =>1 and  group b=>9

 any help?


SSRS Dataset Query

$
0
0

Data Source: AdventureWorks2012
create dashboard report, design report datasets query use Following Tables: 
Person.Address, Person.StateProvince, Sales.SalesOrderHeader

dataset fields: CountryRegionCode, StateProvinceCode AS State, sum(h.TotalDue) as TotalDue
dataset filter: only display records for CountryRegionCode =US

add Table  Bottom 5 States on Dashboard report , Formatting according to template ,add databar

Template:

Here is my query:

SELECT TOP 5 p.CountryRegionCode,p.StateProvinceCode AS State, sum(h.TotalDue) as TotalDue
FROM     Person.Address AS a
        INNER JOIN  Person.StateProvince p ON a.StateProvinceID = p.StateProvinceID
		INNER JOIN  Sales.SalesOrderHeader h ON a.AddressID = h.BillToAddressID
WHERE    p.CountryRegionCode = 'US'
group by p.CountryRegionCode,p.StateProvinceCode
ORDER BY sum(h.TotalDue) ASC


Please help me solve the problem. Thanks.


Does SSRS have the ways to create this type of chart?

$
0
0

Need to create a chart similar to this. How would I create the red box?

How best to share customer reports

$
0
0

I appreciate this may be slightly vague but I was hoping someone could point me in the right direction to the best way to share reports with customers.  I have considered the following options but none seem to fit all of the requirements.

  • Share report manager
  • Create SharePoint extranet
  • Share Power BI dashboard
  • Another option

Our requirements are as follows:

  • We would need the customer to manage their own users
  • We would need the reports to change language based on the user
  • We would need the branding to change based on the user
  • We would need the reports to be locked down based on user

Thanks Graham.

#Error when performing a conditional Sum()

$
0
0

I am trying to perform a Sum() of time worked during the week and, seperately, during the weekend. The formula I am using for the weekday Sum() is:

=Sum(IIf((CInt(DatePart(DateInterval.WeekDay, Fields!Date.Value)) + FirstDayOfWeek.System) Mod 7 > 1, Fields!Time.Value, 0))

This results in #Error being displayed in the cell of the matrix. The issue seems to relate to the value of Fields!Date.Value because if I update the formula to:

=Sum(IIf((CInt(DatePart(DateInterval.WeekDay, Now())) + FirstDayOfWeek.System) Mod 7 > 1, Fields!Time.Value, 0))

Although this now assumes all activities were performed today, the result is a valid Sum() of the time spent. However I'm not sure what is wrong with the date data since extracting the "(CInt ... Mod 7" section of the expression into a new cell within the group it evaluates correctly for each column.

Can anyone advise what might be going wrong? The relevant subset of the dataset for this query is:

2016-04-25 00:00:00.000	7.5
2016-04-25 00:00:00.000	3.5
2016-04-25 00:00:00.000	0.5
2016-04-25 00:00:00.000	1
2016-04-25 00:00:00.000	7.5
2016-04-26 00:00:00.000	6.5
2016-04-26 00:00:00.000	6.5
2016-04-26 00:00:00.000	1
2016-04-26 00:00:00.000	7.5
2016-04-27 00:00:00.000	7.5
2016-04-27 00:00:00.000	4.5
2016-04-27 00:00:00.000	7.5
2016-04-27 00:00:00.000	1
2016-04-27 00:00:00.000	8
2016-04-28 00:00:00.000	6
2016-04-29 00:00:00.000	0
2016-04-30 00:00:00.000	0
2016-05-01 00:00:00.000	0

Update: Note that this issue occurs in the group's total column (where it's summing multiple days based on the condition I've included). Not sure if that was clear above.

Thanks.

Problems configuring Power View

$
0
0

Hello - I've been trying to get Power View working on our SharePoint 2013 server (an example guide i've followed; http://www.codeproject.com/Articles/615462/Configure-Power-View-Reporting-Services-Features-o) but I'm unable to configure the SQL Server Reporting Services once I've added it to SharePoint.

I try and go into System Settings in SharePoint Central Administration, and all I get is an error 500 and a correlation ID. I've used the ULS viewer for the correlation ID, and found these two rows;

Application error when access /_admin/ReportServer/ReportingServicesSystemSettings.aspx, Error=The remote server returned an error: (500) Internal Server Error.   at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

System.Net.WebException: The remote server returned an error: (500) Internal Server Error.  at System.Net.HttpWebRequest.GetResponse()   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

This is occurring for me as a user will full control on the SharePoint site, and our SharePoint administrator is getting the same issue.  The SQL Server Reporting Services Service is showing as running.

SSRS 2016 Mobile Reports Security

$
0
0

Hi,

I've been testing the new Report Manger (Reports_Preview)  and have noticed what I believe are some anomalies with the security settings. Please bare with me as I don't have a great deal of experience with SSRS.

First, the builtin Browser Role is not sufficient to allow access to the new 'Mobile Reports'. In my testing I have found the following Tasks the bare minimum (I created custom Roles each with only one Task to test to the lowest level of granularity):

Home: Manage Reports Only
Data Sources: None
Datasets:  Consume Reports, View Reports Only
Reports (Directory in which Mobile Reports reside):  View Resources Only

In my view there seems to be a lack of clarity as to what a Mobile Report is classed as, is it either a Report or a Resource?
It appears to require the View and Consume Reports Tasks to access the datasets but will only appear if View Resources is granted. 

More importantly, however, it seems that (after a non exhaustive test)  the Manage Reports Task is required in the Home directory; I presume this isn't the intended result, is it?

Lastly, I have a few questions:
1) Is anybody else able to reproduce the security anomalies mentioned above?
2) Can somebody please explain what, if anything I've done wrong?
3) If I haven't and assuming the current requirements are not correct, what are the indented security settings?
4) Are there going to be new builtin Roles and or Tasks specifically for Mobile Reports?

Many thanks,
Amith

Viewing all 10045 articles
Browse latest View live


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