Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |