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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:52:11+00:00 2026-05-11T18:52:11+00:00

I have a report with a dataset that has a column with booleans. In

  • 0

I have a report with a dataset that has a column with booleans. In the table footer I want to display x / y where x is how many rows that were true and y is how many rows there was total.

Currently I have this:

=Count(Fields!Transfered.Value).ToString() + " / " + CountRows().ToString()

But the first becomes same as the last part. I then tried this:

=Sum(Fields!Transfered.Value).ToString() + " / " + CountRows().ToString()

But that generates an error, which I guess I can understand. I thought that if I converted the booleans into numbers where true is 1 and false is 0, then it could work out nicely. But how can I do that? Or is it a smarter way to do this all together?

Update: Have now also tried

=Sum(CInt(Fields!Transfered.Value)).ToString() + " / " + CountRows().ToString()

And got a negative result… O.o

Also found a way that worked, which I posted as an answer. But I won’t accept it as an answer yet incase someone has a better way to do 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-05-11T18:52:12+00:00Added an answer on May 11, 2026 at 6:52 pm

    I can tell you why things went wrong…

    • Count(Fields!Transfered.Value) is simply the number of rows. aka CountRows()
    • Sum(Fields!Transfered.Value) is trying to aggregate “true” or “false” = error
    • Sum(CInt(Fields!Transfered.Value)) will sum -1 and 0 because VB.NET true = -1
    • Sum(IIF(Fields!Transfered.Value, 1, 0)) fixes the sign issue = your solution

    To avoid the extra IIF, you could use negate the sum of all the -1s

    = -Sum(CInt(Fields!Transfered.Value)).ToString() + " / " + CountRows().ToString()
    

    In the end, either solution would be OK and both are equally kludgy

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

Sidebar

Related Questions

I have a report in InfoView that has in a footer showing the effective
This the scenario have. There's an SSRS server that has a report where the
I have a report in which I want to display value of 2 engineers
I have an SSRS report that contains several sub-reports. The user has the ability
I have a dataset that calls a stored procedure in an SSRS report. If
I have an rdlc that has a separately-defined dataset. The time has come that
I have a master report that has no parameters. But I have to include
I'm creating a dataset that will be displayed in an SSRS report. I have
I have a table in my dataset that I create it in dataset design
I have a report that is getting info from bsis, bsas, bsid, bsad, vbrk,

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.