Weibull Analysis
Paste how long each unit ran, failed or still going, to see how it fails: early, at random, or by wearing out. Get the B10 life, the reliability at your replacement interval, and the same fit in Power BI as DAX.
12 failures and 8 suspensions. Mean life 7,910 hours. Fit R² 0.976.
The fleet MTBF (total hours ÷ failures) is 11,087 hours. Treated as a constant failure rate, it predicts 40.6% of units survive to 10,000 hours. The Weibull fit says 25.0%: 75.0% fail before the interval. MTBF assumes failures are random, and these are wearing out.
Weibull probability plot
Dots are failures at their median ranks; △ marks units still running. A straight line means one Weibull describes the data; its slope is β. Dashed lines: B10 life and η, where 63.2% have failed.
Reliability: Weibull vs. MTBF
Solid: share still running by age, from the fit. Dashed: the same from the fleet MTBF as a constant failure rate. At 10,000 hours: Weibull 25.0%, MTBF 40.6%.
How each failure is ranked
| Order | Unit | Hours | Status | Reverse rank | Adjusted rank | Median rank |
|---|---|---|---|---|---|---|
| 1 | P-01 | 2,330 | Failed | 20 | 1.000 | 3.4% |
| 2 | P-04 | 3,750 | Running | 19 | ||
| 3 | P-13 | 4,080 | Running | 18 | ||
| 4 | P-05 | 4,220 | Failed | 17 | 2.111 | 8.9% |
| 5 | P-20 | 4,730 | Running | 16 | ||
| 6 | P-08 | 4,780 | Failed | 15 | 3.292 | 14.7% |
| 7 | P-14 | 5,100 | Failed | 14 | 4.472 | 20.5% |
| 8 | P-07 | 5,830 | Failed | 13 | 5.653 | 26.2% |
| 9 | P-15 | 6,650 | Failed | 12 | 6.833 | 32.0% |
| 10 | P-17 | 7,070 | Failed | 11 | 8.014 | 37.8% |
| 11 | P-10 | 7,290 | Running | 10 | ||
| 12 | P-11 | 7,410 | Running | 9 | ||
| 13 | P-06 | 7,490 | Failed | 8 | 9.457 | 44.9% |
| 14 | P-09 | 7,540 | Failed | 7 | 10.900 | 52.0% |
| 15 | P-16 | 7,850 | Failed | 6 | 12.343 | 59.0% |
| 16 | P-03 | 8,010 | Running | 5 | ||
| 17 | P-19 | 8,470 | Running | 4 | ||
| 18 | P-12 | 9,120 | Running | 3 | ||
| 19 | P-02 | 10,120 | Failed | 2 | 15.228 | 73.2% |
| 20 | P-18 | 11,200 | Failed | 1 | 18.114 | 87.3% |
A running unit gets no rank of its own, but it pushes every later failure's adjusted rank up by less than a full step (Johnson's method). The median rank is Bernard's approximation, (adjusted rank − 0.3) ÷ (N + 0.4).
The same fit in DAX
Calculated columns for the ranks and plot coordinates, then measures that fit β and η with LINESTX. The Weibull tutorial covers the Power Query step that adds the Order column.
-- Calculated columns. Order comes from Power Query: sort by hours (failures first on a tie), then add an index from 1.
Reverse Rank = COUNTROWS ( Pumps ) - Pumps[Order] + 1
Adjusted Rank =
IF (
Pumps[Status] = "F",
VAR N = COUNTROWS ( Pumps )
VAR CurrentOrder = Pumps[Order]
VAR StillSurviving =
PRODUCTX (
FILTER ( Pumps, Pumps[Status] = "F" && Pumps[Order] <= CurrentOrder ),
DIVIDE ( Pumps[Reverse Rank], Pumps[Reverse Rank] + 1 )
)
RETURN
( N + 1 ) * ( 1 - StillSurviving )
)
Median Rank = DIVIDE ( Pumps[Adjusted Rank] - 0.3, COUNTROWS ( Pumps ) + 0.4 )
Plot X = IF ( Pumps[Status] = "F", LN ( Pumps[Hours] ) )
Plot Y = IF ( Pumps[Status] = "F", LN ( -LN ( 1 - Pumps[Median Rank] ) ) )
-- Measures. Rank regression on X: regress ln(hours) on Plot Y, so the slope is 1 / Beta.
Weibull Beta =
VAR Fit =
LINESTX ( FILTER ( ALL ( Pumps ), Pumps[Status] = "F" ), Pumps[Plot X], Pumps[Plot Y] )
RETURN
DIVIDE ( 1, MAXX ( Fit, [Slope1] ) )
Weibull Eta =
VAR Fit =
LINESTX ( FILTER ( ALL ( Pumps ), Pumps[Status] = "F" ), Pumps[Plot X], Pumps[Plot Y] )
RETURN
EXP ( MAXX ( Fit, [Intercept] ) )
Fit R2 =
VAR Fit =
LINESTX ( FILTER ( ALL ( Pumps ), Pumps[Status] = "F" ), Pumps[Plot X], Pumps[Plot Y] )
RETURN
MAXX ( Fit, [CoefficientOfDetermination] )
B10 Life = [Weibull Eta] * POWER ( -LN ( 1 - 0.1 ), 1 / [Weibull Beta] )
Reliability at Interval =
VAR IntervalHours = 10000
RETURN
EXP ( -POWER ( IntervalHours / [Weibull Eta], [Weibull Beta] ) )
Fleet MTBF =
DIVIDE ( SUM ( Pumps[Hours] ), CALCULATE ( COUNTROWS ( Pumps ), Pumps[Status] = "F" ) )Free, with no sign-in and no request limit. Everything runs in your browser, and nothing you paste is sent anywhere.
What β and η mean. The shape β says how the failure rate changes with age: below 1 it falls (early-life failures), near 1 it's constant (random failures), above 1 it rises (wear-out). The scale η is the age by which 63.2% of units have failed, whatever β is.
Why include units that haven't failed. A pump that has run 8,000 hours without failing is evidence that life is longer than 8,000 hours for at least some pumps. Leaving it out biases the fit toward short lives. Johnson's adjusted ranks let running units count without pretending they failed.
How it's fitted. Median rank regression: each failure gets a median rank (Bernard's approximation, with Johnson's adjustment for suspensions), and a straight line is fitted on the Weibull plot by regressing log hours on the plot's Y, the usual engineering default for small samples. Maximum likelihood can give slightly different answers, especially with many suspensions.
Building it in Power BI? The Weibull reliability tutorial builds this example from a 20-pump fleet: the rank columns, the LINESTX fit, the probability plot, and why the fleet's MTBF set the wrong replacement interval.
More reliability tools: the Reliability Calculator for MTBF and availability, and the FMEA Calculator. Or browse all the Power BI tools.