Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty 0.00 for empty value in reporting services

Status
Not open for further replies.

Jdbenike

MIS
Sep 11, 2008
74
0
0
US
I have a report in reporting services.

I have a field called...
=Fields!SCHEDULEDHOURSWEEKTODATE.Value

How do I return a 0.00 for that value field if nothing returns after I run the report? There are some occassions when data wont' exist.

I tryed something like

=IIF (Fields!SCHEDULEDHOURSWEEKTODATE.Value = " ", 0.00, 0.00)

that brought back what I wanted for the empty values, but then brought back #error for all the values that were showing up correctly for the field.

Suggestions?
 
Code:
=iif(Fields!SCHEDULEDHOURSWEEKTODATE.Value is nothing, "0.00", Fields!SCHEDULEDHOURSWEEKTODATE.Value)
 
Do it in the SQL:

isnull(Fields!SCHEDULEDHOURSWEEKTODATE.Value,0) as SCHEDULEDHOURSWEEKTODATE


Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top