Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I am using the following 3 formulas to determine the absolute difference between all similar inventory transactions and the median value. They work fine but they greatly diminish the speed of my report. I've tested this by deleting the formulas and the report runs smoothly again. How can I improve these formulas to get my desired result? The table holds approx. 1.5 million rows. Is it because the last formula is a column? Is it because the sheer number of rows? Is there a way to simplify all 3 formulas into one?
Measure: [This tells me the median receipt quantity from the last 90 days of transactions available in the report]
Median Receipts =
CALCULATE(
MEDIAN(InvTx[Qty]),
InvTx[Tx Type] = "RECEIVING",
ALLEXCEPT( InvTx, InvTx[Station], InvTx[Other Inv Name], InvTx[IMF], InvTx[Inv Name] )
)
Measure: [This tells me the absolute difference as a percentage]
% Diff Median Receipts =
IF( SUM(InvTx[Qty]) = 0, "0 Qty Rec",
ABS( SUM(InvTx[Qty]) / [Median Receipts] ) -1
)
Column: [This allows me to classify the results into a category for easier analysis]
Tx Category C =
IF( InvTx[% Diff Median Receipts] = "0 Qty Rec", "0 Rcpt",
IF( InvTx[Median Receipts] = 0, "0 Median",
IF(InvTx[% Diff Median Receipts] < -.70, "Below",
IF(InvTx[% Diff Median Receipts] >= -.70 && InvTx[% Diff Median Receipts] < .70, "Average",
IF(InvTx[% Diff Median Receipts] >= .70, "Above"
)
)
)
)
)
Solved! Go to Solution.
Hi @Anonymous,
So, no issues here?
Best Regards,
Dale
Disregard, It didn't have anything to do with the formulas but in the slicer that inadvertently got changed.
Hi @Anonymous,
So, no issues here?
Best Regards,
Dale
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 45 | |
| 38 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 86 | |
| 69 | |
| 38 | |
| 29 | |
| 26 |