Solved

Report Builder Expression

Posted on 2014-10-28
3
942 Views
Last Modified: 2014-10-28
I have the following Expression that is causing an error.
=IIF(Parameters!gbloptstate.Value = 1-, "(formerly PAHPIX)", IIF(Parameters!gbloptstate.Value = 5-, "(formerly PAHPIX)", IIF(Parameters!gbloptstate.Value = 4-, "(formerly MDHPIX)", IIF(Parameters!gbloptstate.Value = 3-, "(formerly NJHPIX)", "(formerly PAHPIX)"))))

Error: The Value expression for the textrun ‘FormerStateLabel.Paragraphs[0].TextRuns[0]’ contains an error: [BC30201] Expression expected.
0
Comment
Question by:mburk1968
[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
  • 2
3 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40408535
I've not seen the term 1- before - should that read 1 or "1-" or -1?

That's probably where the error is.
0
 

Author Comment

by:mburk1968
ID: 40408561
the 1- is the incoming parameter value. 1- = PA, 4- = MD
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40408569
Is it a string? if so, it needs to be in quotation marks.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
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…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

635 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