Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6782267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:43:16+00:00 2026-05-26T16:43:16+00:00

My dataset currently has 12 rows of data. Each representing data for a month.

  • 0

My dataset currently has 12 rows of data. Each representing data for a month. I would like to have variance of a column between to rows, the rows being last & last but one i.e., latest month and previous month’s data.
It could have been simple if I were to work on tablix but thats not the case. I want those values for a textbox.

Any ideas on it anyone?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:43:17+00:00Added an answer on May 26, 2026 at 4:43 pm

    I hope you are using SSRS 2008R2:

    R2 introduced the Lookup function that is perfect for this scenario.

    =Lookup( Fields!ProductUID.Value ,Fields!ProductID.Value,Fields!Price.Value,"PriceDataSet")
    

    The Lookup function above will evaluate the first parameter (“Fields!ProductUID.Value”) in the current dataset, then look for a matching value in the field specified in the second parameter (“Fields!ProductID.Value”) in the dataset specified in the fourth parameter. The value of the third parameter is then evaluated in that row of the dataset and returned.

    A little convoluted, but very helpful.

    In your case, you can use this in a textbox with a calculated a static number:

    =Lookup(
        Month(DateAdd(DateInterval.Month, -1, GetDate())),
        Fields!MonthID.Value,
        Fields!Name.Value,
        "DataSet1")
    

    This should calculate a number for last month, then look for a match in DataSet1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a dataset which has two columns that I'd like to compare.
I have a report with a dataset that has a column with booleans. In
I have a data set (currently in Access 2007 format) which has 2 tables,
We are currently having a discussion if dataset should go in the data or
As a bonus to the project I'm currently working on, the people would like
I have multiple sets of measurements. Each set has multiple values in it. The
I have a data set that includes cases by year and month. Some months
I have a class that has overloaded constructors. I'd like to re-factor the code
Currently I am binding a dataset with a datagrid. ds = query.ExecuteReadQuery(select PollQuestionText as
I am currently working with an SSRS 2008 report that returns a dataset similar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.