all groups > sql server reporting services > december 2005 >
You're in the

sql server reporting services

group:

How to Write Expression


How to Write Expression Wayne Wengert
12/1/2005 11:31:06 AM
sql server reporting services: I want to add an expression field that basically displays "Passed" or
"Failed" depending on the value in a Count(Fields!Correct.Value). If that
count is lesss than 11, the result should be "Failed", otherwise the result
should be "Passed". I haven't found a list of valid operators and functions
for RS - any pointer to that would be a bonus.

Wayne

RE: How to Write Expression Nick P.
12/1/2005 11:32:03 AM
You can use the "IIF" function as the expression for the text box. In your
case the =iif(Fields!Correct.Value < 11, "Failed", "Passed") should do the
trick. You can look up information for the "IIF" function in help for Visual
Basic.

[quoted text, click to view]
Re: How to Write Expression Dom
12/1/2005 12:31:56 PM
For the bonus, I believe the list of operators and functions you are
looking for is.....

"Using Expressions in Reporting Services"
-http://msdn2.microsoft.com/en-us/library/ms159238.aspx should also be
handy

"Expressions Commonly Used in Reporting Services"
(http://msdn2.microsoft.com/en-us/library/ms157328.aspx) says "Many
expressions within a report contain functions. You can write
expressions that use functions from the Microsoft.VisualBasic,
System.Convert, and System.Math namespaces, or you can add references
to other assemblies or custom code. You can also use classes from the
Microsoft .NET Framework. For more information, see the .NET Framework
Class Library documentation."

for the list of functions in Microsoft.VisualBasic, see "Visual Basic
Run-Time Library Members"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vaoriVBRuntimeLibraryKeywords.asp

HTH!
Dominique
Re: How to Write Expression Wayne Wengert
12/1/2005 2:47:42 PM
Thanks guys - exactly what I needed

Wayne

[quoted text, click to view]

AddThis Social Bookmark Button