ssrs-2008-r2

SSRS Prior Month, MTD Same period as current month

徘徊边缘 提交于 2019-12-13 06:57:00
问题 Should be easy right? Today is Aug 11, 2014. I want a column that reflects MTD Which I have: =Count(IIf(Year(Fields!Date.Value) = Year(Today) And Month(Fields!Date.Value) = Month(Today), Fields!ID.Value, Nothing), ) BUt I also want a column in SSRS that shows me the same time frame for the previous month, 7/11/2014. I can get the date to appear, but I can't for the life of me figure out how to grab the data like I have for the current month =FormatDateTime(DateSerial(DatePart("yyyy",today()),

Running multiple instances of single parameter report at once

大憨熊 提交于 2019-12-13 06:21:13
问题 I have a report that takes one parameter (an order no) and creates a document for that order, pulling in some address fields, etc. My customers want the ability to select multiple order numbers at once and print out say 10 different sheets, one for each order. everything would be the same on each sheet, save for the order specific information. my problem is that currently, toggling the parameter to accept multiple values jams all the information for all 10 orders into the same place on one

Report Services sort column chart

老子叫甜甜 提交于 2019-12-13 05:58:24
问题 I have a report containing a regular column chart that groups on product (column A) and the chart column values are the sums of the cost (column B). By default these are sorted alphabetically on the product string. I want it to sort the column values by default and then I would like to provide and option for the user to be able to switch between product name and column value. How do I do this? Thanks 回答1: You can use a Sort By report parameter of Text type. Set the Available Values and

How to get percentage for a field

邮差的信 提交于 2019-12-13 05:55:29
问题 I would like to get percentage for a given field value. I am achieving this in excel by using formula. Is there a way to write down formula in SSRS? I attached images here. I need this In excel i achieved by using formula, how to get this one in SSRS? 回答1: Yes, It's possible. Use below expression =Round(100 * (ReportItems!Number.Value / ReportItems!Number1.Value),2) Here, ReportItems!Number.Value is the textbox name of Name Texbox and ReportItems!Number1.Value is the textbox name of Total

SSRS : New calculated field based on where condition

我只是一个虾纸丫 提交于 2019-12-13 04:59:15
问题 I'm new to SSRS reporting and I'm need of help... I have a dataset with fields "Process", "Level" and "Workweek" Process Level WW ------- ----- -- Test Lvl_0 3 Test Lvl_1 28 Test Lvl_2 48 Samp Lvl_0 10 Samp Lvl_1 39 Samp Lvl_2 51 What I want now is to create two more calculated fields called Start_WW and Pro_Start that has the values from WW field. WW of Lvl_0 is considered to be the Process_Start. the logic is something like Process Level WW Start_WW Pro_Start ------- ----- -- -------- -----

Using an IN statement for query in SSRS

故事扮演 提交于 2019-12-13 03:34:32
问题 In an SSRS report I'm building, I've a query like the one below: SELECT ID, Name FROM TableA WHERE Name IN (@name) And then within SSRS, I have the parameter available values set to 'Get values from a query' and the Value field will be something like below: 'A','B','C' 'D','E','F' 'G','H','I' And the Label field something like this: Label A Label B Label C When I run the query SELECT ID, Name FROM TableA, WHERE Name IN ('A','B','C') The correct results are returned in SQL Management Studio,

SSRS - How to hide a row while context menu “Row Visibility” is disabled?

半腔热情 提交于 2019-12-13 02:37:35
问题 I am using SSRS 2008 integrated into VS 2008. All I want to do is to hide a Note row based on parameter, e.g my param is "Display Note". However my row which is containing my Note is somehow disabled "Row Visibility" feature. Please advise how I can hide Note row which does not leave a gap there. Row Visibility is disabled Regards, Kelvin 回答1: The Row Visibility property there is disabled because it's a header row. You can add a fake row group to control visibility of the last column group.

SSRS Sum Values Based on Earliest Date

微笑、不失礼 提交于 2019-12-13 00:54:35
问题 I'm trying to sum a net balance based on the earliest date in an SSRS report. In this case there are only 2 dates, but there can be more dates not more than 7 days. Here's a sample of my data: Here's what I'm trying to get with the earliest date of 10/26/15: I've tried the following code, but not able to get this to work: =Sum(IIf(DateDiff("d",Fields!SettleFullDate.Value,today())>=7 and DateDiff("d", Fields!SettleFullDate.Value, today())<7 and Fields!SETTLEBALANCE.Value>0), Fields

SSRS 2008 R2: How to apply filtering on Excel columns while exporting report(.rdl)

时光毁灭记忆、已成空白 提交于 2019-12-13 00:43:35
问题 SSRS 2008 R2: I have created a report(.rdl) using Shared datasource. I am following the tabular approach to generate the report. While exporting the report to excel I need to apply the filters to all the columns, so that the generated excel will have the filtration in its columns. But I am unable to find any option with respect to it. Current Generated excel Expected Generated excel Please let me know in case of any other information is required. 来源: https://stackoverflow.com/questions

Running Total That Changes Each Time A Column Value Changes

大兔子大兔子 提交于 2019-12-12 19:11:47
问题 Good morning. I am trying to solve an issue that is very similar to the post below, but with 1 extra parameter that is tripping me up. SQL Server Query, running total in view, reset when column A changes In the answer to this question, the code below was provided. Original Code DECLARE @T TABLE (Category VARCHAR(5), Value INT) INSERT INTO @T VALUES ('Cat A', 10), ('Cat A', 20), ('Cat A', 30), ('Cat B', 15), ('Cat B', 15), ('Cat C', 10), ('Cat C', 10) ;WITH T AS ( SELECT Category, Value, ROW