reporting-services

SSRS Export to CSV oddity

烂漫一生 提交于 2019-12-25 09:37:28
问题 I have a report created with a row above the header and a footer. It is treating the row above the header as a seperate column as well as the footer and adding this row over and over for each row. I need one line as the first line of my CSV file (not to be repeated) and the same for the footer and all of the data inbetween those two lines. I have tried to take them out of the table and put them into seperate text boxes but this has the same result. As you can see in the CSV image it treats

Remove Duplicate Function with LookupSet returing #Error in SSRS

本小妞迷上赌 提交于 2019-12-25 09:08:34
问题 In my SSRS Report, I am using LOOKUPSET function to concatenate one of the field values . In-order to get distinct concatenated values I used RemoveDuplicates Vb Function in Report Code. the function code is: Public Shared Function RemoveDuplicates(ByVal items As Object()) As String() System.Array.Sort(items) Dim k As Integer = 0 For i As Integer = 0 To items.Length - 1 If i > 0 AndAlso items(i).Equals(items(i - 1)) Then Continue For End If items(k) = items(i) k += 1 Next Dim unique As

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,

I would like to clear my querystring after using it on page load c#

*爱你&永不变心* 提交于 2019-12-25 09:00:04
问题 Before I ask this question, I'm not even sure what I'm using is a query string (I'm so clueless on this, what I have is the result of some other confusing StackOverFlow research). It is a parameter I'm passing from my SSRS report viewer to my app via a hyperlink expression. It works and everything is grand except for I'd like to clear it from the url right afterwards. http://10.155.54.101/Update?CurrencyId=67 And I am getting the parameter with this logic on page load. if (Request.Params[

How to add date range for the same day? How to call function to convert seconds to hh:mm:ss

前提是你 提交于 2019-12-25 08:59:26
问题 I'm writing code on SQL Server 2014 to pull records for a single day. I will then be using Report Builder to create the report. I'm not sure if my code is right. The times of the shifts are in 'yyyy-mm-dd hh:mm:sss' format starting at 7:45am to 6:15pm. I need to count total calls (and other fields) for that time period per day. I will also need to give a parameter so the viewer can select the date range for the report. I created a function to convert total seconds to HH:MM:SS format. The code

Use of 'median' function in calculated field in SSRS

若如初见. 提交于 2019-12-25 08:49:55
问题 According to this it looks like you can use an aggregate function in a calculated field, but if I try and use the median command, I get an error "the value expression for the field =Median( ...what I wrote below..) contains an error: BC30451 Name 'Median' is not declared. I have tried =Median(Fields!name_of_field_I_want_median_from.Value,"dsTheDatasetFieldIsIn") and =Median(Fields!name_of_field_I_want_median_from.Value) neither work N.B. Dataset is derived from MDX 回答1: maybe I didn't

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()

Report Builder SUM IIF - More than 1 DataSet

孤街醉人 提交于 2019-12-25 08:32:20
问题 I am trying to add the following expression to a TextBox on a Report Builder report using the following code: =SUM(IIF(Fields!TaskDescription.Value,"DataSet1") = "Running", 1, 0) I have more than 1 dataset which I think is causing the issue, but the above gives me the following error message: The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a dataset. What am I doing wrong? 回答1:

MDX (SSRS) Parameter subset

喜你入骨 提交于 2019-12-25 08:19:33
问题 I need a bit of help with my SSRS parameter code in MDX context I'm trying to return Country locations with and type = matter and a house count (not used as a parameter) for the drop down list I'm using the caption, uniqueName and level.ordinal method WITH MEMBER [Measures].[ParameterCaption] AS [Country].[Location].CurrentMember.Member_Caption MEMBER [Measures].[ParameterCaption2] AS [Type].[Type].CurrentMember.Member_Caption MEMBER [Measures].[ParameterValue] AS [Country].[Location]

SSRS Data label on first and last entry

孤人 提交于 2019-12-25 08:13:42
问题 I have a line graph which tracks days passed on the X-axis. I would like for the data points to be visible on only the first entry and the last entry. I tried the below, which I thought should show only the final entry, but in fact had the opposite effect. =iif(Last(Fields!DateTime.Value),False, True) Changing from the Last to the First (or Max or Min) all have the same effect. An example with data point on only the first entry: Many thanks. 回答1: I figured it out. I needed to show it