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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:28:00+00:00 2026-05-31T04:28:00+00:00

I am using Reporting Services 2008. I have an RDL as follows ![I am

  • 0

I am using Reporting Services 2008. I have an RDL as follows
![I am asking it to print for 12 months so I get the following]

jan feb mar apr may jun jul aug sep oct nov dec Totals
1—1—-1—1—–1—-1—1—1—1—-1—1—1—-12

Now when I ask it to print for 4 months I get the following ![For 4 months]
jan feb mar apr Totals
1—1—-1—1—–12

I want the Totals column at the end to sum only the months that are printed. Currently It is Summing up all the months as i have put the following code behind the Totals Expression.

=Sum(Fields!retail1.Value + Fields!retail2.Value + Fields!retail3.Value + Fields!retail4.Value + Fields!retail5.Value + Fields!retail6.Value + Fields!retail7.Value + Fields!retail8.Value + Fields!retail9.Value + Fields!retail10.Value + Fields!retail11.Value + Fields!retail12.Value)

The expression behind each column to hide or show it is as follows:

=iif(Parameters!StartMonth.Value <= 5 and Parameters!EndMonth.Value >= 5,False,true)

How can display the total of only those months that are selected. And from the RDL itself, WITHOUT CHANGING THE QUERY.

Thanks in advance.

  • 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-31T04:28:01+00:00Added an answer on May 31, 2026 at 4:28 am

    Your total expression should look like this:

    =Sum(IIF(Parameters!StartMonth <= 1 And Parameters!EndMonth >= 1, Fields!retail1.Value, 0)) 
    + Sum(IIF(Parameters!StartMonth <= 2 And Parameters!EndMonth >= 2, Fields!retail2.Value, 0))
    + Sum(IIF(Parameters!StartMonth <= 3 And Parameters!EndMonth >= 3, Fields!retail3.Value, 0)) 
    + ... and so on
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Sql Server Reporting Services (SSRS) 2008 to create RDL files, but also
I'm using SQL Server Reporting Services 2008 / Visual Studio 2008. I have this
We are using SQL Server 2008 R2. In SQL Server Reporting Services when an
I have created a line chart using Reporting Services that charts the number of
I am using SQL Reporting services , it's working perfectly and shows a print
I'm using Microsoft Reporting Services (SSRS) 2008 with an Extended Datareader/Dataset Provider (i.e. using
Using SQL Server 2008 Reporting services: I'm trying to write a report that displays
I'm tasked with reporting on survey data using Reporting Services 2008. My challenge is
I'm using Reporting Services 2008 and Report Builder 2.0. I've used a tablix to
I am using SQL Server Reporting Services 2008 to create a report. A table

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.