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 8562899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:50:03+00:00 2026-06-11T16:50:03+00:00

I really need help summing values based on a range (in an SSRS expression)

  • 0

I really need help summing values based on a range (in an SSRS expression).
I have a dataset that pulls accounts and money values.

SELECT acct, location, amt FROM Table

I need help creating an expression for a tablix. I’d like to sum the amt values for accounts lying within a range. For example, I have accounts ranging from 40000 to 99999. So I’d like to do, for the expression:

=IIF(Fields!acct.Value >= 40000 and Fields!acct.Value <= 50000, SUM(Fields!amt.Value), "0.00")

The problem with the expression above is that it is returning the wrong sum. I believe it’s summing all available amt values from the dataset when an acct falls between that range. I need it to only sum the amt values that fall between the range. I can’t simply make the range smaller, because eventually I am trying to do more calculations on other ranges within the expression, similar to…

=(IIF(Fields!acct.Value >= 40000 and Fields!acct.Value <= 50000, SUM(Fields!amt.Value), "0.00")) 
- (IIF(Fields!acct.Value >= 55000 and Fields!acct.Value <= 99999, SUM(Fields!amt.Value), "0.00"))

I am not sure where to look to see the syntaxical issue with this. Do I throw a boolean within the SUM? Really stuck on this…

  • 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-11T16:50:04+00:00Added an answer on June 11, 2026 at 4:50 pm
    =SUM(IIF(Fields!acct.Value >= "40000" and Fields!acct.Value <= "50000", Fields!amt.Value, 0))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really need help here. I'm desperate at this point. I have NSOperation that
I really need help with this one. I have written an adding that adds
I have another exercise I have to do that I really need help with.
i really need help, i can't see something that is obvious, and usually then
I do not have very much knowledge of programming and really need help. I
I am googling for two days... I really need help. I have an application
I really need help with interfaces in general... Any resources that you guys would
I really need help with my ASP.NET MVC 2 site... Simply put, I have
I really need help... I have implemented a COM component (i.e A.dll) with IDL,
I really need help with this last part of my program. I need to

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.