Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Converting from Crystal to SSRS - Formula issue

Converting from Crystal to SSRS - Formula issue

Converting from Crystal to SSRS - Formula issue


I’m trying to convert a stat report from Crystal to SSRS. In crystal I use a formula to do the calculations.

This is the crystal expression.

if {TRAFFIC_DATE_SUMMARY.TYPE} in (["Sober Designated Drivers Contacted", "Total DRE Evaluations"]) then '*'

This was my attempt in SSRS

=iif(Fields!Type.Value) in (["Sober Designated Drivers Contacted", "Total DRE Evaluations"]) then "*"
else iif Sum(Fields!Kount.Value), (Fields!Type.Value)) = 0 then "*"
else totext(Sum((Fields!Kount.Value), (Fields!Type.Value)),0,"")

I get the following error when running in SSRS. The value expression for the textrun "Kount.Paragraphs[0].TextRuns[0]' contains an error: [BC30516] Overload resolution failed because no accessible 'IIF' accepts this number of arguments.

Any help appreciated. I'm sorta new to SSRS and still learning my way.

RE: Converting from Crystal to SSRS - Formula issue

Hi Stewman,
In SSRS you don't need the 'then' or 'else' text in a IIF statement.


=iif(fields!type.value in ('firsttype','secondtype'), '*', iif(sum(fields!cost.value,"GroupingName")=0, '*', 'Elsevaluegoeshere'))

The first test is in blue, the result if true is in blue bolded, the second test is in green, the result of this test if true is in green bolded, the else statement if both the first test and second test are false is in red.

Good luck.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close