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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
lpriceFTW
Helper II
Helper II

Custom column; show aggregate total on each row based on values in a column

I have a table containing invoice data. Invoices are broken down by item/item amount.

 

I want to create a column in this table that shows the invoice total based on the invoice number of the calculated row.

 

I created the below table in Excel using a sumif formula which looks at the range of the invoice column, criteria equals the column/row being evaluated, and the sum range is the amt column.

 

How do I do this in PowerBI?

 

Example table (see desired results in pink):

 

IDInvoiceItemAmtInv Total
11001A widget          0.50          4.50
21001B widget          0.50          4.50
31001C widget          1.00          4.50
41001D widget          1.00          4.50
51001E widget          1.50          4.50
62001A widget          0.50          1.00
72001B widget          0.50          1.00
83001A widget          0.50          2.00
93001B widget          0.50          2.00
103001C widget          1.00          2.00
1 ACCEPTED SOLUTION
RemyO
Resolver I
Resolver I
3 REPLIES 3
Greg_Deckler
Super User
Super User

@lpriceFTW Excel to DAX Translation - Microsoft Power BI Community Look at the S category for SUMIF equivalent.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
RemyO
Resolver I
Resolver I

Thanks this worked.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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