Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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):
ID | Invoice | Item | Amt | Inv Total |
1 | 1001 | A widget | 0.50 | 4.50 |
2 | 1001 | B widget | 0.50 | 4.50 |
3 | 1001 | C widget | 1.00 | 4.50 |
4 | 1001 | D widget | 1.00 | 4.50 |
5 | 1001 | E widget | 1.50 | 4.50 |
6 | 2001 | A widget | 0.50 | 1.00 |
7 | 2001 | B widget | 0.50 | 1.00 |
8 | 3001 | A widget | 0.50 | 2.00 |
9 | 3001 | B widget | 0.50 | 2.00 |
10 | 3001 | C widget | 1.00 | 2.00 |
Solved! Go to Solution.
@lpriceFTW Excel to DAX Translation - Microsoft Power BI Community Look at the S category for SUMIF equivalent.
Think your answer is here
https://community.powerbi.com/t5/Desktop/Sum-of-values-by-each-category/m-p/134279
Thanks this worked.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |