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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kd3975_odi
New Member

Subtotal Table on multiple columns based on 1 primary column

Hi,

 

I am new to Power BI and I am trying to subtotal a number of columns based on 1 primary column.

 

The table structure is as follows with the primary column being the ContractID and the subtotals need to be added to the

ContractValue

EstInvoiceValue
ActInvoiceValue
DonInvOpenValue

columns.

 

This is my data table:

 

Dept ContractID PorjectNo ProgOfficer PName PStartDatePEndDatePStatus AccountCode CompanyName AccountName ContractNo ContractValue InvoiceStatus ProjectCurrency DonorInvCurrency EstimatedInvoiceDateEstInvoiceValue EstInvoiceDesc DonorInvoiceNo ActualInvoiceDateActInvoiceValue InvoiceBalance DonInvOpenValue DonorInvoiceStatus
00019300Project1Joe BloggsSample Project 130/05/201605/06/2017ProjectinprogressC0001Donor ABCDonor ABC LondonABC0001                       1,000BALANCE TO BE INVOICED                                 3GBP30/05/2016                               750UpfrontA1000030/05/2016                               750                               -                                   750O
00019300Project1Joe BloggsSample Project 130/05/201605/06/2017ProjectinprogressC0001Donor ABCDonor ABC LondonABC0001                       1,000BALANCE TO BE INVOICED                                 3GBP05/06/2017                               250On Completion                                   -                               250  
00029301Project2Joe BloggsSample Project 201/01/201630/04/2016ProjectinprogressC0002Donor XYZDonor XYZ New YorkXYZ0001                       5,000BALANCE TO BE INVOICED                                 3GBP30/04/2016                           3,500Fees                                   -                           3,500  
00029301Project2Joe BloggsSample Project 201/01/201630/04/2016ProjectinprogressC0002Donor XYZDonor XYZ New YorkXYZ0001                       5,000BALANCE TO BE INVOICED                                 3GBP30/04/2016                           1,500Reimbursables                                   -                           1,500  

 

I have searched the internet and could not find a solution so hoping this method will provide me the information I need.

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kd3975_odi,

 

You can directly drag these columns to matrix to show the summary result or use SUMMARIZE function to get the summary table.

 

Capture.PNG

 

Table formula:

Table = SUMMARIZE(Sheet10,Sheet10[ContractID ],"Total ActInvoiceValue",SUM(Sheet10[ActInvoiceValue ]),"Total EstInvoiceValue",SUM(Sheet10[EstInvoiceValue ]),"Total InvoiceBalance",SUM(Sheet10[InvoiceBalance ]))

 

Capture2.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @kd3975_odi,

 

You can directly drag these columns to matrix to show the summary result or use SUMMARIZE function to get the summary table.

 

Capture.PNG

 

Table formula:

Table = SUMMARIZE(Sheet10,Sheet10[ContractID ],"Total ActInvoiceValue",SUM(Sheet10[ActInvoiceValue ]),"Total EstInvoiceValue",SUM(Sheet10[EstInvoiceValue ]),"Total InvoiceBalance",SUM(Sheet10[InvoiceBalance ]))

 

Capture2.PNG

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors