ssrs-2012

Set expression for hidden ssrs

穿精又带淫゛_ 提交于 2019-12-25 09:02:15
问题 I want to display only first 10 rows and hide remaining rows in a column. what will be the expression for this (Set expression for: Hidden) in Tablix properties -> visibility -> show or hide based on expression. My dataset name is Top50CustomerSQL; My Column name is Supplier; Expression for this scenario please? SQL Code 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,

Is it possible to display this data horizontally in SSRS?

筅森魡賤 提交于 2019-12-25 08:48:10
问题 I have a table that that is being joined by another table that looks like this: Id Score Total 1 10 30 1 7 30 1 13 30 2 14 27 2 10 27 2 3 27 I want to be able to display this data like this in SSRS: Id 1 2 3 Total 1 10 7 13 30 2 14 10 3 27 Can this be done and how? 回答1: You can do this by using a matrix. You can add a row identifier for each id in your dataset (assuming you can modify the dataset, as you joined 2 tables). Below code is for SQL Server (T-SQL). Select Id, Score, row_number()

How to add totals to each group in SSRS

女生的网名这么多〃 提交于 2019-12-25 07:59:13
问题 I need to have a total for each grouping within a row group in SSRS. Currently, a total is added right at the end of the row group. So, if I have the following data: TeamName BusinessSegment PaymentPeriod BusinessArea ProductType PolicyCount201501 Premium201501 --------------------------- ------------- ---------------- ---------------- ------------------ --------------- Office Non-property Monthly Commercial Lines Sectional Title 0.00 0.00 Office1 Non-property Annual Commercial Lines C&I

Sum Values based on Distinct Guids

混江龙づ霸主 提交于 2019-12-25 06:59:11
问题 I am having trouble getting the SUM of a column of values in SSRS. My SQL query returns something like the following: ID Total Guid1 4 Guid2 6 Guid3 1 Guid2 6 Guid4 6 Guid1 4 I have it grouped in my SSRS Report so it appears like this: ID Total Guid1 4 Guid2 6 Guid3 1 Guid4 6 I need the sum of the Total column, but it wants to sum the ungrouped set of values instead of the grouped set. So I get Sum(Total) = 27 But I WANT Sum(DISTINCT? Guid Totals) = 17 I've tried the solutions that can be

SSRS 2012 Mean & Median

强颜欢笑 提交于 2019-12-25 04:59:17
问题 I have a report that i use Mean and Median measures that were calculated in SSAS 2012 tabular, the reports as follows: when i use the Mean and Median directly, the values in the green box are correct and the column and row totals are incorrect. after using aggregate instead of sum the following happens: 1- the blank row and blank column are now gone along with their values. 2- Then total of the Mean is correct in every cell except the grand total(2nd cell from right bottom corner), it appears

I want to count the number based on a field injected

徘徊边缘 提交于 2019-12-24 23:21:03
问题 I am working on SSRS report. I have a report where the user inserts the login, start date and end date. I want to count the number of rows of WarantyColumn that have the value 1 for the user injected between start date and end date. Count(iif(Fields!TextField.Value=, Fields!TextField.Value, Nothing)) 回答1: Create a new column, let's call it warrantycolumncount . For this column, set expression as IIF(Field!warrantycolumn.Value = 1, 1, 0) This expression will set 1 where your condition matches

SSRS text parameter tied to SQL variable

天涯浪子 提交于 2019-12-24 18:36:00
问题 I currently have a report with two parameters. Both those parameters have a datatype of "text". I am having an issue passing the desired value to these parameters from SQL because the variables that represent those parameters in SQL cannot be text due to variables not being able to be "text" datatypes in SQL now. The variables right now are "datetime" datatypes. I tried using some other text like datatype in SQL such as nvarchar, nchar, char, varchar etc. but none of those solved my problem.

SSRS Split expression #Error

你说的曾经没有我的故事 提交于 2019-12-24 18:28:19
问题 Trying to get this expression working: IIF(Fields!Text.Value like "*som:*",Split(Fields!Text.Value, ": ").GetValue(0)&":" & vbcrlf & Split(Fields!Text.Value, ": ").GetValue(1), Fields!Text.Value) And for the fields which contain "som:" it works as I want but not for the "else fields" which show #Error. I've also tried Fields!Text.Value.ToString().Contain("som:") but got the same result. The Warning goes: The Value expression for the textrun ‘XXXXXX.Paragraphs[0].TextRuns[0]’ contains an error

Why can't I use a datetime parameter in ssrs?

喜你入骨 提交于 2019-12-24 16:57:18
问题 I have an SSRS Date/Time parameter generated from a shared dataset query against a SQL Server datetime field. The parameter displays correctly in a report textbox but it will not work in an embedded dataset query, even against the same table that the datetime value was generated from. In order to use the parameter for a dataset query I have to parse both sides of a where clause to get it to work in Preview in SSDT: (convert(varchar,invoice.snapshot_datetime,120)) = (convert(varchar,

SSRS 2012 not rendering charts in a PDF (A generic error occurred in GDI+)

ⅰ亾dé卋堺 提交于 2019-12-24 14:33:46
问题 I have a data driven subscription that renders the report in PDF. SSRS 2012, Win 2008 R2 (on Hyper-V) is used. I have looked in ExecutionLog3 , the shared data sets all successfully refresh, the reports successfully render and are output to the correct folder. I did read somewhere that when rendering the reports in IE that the user needed permissions to the Temporary Internet Files folder, however I don't know if this is valid for data driven subscriptions? I did add the execution account (a