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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I have a DAX calculation that I cannot fully understand. Here is the formula
Does that mean if a result is less than 0 then (1 - (ABSTOERROR / TOTHIST), then it is 0, else the same calculation (1 - (ABSTOERROR / TOTHIST) ?
Does that mean if we have a negative number we get 0s?
Solved! Go to Solution.
Correct, basically, if TOTHIST < ABSTOERROR you will get a number > 1. When you subtract that from 1 you will get a negative which the formula will return as 0.
You could rewrite it like this, might make it more clear what is happening.
FA % =
VAR _Abs =
SUM ( 'FCSTPERFSTATIC_Chain'[ABSTOTERROR] )
VAR _Hist =
SUM ( 'FCSTPERFSTATIC_Chain'[TOTHIST] )
RETURN
IF ( _Hist < _Abs, 0, 1 - DIVIDE ( _Abs, _Hist ) )
Correct, basically, if TOTHIST < ABSTOERROR you will get a number > 1. When you subtract that from 1 you will get a negative which the formula will return as 0.
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 |
|---|---|
| 53 | |
| 48 | |
| 35 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 79 | |
| 37 | |
| 27 | |
| 25 |