Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8710817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:43:22+00:00 2026-06-13T04:43:22+00:00

How to write multiple if statement in SSRS. I have written like this. =IIf(Parameters!MyDuration.Value=ThisMonth

  • 0

How to write multiple if statement in SSRS. I have written like this.

=IIf(Parameters!MyDuration.Value="ThisMonth" & Parameters!Transactions.Value="Sale", Sum(Fields!ThisMonthSal), True,False)

this is throwing an exception that multiple parameter used. Please guide me how to write this multiple if statement.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:43:23+00:00Added an answer on June 13, 2026 at 4:43 am

    The & operator concatenates two strings. You’re looking for the And operator. Refer to this msdn article.

    In addition, note that IIF has three parts (see decision functions here), and works like this:

    =Iif(test, truepart, falsepart)
    

    I’m not sure what you’re trying to do with the “SUM” bit (or what you’re trying to achieve at all, the question’s not clear on that), but something like this would work:

    =IIf(Parameters!MyDuration.Value="ThisMonth" And Parameters!Transactions.Value="Sale", 
          Iif(Sum(Fields!ThisMonthSal.Value) = 0, "Zero sum", "Non-zero sum"),
          "Not thismonth or sale")
    

    Finally, you’re not entirely clear about the error you’re getting. If you’re also having a problem with accessing the parameter you may have to investigate that seperately. In any case, the above should explain the Iif bit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do you write a method/message with multiple parameters? EDIT: Like multiple parameters for
I usually use the switch statement when I have to write multiple condition statements,
I have multiple threads who all need to write to the same Dictionary. I
I have read a rule somewhere to: Follow the single-entry/single-exit rule. Never write multiple
I would like to write a T-SQL statement, that structures data to be loaded
I have a perplexing SQL select statement (ugly) that I'm trying to write in
In Groovy, the return statement is optional , allowing you to write methods like:
I would like to write a single SQL command to drop multiple columns from
How do I write an IF statement with multiple arguments in T-SQL? Current source
I need write an update statement that used multiple tables to determine which rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.