reporting-services

Why isn't my iif statement evaluating true when the condition is correct?

北战南征 提交于 2019-12-13 06:42:12
问题 This is my statement: iif(sum(Fields!myfield1.Value) = 0, 0, sum(Fields!myField2.Value)/sum(Fields!myField1.Value)) Any suggestions? 回答1: Likely it is evaluating as True. As mentioned in other comments, you'll get an error anyway because Iif() evaluates all parameter expressions regardless of the result of the test. The error can be avoided by adding another Iif() in the divisor. iif( sum(Fields!myfield1.Value) = 0, 0, sum(Fields!myField2.Value) / iif( sum(Fields!myfield1.Value) = 0, 1, sum

HOw to remove SSRS section to ask credentials

痴心易碎 提交于 2019-12-13 06:27:45
问题 How to remove this prompt when viewing SSRS report in ASP.net Can we pass these as two parameters? 回答1: The answer would depend on what kind of data provider you have. Assuming this is an MS SQL data provider: Go to the SSRS Report Manager, find your data source and open its properties. Then, depending on the authentification method set up in your SQL server and the database, set the appropriate parameters: "(o) Credentials stored securely in the report server" - if your server/database

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

Concatenating/Merging 2 DataSets with exact same columns [duplicate]

為{幸葍}努か 提交于 2019-12-13 06:12:54
问题 This question already has an answer here : Merge two Reporting Services datasets into one (1 answer) Closed 3 years ago . I'm trying to figure out if there is any way in Report Builder 3.0 to concatenate or merge 2 different "DataSet" objects which both have exactly the same column names into one set of data, for the purposes of displaying in a pie chart. My SQL query looks similar to this for both data sets: DECLARE @DateCreatedStart date = GETDATE()-14 DECLARE @DateCreatedEnd date = GETDATE

Define query parameters visual studio

↘锁芯ラ 提交于 2019-12-13 06:08:13
问题 I am creating a SSRS report in VS 2008 sp1. I am trying to run the SP of a certain dataset So I am loading the query designer Than i am get the normal define query parameters dialog box I have two columns one for the parameter Name and one for the parameter value one of the Parameter values of the is nvarchar, so a valid input is e.g. 36,37,38 The query runs but doesn't give any result and when i load the define query parameters dialog box again the parameter value appears as: 363738 The

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

Getting Distance between two Points in SSRS report map

孤街醉人 提交于 2019-12-13 05:42:46
问题 I have created an SSRS reports in which i'm using map along with bing map. Also i have using the Point layer in the map. How can i able to get distance between 2 points in the map? Kindly advice... 回答1: The below function gives you distance between two GeoCoordinates in kilo metres CREATE FUNCTION dbo.fnCalcDistanceKM(@lat1 FLOAT, @lat2 FLOAT, @lon1 FLOAT, @lon2 FLOAT) RETURNS FLOAT AS BEGIN RETURN ACOS(SIN(PI()*@lat1/180.0)*SIN(PI()*@lat2/180.0)+COS(PI()*@lat1/180.0)*COS(PI()*@lat2/180.0)

SSRS Groups, Aggregated Group after detailed ones

拜拜、爱过 提交于 2019-12-13 05:37:59
问题 in SSRS, I try to create a group structure as in the example below (months have only 5 days here for simplicity). The tricky issue is the last column "Sales(monthly)": It should be a Row Group, grouping by month, after the more detailed columns "Day" and "Sales(daily)". It would be no problem to have this column as the second one between "Month" and "Day" column. But after being already on the "detail level" with "Day" and "Sales(daily)", I cannot create another more aggregated group. And if

Custom ordering of series field for stacked chart in SSRS08 TFS

谁都会走 提交于 2019-12-13 05:25:18
问题 I'm having some issues with a report I'm trying to create for TFS work items that creates a stacked chart based on work item state and the cumulative count. I have Sum(Cumulative_Count) as the data field, System_State as the series field and Date as the category field. The problem I'm having is that for this stacked chart to be immediately useful to us the System_State needs a very specific order--namely Not Done should be on the top, followed by In Progress, Ready for Review etc and I can't