Solved

SSRS display parameter label in the expression of text field

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

757 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

20 Experts available now in Live!

Get 1:1 Help Now