Reporting Services Page Header Value

I'm trying to pull a value from a table in the body of a report into the page header. The table is not the driving table and disappears after the first page is printed so our current header reference is not getting a value.
LVL 4
joeviAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Megan BrooksSQL Server ConsultantCommented:
You can pull data from a different dataset using aggregate functions like First() and Last(). If you can either include the information in the main dataset or pull it from the other dataset or a special one that you create just for this purpose then you can do it. If you are using SSRS 2008, you can reference the data(set) from a page header. With SSRS 2005, it might be harder but I think it can still be done.
I don't know a trick for just doing this in one step (maybe someone else does), but you should be able to get the information with the right dataset query.
What version of SSRS are you using? Is the data in the two table data regions related? If so, how? What exactly needs to go into the page header? Can you include it as a field in the main dataset?
(SSRS 2008 R2 may offer a simple solution using writable report variables, when it is released, but that probably doesn't help.)
0
joeviAuthor Commented:
0
Megan BrooksSQL Server ConsultantCommented:
You are using SSRS 2005, then? SSRS 2008 tends to drop the Code instance when moving to a new page, and anything you have stored there is lost. Not a problem unless/until you migrate.
0
joeviAuthor Commented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joeviAuthor Commented:
Problem solved
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.