SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 field from dataset
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

helixpoint
Constraint Violating Yak Guru

276 Posts

Posted - 07/26/2013 :  08:27:07  Show Profile  Reply with Quote
I Need to grab one value out of a dataset and put it into a textbox. Basically it is a list of comments by a certain personID. I only need the comment from a certain commentTypeID. Possible??

data...

User ID commentTypeID comment
1 13 blaaaa blaaaaa1
1 14 blaaaaa baaa 2

I need the comment from userID 1 commentTypeID 14



Dave
Helixpoint Web Development
http://www.helixpoint.com

helixpoint
Constraint Violating Yak Guru

276 Posts

Posted - 07/26/2013 :  09:24:12  Show Profile  Reply with Quote
Figured it out
=Lookup(14, Fields!commenttypeid.Value, Fields!comment.Value, "DataSet2")

Dave
Helixpoint Web Development
http://www.helixpoint.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 07/26/2013 :  11:18:41  Show Profile  Reply with Quote
why not use a join and bring it from db itself instead of doing it at reporting end.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000