Solved

SSRS display parameter label in the expression of text field

Posted on 2014-12-09
1
865 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
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.

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now