Solved

Change True/False to Active/Not Active

Posted on 2008-06-25
4
370 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Calculate values in an array 18 35
Time Duration able to handle overflow of 24+ hours 5 39
grouping logic 6 49
SQL Pivot add row totals 2 13
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

895 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