Solved

How can I convert Excel vlookup to SSRS report?

Posted on 2015-01-20
1
447 Views
Last Modified: 2015-01-24
Excel Vlookup table looks like this:
   Lookup    &      Return
Field Value          Value
      PP7                 7 (returned)
      PP12              12 (returned)

How can I perform a similar lookup in SSRS, maybe through a hidden table?
0
Comment
Question by:rhservan
1 Comment
 
LVL 14

Accepted Solution

by:
nishant joshi earned 500 total points
ID: 40561215
Hi rhservan,

First you need to create dataset for lookup. e.g "lookup".Lookup dataset should contains all fields.

For example,
SELECT LookupFieldValue,LookupReturnValue
FROM @Table

Open in new window


Your SSRS Expression whould be

=Lookup(Parameters!LookupParam.Value, Fields!LookupFieldValue.Value, Fields!LookupReturnValue.Value, "lookup")

Open in new window


Thanks,
Nishant
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question