Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
OceanExplorer
Helper I
Helper I

How to create this Matrix or Table visual in Report Builder

Hello, suppose these are the records:

Screenshot 2025-03-18 165713.png

 

Based on the above recordes, I was trying to get the below aggregated table in Report Builder - basically it calculates the payment groupped by Customer ID and State:

Screenshot 2025-03-18 165808.png

I tried a few times of placing State, Customer ID and Payment in Row/Column groups and Values

Screenshot 2025-03-18 165414.png

, but can't get the desired result. 

1 ACCEPTED SOLUTION
Khushidesai0109
Super User
Super User

 

Hiii @OceanExplorer 

  • Insert a Table

    • In Report Builder, add a new Table from the toolbox.
  • Assign Fields to Rows & Values

    • Drag "State" into the Row Groups pane.
    • Drag "Customer ID" under "State" in the Row Groups pane (this ensures Customer ID is grouped under each state).
    • Drag "Payment" into the Values pane and set the aggregation to Sum.
  • Ensure Aggregation is Correct

    • Right-click the [Payment] field in the table and choose Expression.
    • Modify the expression to:
       
      =Sum(Fields!Payment.Value)
    • This ensures that the Payment values are summed for each State + Customer ID.
  • Run the Report

    • Click Preview to verify the output.

 

If this helps, I would appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!

 

 

Proud to be a Super User!!

View solution in original post

7 REPLIES 7
Khushidesai0109
Super User
Super User

 

Hiii @OceanExplorer 

  • Insert a Table

    • In Report Builder, add a new Table from the toolbox.
  • Assign Fields to Rows & Values

    • Drag "State" into the Row Groups pane.
    • Drag "Customer ID" under "State" in the Row Groups pane (this ensures Customer ID is grouped under each state).
    • Drag "Payment" into the Values pane and set the aggregation to Sum.
  • Ensure Aggregation is Correct

    • Right-click the [Payment] field in the table and choose Expression.
    • Modify the expression to:
       
      =Sum(Fields!Payment.Value)
    • This ensures that the Payment values are summed for each State + Customer ID.
  • Run the Report

    • Click Preview to verify the output.

 

If this helps, I would appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!

 

 

Proud to be a Super User!!

Thank you, I got it solved by adding something extra on top of your steps. Because I don't want to see the + Expanded/Collapse view, I need to leave "Expand/collapse groups" box unchecked. 

Screenshot 2025-03-19 150131.png



@OceanExplorer  this solution might help you.

AthmakuriRekha
Frequent Visitor

Hi @OceanExplorer ,

 

1. Navigate to insert --> Table --> Table Wizard. Select the data set from the wizard. 
2. From the list of columns, drag and drop state and customer id in the Row Group section and payment to values section and right click on payment and change it to sum. resulting wizard will be as shown below.

AthmakuriRekha_0-1742381748175.png

 

3. Click on Next and Finish it. It will add the table to the report. Click on run and the expected results are shown as below.

AthmakuriRekha_1-1742381820801.png


Hope this answers your query.

 

parry2k
Super User
Super User

@OceanExplorer as a tablix visual, put state, customer id, and in the 3rd column add expression, and in the expression add sum of the payment column and that should do it.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi Parry2k, could you specify the sum expression for the 3rd column payment? I right-click on the value cell of the 3rd columns and entered =sum(Field!Payment.Value), but the result still didn't group the customer ID, I am still seeing multiple records/rows for the same customer ID. 

jarturohb
New Member

Hi OceanExplorer,

 

Have you tried dragging and dropping the columns to the groups? 
Are you working in PBI web right? 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.