reportbuilder

How to select the Data Source at Runtime in SSRS Report Builder

断了今生、忘了曾经 提交于 2019-12-01 13:52:35
before going to problem let me clear that i know there are similar questions ask before but could not find the answer of my problem. my problem is: I want to select the Data Source at runtime. First of all, i simply create a report by making a shared data source. then i create a data set using this data source. I run the report and it is working perfectly. Then I create two parameters, one for data source and one for data set. both parameters are type of "Text", their parameter visibility is "Visible" and their Available and Default values are "None". Then I created a second data source which

How to select the Data Source at Runtime in SSRS Report Builder

倖福魔咒の 提交于 2019-12-01 12:53:39
问题 before going to problem let me clear that i know there are similar questions ask before but could not find the answer of my problem. my problem is: I want to select the Data Source at runtime. First of all, i simply create a report by making a shared data source. then i create a data set using this data source. I run the report and it is working perfectly. Then I create two parameters, one for data source and one for data set. both parameters are type of "Text", their parameter visibility is

Carrying out a SUMIF like operation using SQL Server Report Builder

一笑奈何 提交于 2019-12-01 02:53:05
I'm trying to produce a conditional sum in SQL Server Report Builder 3.0. My expression looks like this: =Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0)) I'd hoped that this expression would produce a sum of the kWp of all projects of type 2. Unfortunately, it is not to be. And I can't seem to work out why. It just returns a 0 result, even though I know that there are non-zero values in the kWp column, and the column does not contain nulls. A colleague did manage to get a positive result by replacing the Fields!kWp.Value with 1 * Fields!kWp.Value But we have no idea why this works,

Carrying out a SUMIF like operation using SQL Server Report Builder

喜你入骨 提交于 2019-11-30 21:53:34
问题 I'm trying to produce a conditional sum in SQL Server Report Builder 3.0. My expression looks like this: =Sum(Iif(Fields!ProjectTypeID.Value=2,Fields!kWp.Value,0)) I'd hoped that this expression would produce a sum of the kWp of all projects of type 2. Unfortunately, it is not to be. And I can't seem to work out why. It just returns a 0 result, even though I know that there are non-zero values in the kWp column, and the column does not contain nulls. A colleague did manage to get a positive

How do I make wildcards work in a like operator in SQL Server reporting services?

血红的双手。 提交于 2019-11-30 01:45:47
问题 I have added a filter expression using the like operator. What do I put in the value field? my parameter is named @test and I'd like the filter to function as a like %@test% would in SQL. I want it to act like %@test% so I can pass '' to get all values for the query. 回答1: I got this to work by adding a filter expression with a like operator and setting the value to this: ="*" + Parameters!Roles.Value + "*" To get all values I pass ''. 回答2: You could also simply use string concatenation in the