Solved

SSRS display parameter label in the expression of text field

Posted on 2014-12-09
1
1,035 Views
Last Modified: 2015-03-15
Hi,

I have a parameter that is created by adding available values:

parameter prompt: Expired

label    value
Yes       0
No        1

I am trying to display on the report: EXpired: Yes (if yes is selected from dropdown box)

here is the expression I wrote:   ="Expired: " + Parameters!ExpiredName.Label
I have tried CSTR(Parameters!ExpiredName.Label),... but does not work.

but I keep getting #Error displayed instead.

the warning is:  Warning               1              [rsInvalidExpressionDataType] The Value expression used in textrun ‘Textbox28.Paragraphs[0].TextRuns[0]’ returned a data type that is not valid.                

Thanks in advance
0
Comment
Question by:shmz
1 Comment
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 40490659
Are you sure you've got the name of the parameter right?  Try:

=Parameters!Expired.Label

If Expired is the name of the parameter then this should run fine.  Once that works, add the additional string part.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

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