Solved

Choose function in ssrs 2008

Posted on 2010-09-22
6
3,924 Views
Last Modified: 2012-05-10
Hi,

I have to hard code values 0,1,2,3,4,5,6 like pending, rejected etc. for a field.

I believe, i can use choose function for this.
following is the expression i've used. but, its not working for me.

Choose(field.value,"pending", "rejected","accepted").


Please correct me if i am wrong.

Thanks..


0
Comment
Question by:Mounikaa
[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
  • 4
  • 2
6 Comments
 

Author Comment

by:Mounikaa
ID: 33736447

ANYBODY IS THERE TO RESPOND??
0
 
LVL 4

Expert Comment

by:BostonMA
ID: 33736843
What error message are you getting? Do you have the = sign to start the formula?
0
 

Author Comment

by:Mounikaa
ID: 33736865
I have the  = sign.

I am not getting any error message.
but, I am getting the data in.
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
LVL 4

Accepted Solution

by:
BostonMA earned 500 total points
ID: 33736926
I think you want the switch function. Ex:

 =Switch(
field.value = 1, "Pending",
field.value = 2, "Rejected",
field.value = 3, "Accepted"
)

0
 

Author Comment

by:Mounikaa
ID: 33736939
k
let me try that.
and get back to you..
0
 

Author Comment

by:Mounikaa
ID: 33737006
Hi,

Thanks so much..

It worked for me..
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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