Forum Discussion

lpriceFTW's avatar
lpriceFTW
Icon for Helper II rankHelper II
3 years ago
Solved

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