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

sql server reporting services

group:

Iff command need to sup in text


Iff command need to sup in text Bill
10/20/2005 12:27:11 PM
sql server reporting services:
New to this.
Im teaching myself this so bear with me thx.

I have a report where each section returned i.e. 1, 2, 3..
has information

what I would like to do is rather then having it show 1 say for the section
I would like it to subsititue the proper text based on the number
i.e.
1 = Top Information
2 = Middle Info
3 = Bottom Info

I am trying to figure out if I can use the Iff command to do this
I have seen the examples for the color changes but can not seem to figure
out if I can substitue text

any clues would help a bunch

thanks
RE: Iff command need to sup in text bobfoc
10/21/2005 1:43:02 AM
iif(Fields!name.Value = 1, "Top Information",
iif(Fields!name.Value = 2, "Middle Info",
iif(Fields!name.Value = 3, "Bottom info",
"unknown info")))

hope taht helps, feel free to ask anymore questions i know what it's like
just startin in reporting services, it takes a while to get to grips with it!

bobfoc

[quoted text, click to view]
RE: Iff command need to sup in text Wayne Snyder
10/24/2005 4:45:19 AM
You could also use the simpler switch
=switch(Fields!name.Value = 1, "Top Information",
Fields!name.Value = 2, "Middle Info",
Fields!name.Value = 3, "Bottom info",
true,"unknown info")


--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC

I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.


[quoted text, click to view]
AddThis Social Bookmark Button