Solved

Report Builder Expression

Posted on 2014-10-28
3
845 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 Lag Function With Group Levels 1 26
SSRS 2016 Rendering HTML tables 3 25
CDC and AOG on MS SQL 2012 13 23
SQL Server Configuration Manager WMI Error 11 16
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
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 shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

789 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