reportbuilder3.0

SSRS - Expression using different dataset fields

送分小仙女□ 提交于 2019-11-28 03:20:34
问题 I have a report with multiple data-sets. Different fields from different data-sets are used in different locations of the report. In one part of the report, I need to do a calculation using fields from two different data-sets. Is this possible within an expression? Can I somehow reference the data-set the field is in, in the expression? For example, I'd like to do something like this: =Fields.Dataset1.Field / Fields.Dataset2.Field 回答1: You can achieve that by specifying the scope of you

Using 'like' in ssrs expressions

[亡魂溺海] 提交于 2019-11-27 22:52:53
I'm trying to highlight a field when the value has the word 'deadline' in it. I'm trying to use the expression: =IIf(Fields!Notes.Value like "%deadline%","Yellow","Transparent") in the BackgroundColor property. It's not highlighting the field (not changing the background color). The 'Notes' field is a text datatype and I'm using Report Builder 3.0 if that makes a difference. What am I doing wrong? Oleg Dok SSRS does NOT use SQL syntax, but instead uses Visual Basic. Use something like this: =IIf(Fields!Notes.Value.IndexOf("deadline") >= 0,"Yellow","Transparent") Or .Contains instead of

Using 'like' in ssrs expressions

試著忘記壹切 提交于 2019-11-27 04:37:04
问题 I'm trying to highlight a field when the value has the word 'deadline' in it. I'm trying to use the expression: =IIf(Fields!Notes.Value like "%deadline%","Yellow","Transparent") in the BackgroundColor property. It's not highlighting the field (not changing the background color). The 'Notes' field is a text datatype and I'm using Report Builder 3.0 if that makes a difference. What am I doing wrong? 回答1: SSRS does NOT use SQL syntax, but instead uses Visual Basic. Use something like this: =IIf

Sql PIVOT and string concatenation aggregate

☆樱花仙子☆ 提交于 2019-11-27 04:30:58
I would like to use a pivot SQL query to construct a result table where the concatenate text as a result within the DATA section of the pivot table. i.e. i have the following result from using a simple select: +------------+-----------------+---------------+ | Event Name | Resource Type | Resource Name | +------------+-----------------+---------------+ | Event 1 | Resource Type 1 | Resource 1 | | Event 1 | Resource Type 1 | Resource 2 | | Event 1 | Resource Type 2 | Resource 3 | | Event 1 | Resource Type 2 | Resource 4 | | Event 1 | Resource Type 3 | Resource 5 | | Event 1 | Resource Type 3 |

Tablix: Repeat header rows on each page not working - Report Builder 3.0

梦想与她 提交于 2019-11-27 02:25:06
I have a tablix with lots of rows that span over multiple pages. I have set the Tablix property Repeat header rows on each page but this does not work. I read somewhere that this is a known bug in Report Builder 3.0. Is this true? If not, is there something else that needs to be done? Stacia It depends on the tablix structure you are using. In a table, for example, you do not have column groups, so Reporting Services does not recognize which textboxes are the column headers and setting RepeatColumnHeaders property to True doesn't work. Instead, you need to: Open Advanced Mode in the Groupings

Sql PIVOT and string concatenation aggregate

孤者浪人 提交于 2019-11-26 09:45:33
问题 I would like to use a pivot SQL query to construct a result table where the concatenate text as a result within the DATA section of the pivot table. i.e. i have the following result from using a simple select: +------------+-----------------+---------------+ | Event Name | Resource Type | Resource Name | +------------+-----------------+---------------+ | Event 1 | Resource Type 1 | Resource 1 | | Event 1 | Resource Type 1 | Resource 2 | | Event 1 | Resource Type 2 | Resource 3 | | Event 1 |