Join 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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Using the following formula for a calculated column:
I am expecting to get 1200/44 = $27.3 for both rows.
Total Freight and Admin column is a simple column taken straigh from a dataset (no calculation there).
Quantity column is summing per transaction.
Any suggestion? @parry2k
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHey,
my DAX column is looking like this, basically it's quite similar to the DAX statement you provided:
Column =
var theQuantity = SUM('Table2'[quantity])
return
DIVIDE('Table2'[freight],theQuantity)
and my sample data looks like this, also similar to yours, but with your expected result:
So there might be a difference. can you please explain what you mean by "Quantity column is summing by transaction".
If quantity is a column then SUM('tablename'[quantity] will calculate across all rows of the table as there is no filtercontext present.
Regards,
Tom
Hello @ TomMartens I tried the formula but it didn't change the result.
"Quantity column is summing by transaction" - each of those two transactions has multiple lines (13 and 31= 44 as quantity).
By summing I mean if I leave the field as is (Don't summarize) it would show 1 in the column of quantityf for both transactions. Below is the screenshot of it.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 52 | |
| 41 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 103 | |
| 40 | |
| 33 | |
| 25 |