reporting-services

SSRS Line Chart Dynamic Y Axis

三世轮回 提交于 2019-12-04 13:05:30
I have a line chart where the Y value is set to =CountRows() and I have a Category Group which groups on =CDate(Fields!END_MONTH_NB.Value) I am trying to set the interval of the Y axis dynamically such that fractions do not appear when the range is too small (see below). I tried setting the interval expression to =iif(CountRows() <= 5, 1, "Auto") which works fine if the total number of rows is less than or equal to 5, but what I really need is the maximum that CountRows() will return in the context of my Category Group. Any idea how to accomplish this? Since you're using SSRS 2012, you can use

SSRS IIF Date evaluation

和自甴很熟 提交于 2019-12-04 12:37:22
I have the following code =IIf(Fields!Freeze.Value, Fields!effectivedate.Value, IIF(Month(Fields!effectivedate.Value) <> Month(Now()), Format(Now(), “MM/dd/yyyy”) , Fields!effectivedate.Value)) A. In the first IIF statement I check to see if the Fields!Freeze.Value is true, if its true then It displays Fields!effectivedate.Value (IIf(Fields!Freeze.Value, Fields!effectivedate.Value) B. In the second IIF statemenet I check if the Fields!effectivedate.Value is the current month, If it is the current month then it displays Fields!effectivedate.Value, If it is not the current month then it displays

SSRS Code Shared Variables and Simultaneous Report Execution

半城伤御伤魂 提交于 2019-12-04 12:07:51
We have some SSRS reports that are failing when two of them are executed very close together. I've found out that if two instances of an SSRS report run at the same time, any Code variables declared at the class level (not inside a function) can collide. I suspect this may be the cause of our report failures and I'm working up a potential fix. The reason we're using the Code portion of SSRS at all is for things like custom group and page header calculation. The code is called from expressions in TextBoxes and returns what the current label should be. The code needs to maintain state to

How to prevent autoresizing body in SSRS report

前提是你 提交于 2019-12-04 12:02:49
问题 I have a report that has a header and footer that are both set up to fill the whole A4 length (minus margins of course) because I have some information on the far right and far left of each of them. Now in the body I have a List Element that allows me to have a tablix report and a chart next to each other. The body is also sized propery to stay within the pagination limits of the report. All should fit on A4 landscape. Tablix and Chart are next to each other however the Tablix will grow to 4

How to calculate last business day of month in VBScript

社会主义新天地 提交于 2019-12-04 11:13:41
How do I calculate the last business day of month in VBScript? It is for a Reporting Services report. Thanks How about: intMonth=11 'Use zero to return last day of previous month ' LastDayOfMonth= dateserial(2008,intMonth+1,0) 'Saturday ' If WeekDay(LastDayOfMonth,1)=7 Then LastDayOfMonth=LastDayOfMonth-1 'Sunday ' If WeekDay(LastDayOfMonth,1)=1 Then LastDayOfMonth=LastDayOfMonth-2 Msgbox LastDayOfMonth & " " & Weekdayname(Weekday(LastDayOfMonth,1),1) There is a good CodeProject article here: Working With Business Dates (Business Holidays/Weekends, etc) . This project is aimed at easing the

SSRS report subscription ended with an error

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 10:10:29
问题 I hate to cross post, but I wasn't getting any progress with this on serverfault and there appears to be a lot more activity with regard to reporting services here. I've created a simple report in SSRS, and then tried my hand out with a data driven subscription. I can verify that the subscription runs on the 'My Subscriptions' page. Under Status it says Done: 1 processed of 1 total; 1 errors. How do I find out what this error is ? I've looked in the Windows Event Logs and haven't found

Visual Studio Report Designer: How do I print something on every second page of a report?

岁酱吖の 提交于 2019-12-04 10:06:07
I have a report in Visual Studio Report Designer that prints a contract. I want it to have certain terms and conditions on the back of every page. How can I print something on every second page (which I'll then duplex)? I've tried putting it in the page header\footer (it just gets cut off), and I've tried controlling the visibility of it in the body of the report using page numbers (but you can't use the global page numbers variable in the body of the report). How can I wrangle the report to do what I want? Alas, as you already mention: you can't access the page number in the body of a report.

How to I get cumulative monthly subtotals in SSRS?

半腔热情 提交于 2019-12-04 09:50:52
I'm using SSRS to create a report which shows a lot of transactions according to a trade date. I've made a group on the month and year called 'grpMonthYear' . Inside that group I've made a subgroup on 'TradeDate'. The groups and all work perfectly. I'm also generating monthly subtotals in the footer of the group 'grpMonthYear'. But now I want the cumulative subtotals. Example, if Jan'13 totaled up to $5,000.00 and transactions in Feb'13 totaled up to $7,000.00 So the monthly subtotal in Feb'13 should show me $12,000.00 I tried using RunningValue(Fieldname,SUM,'grpMonthYear') But it doesn't

Count expression SSRS Report

◇◆丶佛笑我妖孽 提交于 2019-12-04 09:00:21
问题 Trying to count all rows in a column where column=Yes I have two columns in my report Accepted and rejected. I'm trying to count the rows where accepted=Yes and do the say thing for rejected. I've tried these: =COUNT(IIF(Fields!accepted.Value="Y",1,0)) =COUNT(IIF(Fields!rejected.Value="Y",1,0)) =COUNT(FIELDS!accepted.value="Y") =COUNT(FIELDS!rejected.value="Y") this expression is counting every row as opposed to just the ones that are "Y" 回答1: You can do this a couple of ways: SUM(IIF(Fields

How can I use a ReportViewer control with Razor?

泄露秘密 提交于 2019-12-04 08:28:40
I've seen many people saying to use an iframe or a new page to display a ReportViewer control. Is there a way to display the control inline with the rest of my page without using an iframe? You can use .ascx user controls as partial views with Razor if they inherit from System.Web.Mvc.ViewUserControl . In this instance, you can create an ASCX that contains your ReportViewer control and the requisite ScriptManager in your View\Controller folder: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReportViewerControl.ascx.cs" Inherits="MyApp.Views.Reports.ReportViewerControl" %> <%@