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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:21:55+00:00 2026-06-12T18:21:55+00:00

I have a matrix in ssrs like this: +——————–+————————-+ | | Date | +

  • 0

I have a matrix in ssrs like this:

+--------------------+-------------------------+
|                    | Date                    |
+                    +----------+--------------+
|                    | Quantity | All Quantity |
+----------+---------+----------+--------------+
| Employee | Total   |          |              |
+          +---------+----------+--------------+
|          | Product |          |              |
+----------+---------+----------+--------------+

In this table Employee is a Row group and Product is a child row group. Date is a column group. In Quantity field I have numbers which are comming from my database. In the All Quantity column I need to have the total amount of Quantity in this Date group. But using my expression, it calculates All Quantity using data from all Date groups.

I mean that for date “2012-07-13” All Quantity should be 1000 and for date “2012-06-12” it should be 500. But instead of that, in both dates it shows 1500. How should I solve this?

My expression is here:

Sum(Fields!Quantity.Value, "Employee")

A dataset would look like this:

Employee1   Product1    200 2012-01
Employee1   Product1    500 2012-02
Employee1   Product1    900 2012-03
Employee1   Product2    300 2012-01
Employee1   Product2    500 2012-02
Employee1   Product2    40  2012-03
Employee2   Product1    450 2012-01
Employee2   Product1    50  2012-02
Employee2   Product1    30  2012-03
Employee2   Product2    0   2012-01
Employee2   Product2    50  2012-02
Employee2   Product2    120 2012-03

This is an example of what i have, what i get and what i need.

//IF I USE Sum(Fields!Quantity.Value)
                    Date1                       Date2
                    Quantity    All Quantity    Quantity    All Quantity
Employee1   Total   590         -               190         -
                    100         100             50          50
                    200         100             50          50
                    150         150             40          40
                    50          50              30          30
                    90          50              20          20

//IF I USE Sum(Fields!Quantity.Value, "Employee")
                    Date1                       Date2
                    Quantity    All Quantity    Quantity    All Quantity
Employee1   Total   590         -               190         -
                    100         780             50          780
                    200         780             50          780
                    150         780             40          780
                    50          780             30          780
                    90          780             20          780

//I NEED TO GET
                    Date1                       Date2
                    Quantity    All Quantity    Quantity    All Quantity
Employee1   Total   590         -               190         -
                    100         590             50          190
                    200         590             50          190
                    150         590             40          190
                    50          590             30          190
                    90          590             20          190
  • 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-06-12T18:21:56+00:00Added an answer on June 12, 2026 at 6:21 pm

    If you can do things in SQL, it will always be faster than in the RDL, however, there’s at least one way you can do it on the report.
    Using your second option above,
    Sum(Fields!Quantity.Value, “Employee”):

    On the Cell I’ve indicated below*, give it a name. It will be textbox11 or something, call it EmployeeTotal.
    In the cell I’ve marked with the caret^, enter this expression

    =ReportItems!EmployeeTotal.Value
    

    You’ll then get what you want (see the image attached). 1

                        Date1                       Date2
                        Quantity    All Quantity    Quantity    All Quantity
    Employee1   Total   590*         -              190         -
                        100         590^            50          190
                        200         590^            50          190
                        150         590^            40          190
                        50          590^            30          190
                        90          590             20          190
    

    Next time, it’s easier for us to help you if you provide a dataset example that matches what you provided that you want to be displayed.

    e.g. in the mockup I ran to test this, I used this query to create what I think is your real dataset:

    ![SELECT        'Employee1' AS Employee, 'Product1' AS Product, 100 AS Quantity, '2012-01' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product2' AS Product, 200 AS Quantity, '2012-01' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product3' AS Product, 150 AS Quantity, '2012-01' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product4' AS Product, 50 AS Quantity, '2012-01' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product5' AS Product, 90 AS Quantity, '2012-01' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product1' AS Product, 50 AS Quantity, '2012-02' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product2' AS Product, 50 AS Quantity, '2012-02' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product3' AS Product, 40 AS Quantity, '2012-02' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product4' AS Product, 30 AS Quantity, '2012-02' AS Date
    UNION ALL
    SELECT        'Employee1' AS Employee, 'Product5' AS Product, 20 AS Quantity, '2012-02' AS Date
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a matrix called matrix that looks like this: charge convexhull_xCoor convexhull_yCoor id
I have A matrix part of which looks like this : 4080530 92 --
I have a SSRS matrix table, which generates column dynamically. but i want to
I have a ssrs report . There is a matrix with 2 row groups(from
i have an SSRS (2008 R2) report with matrix which contains multiple row groups.
I have matrix (a) with (1:10),<10 x 1> double. I would like to copy
I have a matrix of objects that contains data in this form: name A,2,name
I have created a SSRS 2008 report.I have created a matrix.I want to make
I have a matrix like the following (arbitrary cols/rows): 1 0 0 0 0
I have this matrix A, representing similarities of pixel intensities of an image. For

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.