Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
72 | |
58 | |
40 | |
35 |
User | Count |
---|---|
84 | |
68 | |
59 | |
46 | |
46 |