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

  • Home
  • SEARCH
  • 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 6019363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:24:40+00:00 2026-05-23T03:24:40+00:00

I have a table in a Visual Studio 2008 Report (2005 .rdlc). The table

  • 0

I have a table in a Visual Studio 2008 Report (2005 .rdlc).

The table has a group, each group has a total and after all groups it has a grand total and looks something like this:

Group 1 |     A    |  B  |  C  |
----------------------------
        |     Bob  | 123 |  10 |   
        |     Tim  |  10 |   2 |  
        |  (Steve) | (43)|  (1)|  
Total                133

Group 2 |     A    |  B  |  C  |
----------------------------
        |     Jon  | 100 |  10 |   
        |     Kit  |  30 |   2 |  
        |  (Steve) | (83)|  (1)|  
Total                130

Grand Total          263

Steve is special and his numbers are shown but I don’t want them included in any of the totals.

At the moment the Grand Total is an expression

sum(Fields!B.Value)

Is there anyway that I can filter out the sum? I have tried creating another group on the table which filters out rows where column A is equal to Steve, but when I try to sum I get an error:

sum(Fields!B.Value, "noSteveGroup")

Error 2 The Value expression for the textbox ‘textbox6’ has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a data set.

  • 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-05-23T03:24:41+00:00Added an answer on May 23, 2026 at 3:24 am

    Turns out the sum function can accept some logic and doesn’t need a constant column name.

    I cannot do this

    sum(iif(Fields!A.Value = "Steve", 0, Fields!B.Value))
    

    But I can create a fake column full of zeroes and do this

    sum(iif(Fields!A.Value = "Steve", Fields!Zero.Value, Fields!B.Value))
    

    Not so elegant, but unless there are any other answers it will have to do.

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

Sidebar

Related Questions

Can you have two tables in Visual studio 2008 report (in the report control)
I have to create a report on Microsoft Reports in Visual Studio 2008. I
I am using SQL Server 2005 Express and Visual Studio 2008. I have a
I use Visual Studio 2008, C#, MS SQL Server 2005. I have 2 tables
I don't know if anyone has watched the Visual Studio 2008, Linq to SQL,
I have some c# projects in visual studio 2008, and I want to get
i am developing my app on visual studio 2008 i have 4 tables i
I have a C# console application written using Visual Studio 2008. My system culture
I have developed an application using VB.NET, Visual Studio 2008 and the SQL Server
I am new to LINQ. I am using Visual Studio 2008 and have created

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.