Solved

Change True/False to Active/Not Active

Posted on 2008-06-25
4
373 Views
Last Modified: 2010-04-21
This is a reporting services question.

I have a field called PunchedIn as 1 or 0. When i use reporting services and show that, it shows 1 or 0. Now, i want to change that to Yes if it shows 1 or No if it shows 0 when reporting it. I dont want to change it in the database.

I tried the IFF command
IFF(Fields!Punch.Value =1, TRUE,FALSE)
and it gives me True and False but i cant change it for it to say Punched In , Not Punched in.

Please tell me how i can do this in reporting services. I am learning it so if you could be a bit more detailed i will apprecaite it!
0
Comment
Question by:nsehmi
  • 2
4 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 21868611
select case punchedin when 1 then 'Yes' when 0 then 'No' End, *
from tablename
0
 

Author Comment

by:nsehmi
ID: 21868653
How would you add that in reporting services.
0
 
LVL 12

Accepted Solution

by:
jgv earned 125 total points
ID: 21868729
You've got the right idea but you don't need to use true or false; just use the text you want displayed in the cell:
=IIF(Fields!Punch.Value = 1, "Yes", "No")
0
 

Author Closing Comment

by:nsehmi
ID: 31470700
I forgot about the quotations. THANK YOU !!!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Hi, I am very much excited today since I'm going to share something very exciting Tool used for Analytical Reporting and that's nothing but MICROSTRATEGY. Actually there are lot of other tools available in the market for Reporting Such as Co…
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

813 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

12 Experts available now in Live!

Get 1:1 Help Now