Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
| Doc number | Date | Customer | Sales | TOTAL SALES per customer |
| 1 | 01/01/2021 | Microsoft | 100 | 600 |
| 2 | 02/01/2021 | Apple | 50 | 50 |
| 3 | 02/01/2021 | Microsoft | 200 | 600 |
| 4 | 03/01/2021 | Microsoft | 300 | 600 |
Hi all,
I need help to create a dax formula for the last column.
It takes the sum of all Sales in the column, based on the Customer Name.
Example: for customer "microsoft" it does 100 + 200 + 300 = 600.
My "sales" column is in reality also already a measure.
Many thanks in advance for your time.
@Anonymous , Try a new measure like
calculate(sum(Table[Sales]), allexcept(Table, Table[Customer]))
or
calculate(sum(Table[Sales]), filetr(allselected(Table), Table[Customer] = max(Table[Customer])))
Hi,
thanks for your reply.
I tried both but they did not work. Both return me the same values as in the sample data column "sales"
This is what I tried: (note: [(€) Turnover CP] is a measure that performs a formula for sales already (it calculates with discounts and quantities and several prices))
Hi,
It works indeed as desired, but I have a memory issue if I perform it on my full dataset :(.
Would you have another idea?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |