ssrs-2012

SSRS - Show only top 50 rows

坚强是说给别人听的谎言 提交于 2019-12-12 04:19:23
问题 I am using SSRS 2014 version. I have below SSRS report and I wanted to display only first 50 rows (Supplier), How can I do this please? MY SQL code is, SELECT s.[CusNo] Supplier, RTRIM(CAST(s.[Customer] AS VARCHAR(50)) ) AS Name, s.[ConcessionNo] Concession, RTRIM(CAST(s.[ConcessionName] AS VARCHAR(50)) ) AS ConcessionName, sum(case when s.Date between convert(date,dateadd(wk, datediff(wk, 0, getdate()) - 1, 0) - 1) and convert(date,dateadd(wk, datediff(wk, 0, getdate()) - 1, 0) + 5) then s

Grouping in SSRS?

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:06:26
问题 I am new to the SSRS and Have data like to be present as below. They are all from the same dataset, just like to group 2 columns, that is [WrkCrtId, Name] show on top of them. I've tried some ways to do this but still fail, I was wondering if any one can help? p.s. the image below shows 2 groups (B3 and B7) 回答1: This is fairly simple to do. This is a quick summary of the things to do from memory so it may not be 100% correct. Add a table to your report and add your 6 detail columns as you

Display TimeSpan correctly in SSRS

狂风中的少年 提交于 2019-12-12 04:05:14
问题 I have a TimeSpan value of 00:02:02.0 basically 0 hours 2 minutes 2 seconds and 2 milliseconds. I will always have 0 hours. How do you format ssrs to read 2.02.0? I know you can do =Fields!FinishTime.Value.ToString("mm:ss:fff") however it always produces #error as value. Thanks! 回答1: You are pretty close, ToString() is correct since SSRS doesn't know how to work with TimeSpans, but you'll need to wrap a Format around it to use the format string and convert it back to a date to use the date

SSRS Column chart, total as last column

蓝咒 提交于 2019-12-12 03:56:24
问题 I've got the following column chart: Product names as Category groups with values for budget and revenue on each column. Now I want to create a final column (Total) which is the sum of each column. ie. one column with the total value of the budget and one with the total value of the revenue. Can this be done directly in the graph without having to do the calculations in the dataset? It's very easy to add a total to a table but seems to be hard to add it to a chart. 回答1: No, you cannot just

calculate the time difference between two dates in HH:MM format using ssrs

梦想与她 提交于 2019-12-12 03:29:57
问题 I need to generate the time difference between tow dates in SSRS in HH:MM format. How can i achieve this? My data source is MS CRM FetchXML. Eg : Date1 : 01/01/2016 04:05 AM Date2 : 01/03/2016 02:15 PM Time Differece Should be : 58:10 Regards, Sandeep 回答1: I might be a little too late but was needing to calculate the elapsed time between two times. Hence I stumbled up this link https://social.msdn.microsoft.com/Forums/sqlserver/en-US/26d8b4fc-6862-42a0-ac7f-0caa93ba2fde/to-find-ellapse-time

SSRS 2012. Replicate grouping results in report in Query Designer

时间秒杀一切 提交于 2019-12-12 03:27:39
问题 New to SSRS 2012 & struggling. I have a report - containing a subreport - on client data. When testing with one client (just to make sure everything was OK) it works perfectly. When the filter's removed, it's timing out (it's actually saying it's been cancelled by the user, which it hasn't). Obviously the inclusion of the subreport is the problem (as the main report runs fine without it). My subreport can validly return multiple records per client. The subreport is grouped on ClientId. I then

How to add parameters for multiple agents to exclude from the SSRS Stats Report

走远了吗. 提交于 2019-12-12 02:16:55
问题 Scenario: I have a report that pulls up stats for agents for a certain date range (usually the same day, yesterday) which I've set as parameters. I've built the report in Visual Studio Report builder and the report works great. Challenge: Some agents are taken off calls and work on emails instead that day. So, though they are logged in, they can't be added to the call queue stats. Need: I need to add parameters which can select agents from the drop down (Ctrl+select) and have the report run

Update a value of report parameter in ssrs

别来无恙 提交于 2019-12-12 01:49:21
问题 I am trying to update parameter value in ssrs report builder tool. say if i want to update value of parameter "datetime" and select a value from drop down, i am getting a dropdown instead of textbox . How to update a value of datetime when i change a value of another parameter ? in the above image timeframe if change then the value should reflect in 'start' datetime field but it wont. The same works if i do it for dropdopwn i.e. startdate field if i change value in timeframe it changes in

SSRS SQL Query to show the zero value for non existing records

我的未来我决定 提交于 2019-12-12 01:38:14
问题 I am using the following query to pull the data for last 11/12 months SELECT [ID] ,[Name] ,[Amount] FROM DB1 WHERE [Period] BETWEEN @FromMonth AND @ToMonth AND [Desc] = 'XYZ' What I want to achieve is, some IDs does not have a any record for some periods(month) with no amount. Currently the query doesn't return anything for those combination of names and months where there is no record in DB. It only displays a result if the ID has a certain amount and date in db. However, what I want is that

freeze report Title and Tablix Header in a SSRS

隐身守侯 提交于 2019-12-12 01:09:54
问题 I want to Freeze report title as well as tablix header 回答1: On the bottom row of the designer which shows Row Groups and Column Groups, there is an arrow down logo at the right side. Click that then it will show Advanced Mode. Then on the row groups. click the 1st and 2nd row then on the Properties pane. Make FixedData property into True. 来源: https://stackoverflow.com/questions/37152830/freeze-report-title-and-tablix-header-in-a-ssrs