Groups | Blog | Home
all groups > sql server reporting services > june 2004 >

sql server reporting services : Newbie: working with expressions on tables


Cindy Lee
6/18/2004 4:26:36 PM
I was reading the help, but I don't know if this is possible.

Dataset

first | last | Id
a | b | 1
c | d | 2
e | f | 3


For 1 cell I want to put:
Fields!ID.Value where Fields!First.Value="c" and Fields!Last.Value="d"

I just want to put specific fields in different spots. I didn't see this in
the help and looked around a bit. Is there a section in the help that
covers expressions like this?

Robert Bruckner [MSFT]
6/19/2004 6:33:36 PM
I think you want this:
=iif(Trim(Fields!First.Value) = "c" AND Trim(Fields!Last.Value) = "d",
Fields!ID.Value, Nothing)

Details on the IIF function are available on MSDN:
http://msdn.microsoft.com/library/en-us/vblr7/html/vafctiif.asp

--
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Cindy Lee
6/22/2004 11:16:42 AM
That works, but it only takes the 1st value. It doesn't loop through all
the rows if I do it cell by cell.



[quoted text, click to view]

AddThis Social Bookmark Button