Solved

SSRS display parameter label in the expression of text field

Posted on 2014-12-09
1
1,359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

718 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