ssrs-2008

SSRS: Convert decimal to hours and minutes

别说谁变了你拦得住时间么 提交于 2019-12-02 14:32:39
问题 I have a report where I want to display time in hours and minutes (17hrs 30 mins) The dataset returns this value in decimals (Eg 17.5) How would I convert this decimal to the format specified above (17hrs 30 mins). Is there some kind of built in function that can do this easily? 回答1: This works for your particular example: =Floor(Fields!MyValue.Value) & " hrs " & CInt((Fields!MyValue.Value - Floor(Fields!MyValue.Value)) * 60) & " mins" You may need to tweak for all possible scenarios but this

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

為{幸葍}努か 提交于 2019-12-02 13:20:06
问题 why this error comes? I am using windows authentication. But i am getting error Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' can any one help me in this how to solve this problem? 回答1: Most likely it means you're trying to connect from an impersonated context and you did not set up constrained delegation. See Manage Kerberos Authentication Issues in a Reporting Services Environment for details and troubleshooting. 回答2: First of all, I always prefer to use the 'impersonation' settings

Calling SSRS Report Server it asked “Authentication Required” window

本秂侑毒 提交于 2019-12-02 12:47:06
问题 I have just started working in SSRS and I got a very strange problem i.e. When I am calling report server URL i.e. localhost/Reports This URL requires Authentication window for Username and password. like this. If I submitted local system user account information in that case it will appear me report server screen which we want. like this. I have created a demo web-application and in the default.aspx page I am using ReportViewer to show report and configure it. here is the code which i am

SSRS streamIDs and chart images render with same id for different requests

僤鯓⒐⒋嵵緔 提交于 2019-12-02 12:36:29
问题 Does anyone know if there is a way in the report definition to force a unique streamid for report images per request. I have a situation where I am rendering a report as a byte[] via the ReportExecutionsService web api. Whenever a report has images SSRS will give each image a streamid and I am required to save the parts to a temp web folder the client can access. When I put a chart on a report the streamID never changes and this is causing a cache issue in browsers. The same chart displayed

How to cascade parameters in SSRS having specific values

十年热恋 提交于 2019-12-02 12:32:27
I have 2 parameters 'Groupby1' and 'Groupby2' in my report,for the first parameters i have specified some values like Column A,column B,Column C. Now i need to make the 2nd parameter cascading based on the first one like if i select Column A in Groupby1 parameter it should display only Column B and Column C in Groupby2 parameter.Is this achievable? Yes, it's easily achievable. The trick is to make a dataset dependent on just the first parameter, and use it's results for the available options of the second parameter. A little more detail on how you'd make that happen: Create the first parameter

In SSRS, how to create a dynamic 'where' condition using multi value parameters

无人久伴 提交于 2019-12-02 11:29:25
First I will mention a bit of my work to better understand my question So, in SSRS, I have multiple parameters which all are sent to procedure using =Join(Parameter!x.value,",") then in the procedure I create a where condition by concatenating all the parameters. Something like this: > Set @where = > 'and Table.Column in(''' + replace(RTRIM(LTRIM(@Parameter1)),',', ''',''') > + ''')' + ' > and Table.Column in(''' + replace(RTRIM(LTRIM(@Parameter2)),',', ''',''') > + ''')' + ' > and Table.Column in(''' + replace(RTRIM(LTRIM(@Parameter3)),',', ''',''') + > ''')' + ' My question is: How can I

Alternating row color expression in SSRS matrix not working correctly

隐身守侯 提交于 2019-12-02 11:22:44
问题 In the only row group I am trying to get a alternate row color with the following expression: Expression for background color : =IIf( RunningValue (Fields!SP.Value, CountDistinct, Nothing) MOD 2, "White", "blue") SQL code: select ROW_NUMBER() OVER (ORDER BY DataDate) AS SSRSRowNumber ,datepart(dw,datadate) SSRSDateFilter ,DataDate ,SP ,sum(TMI) as TotalCI from table where DataDate>GETDATE()-20 group by DataDate,SP order by 1, 2 The result is the picture below, what's wrong in the expression

sql reporting services how-to: mask a parameter

為{幸葍}努か 提交于 2019-12-02 10:44:53
问题 I have a requirement to allow my users to pull up a report for their customers using the customer's credit card number as a parameter. For security we want to mask the field, as is common on many e-commerce sites. I'm pretty sure this is not an out-of-the-box capability of reporting services. But I'm hoping this can be accomplished by adding some VB to the report. Not sure though. Anyone have an idea how this can be done in reporting services? 回答1: As far as I know there is no masked input

British date format on Reporting server turns to US format on client side via MS SSRS

你离开我真会死。 提交于 2019-12-02 10:38:32
I have problem retrieving correct date format on client side using MS reporting service 2010 . The British date format (18/05/2011) of date type is assigned to the default value of a parameter in a rdl file hosted on the reproting server. However, when the date value becomes US format (5/18/2011) via reporting service 2010. ReportingService2010 reportingService = new ReportingService2010(); reportingService.Credentials = CredentialCache.DefaultCredentials; ItemParameter[] parameters = reportingService.GetItemParameters(reportUrl, historyId, forRendering, values, credentialses); foreach (var

how to subtract adjacent columns in an ssrs matrix

大憨熊 提交于 2019-12-02 10:03:22
问题 I have an ssrs matrix which looks like the one below : Month(Columns) Product(Rows) Sales(Data) The output looks something like this : June July August Sept Oct ABC 34 34 23 22 67 DEF 33 21 32 22 14 I want an output that looks like this : June July June-July Aug July-Aug Sept Aug-Sept Oct Sept-Oct ABC 34 34 0 23 11 22 1 67 45 DEF 33 21 12 32 11 22 10 14 8 I tried doing something like this : Month(Columns) Change Product(Rows) Sales(Data) Expression The expression looks something like this :