Power BI Report Builder - Total is inflated

HGlon 5 Reputation points
2026-09-16T21:57:57.9966667+00:00

I am building a report in Report builder and am having difficulty getting the total to calculate correctly. I have four parameters (user name, start date, end date, and activity grouping) acting on the single dataset this report is drawing on. It is displaying the correct Activities and hours associated with each Activity for that Date; I'm just looking to sum those hours for each date. I added a Total row by right clicking on the ActivityGroup in the Row Groups panel > Add Total > After. It popped up as a row with "Total" in one column and nothing else. Then, I added in the Value: =SUM(Fields!Count.Value)

I'm assuming this is related to how I've set up my groups. Suggestions welcome; this is my first paginated report.

User's imageUser's image

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.

0 comments No comments

2 answers

Sort by: Newest
  1. Erland Sommarskog 137.4K Reputation points MVP Volunteer Moderator
    2026-09-16T22:02:06.8133333+00:00

    For questions about Power BI, you might be better off in asking in the Fabric Communities: https://community.fabric.microsoft.com/.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-09-16T21:58:17.5633333+00:00

    The total row was added correctly, but the expression is likely summing Fields!Count.Value in the wrong scope. In a grouped tablix, =Sum(Fields!Count.Value) can aggregate over a broader scope than the date group, which inflates the result.

    Use the total row that was added from the Date row group, and set the total textbox to a scoped sum for that group.

    A working pattern is:

    =Sum(Fields!Count.Value, "YourDateGroupName")
    

    Replace "YourDateGroupName" with the actual name of the row group for Date.

    Key points:

    1. The Add Total command adds a row outside the current group and inserts a default aggregate for numeric fields.
    2. If the expression is edited manually without the correct group scope, the total can evaluate across the whole data region or another parent scope.
    3. The Sum function supports summing within a specific group or data region scope.

    What to check in Report Builder:

    1. In the Row Groups pane, identify the group that is based on Date.
    2. Right-click the Date group cell again and use Add Total > After if needed, so the total row is tied to that group.
    3. In the total textbox, replace:
         =Sum(Fields!Count.Value)
      
      with:
         =Sum(Fields!Count.Value, "DateGroupName")
      
    4. Preview the report. The total should now repeat once per date group and sum only that date’s rows.

    If the total row is for a child group instead of the Date parent group, it will total the wrong scope. For nested groups, the total row for a child group is outside the child group but still inside the parent group, so placement matters.

    If the goal is one subtotal per date, the total must be attached to the Date row group, not the Activity detail row or another nested group.

    Example from the expression syntax:

    =Sum(Fields!LineTotal.Value, "Order")
    

    That same pattern applies here for the Date group.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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