• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 41
  • Last Modified:

ssrs iif expresssion

What is wrong with this SSRS expression?

=iif(Sum(Fields!Total.Value) = "", "4", "3")

I am getting a lot of 4's but also a lot of errors.
0
vbnetcoder
Asked:
vbnetcoder
1 Solution
 
Russell FoxDatabase DeveloperCommented:
I suspect it's because you're trying to sum a string. Try:
=iif(Sum(Fields!Total.Value) = 0, 4, 3)

Open in new window

0
 
vbnetcoderAuthor Commented:
ty
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now