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 8855243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:05:27+00:00 2026-06-14T14:05:27+00:00

I have two datasets: Dataset1 (primary) and Dataset2. My report dataset is Dataset1. I

  • 0

I have two datasets: Dataset1 (primary) and Dataset2. My report dataset is Dataset1.

I want to access Gross premium Amount from Dataset2 and put it in the report. The report is working just fine if the parameter for “market name” is a single value parameter.

When I set the parameter properties to “Allow Multiple Values”, my report is displaying wrong Totals for “Production” Field. The problem is because the lookupset function is based on Currency_Type.

What I should do is search for each Market Name and for each currency type, then search for the appropriate Gross Premium in second dataset and return the value.

Dataset1:

Market Name      Currency Type     Receivable

Dataset2:

Company Name2    Currency Type1    Gross Premium Amount

The results should be like this:

Market Name      Currency Type     Receivable             Gross Premium Amount

I used this code if to search for one value:

=code.SumLookup(LookupSet(Fields!Currency_Type.Value, Fields!Currency_Type1.Value,Fields!Gross_Premium_Amount.Value, "DataSet2"))

What should I do if I want the lookupset based on Market Name and Currency Type combined?

  • 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-06-14T14:05:28+00:00Added an answer on June 14, 2026 at 2:05 pm

    Can you join the datasets in your query? That would be a lot easier, if it’s possible. Otherwise you need to have some way to break apart your multi-value parameter, such as a including it as an element in your first dataset. (Maybe even a cross join if appropriate.)

    But to directly answer your question

    What should I do if I want the lookupset based on Market Name and Currency Type combined?

    [Note that this doesn’t have much to do with how to lookup a multi-value parameter.]

    I have solved this problem by creating a key from the two pieces of information in my queries themselves, such as with string concatenation, but you can also do the same in your LookupSet function:

    =LookupSet(Fields!Currency_Type.Value +”-” + Fields!MarketName.Value, Fields!Currency_Type1.Value + “-” + Fields!Market_Name.Value, Fields!Gross_Premium_Amount.Value, “DataSet2”))

    This will only work if MarketName is a value in your first dataset.

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

Sidebar

Related Questions

I have two datasets named dataset1,dataset2. I want put the left outer join relation
I have a report with two separate tables referencing two separate datasets. The first
I have a report that needs to get data from two logical areas of
I have two datasets each with one data table pulled from different sources and
I have two datasets need to merge. The first one is a big dataset
I have two datasets in a SQL Server 2008 reporting services report. I need
i have a problem i am creating a crystal report which have two dataset
In the example below I have two datasets (Z and A). I want to
I have a question about parallelization: I have two datasets. Dataset1 has m rows
I have two data sets, each dataset contains the pixel values of an image.

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.