Problem with getting totals in Report Builder 3.0

S G 156 Reputation points
2020-10-06T18:31:02.423+00:00

Hi all,

I am using a Microsoft SQL Server Report Builder 3.0 to build a report. I want to group by department name and hire date and then display total salary for each hire_date and department name. I have successfully created the two groups, by when I right click to add totals, the 'Add Total' option is grayed out. Any thoughts what I am doing wrong?

Thank you,

Seyed
30524-employeeinfo.jpg

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,915 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyzhao-MSFT 15,576 Reputation points
    2020-10-07T05:57:15.583+00:00

    Hi @S G ,
    The "Add Total" command is context-sensitive and only supports numeric fields. You can refer to: Add totals to a group or Tablix data area (Report Builder and SSRS)
    I did some tests as follows.
    30557-01.jpg
    Then I click on the "Salary" option to add the total.This operation can be successfully performed.
    30578-02.jpg

    This is the sum of the grouping "Hire Date". The preview effect is as follows.
    30467-03.jpg
    Right click on the "Sun(Salary)" option to add the total.This is the sum of the grouping "Department Name".
    30611-04.jpg

    In the end we will get the result as shown below.
    30612-05.jpg
    Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. S G 156 Reputation points
    2020-10-07T12:27:12.123+00:00

    Hi Joy,
    Thank you very much for your help. I tried to follow your suggestion and noticed when I right click on the column to find the 'Add total' option, it was grayed out. I check the data type for the salary and to my surprise it had changed to nvarchar(50). This must have happened when I created the dbo.EMPLOYEES table from a corresponding table in an Oracle database. Anyway, all is good.

    Thank you very much!

    30639-add-total-disabled.jpg

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.