Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have created a calculated column that looks for global outliers but have found that the be insufficient as I have some data in there that, over the entire dataset, is ok but it is obviously incorrect if you look at the values around it.
I can't find a simple formula for this that I can use in DAX. Does anyone know how I could modify the DAX below so it looked at the surrounding values (excluding values that are already marked as a global outlier) and marked any anomilies?
=
var Q1 =
CALCULATE
(
PERCENTILE.INC
(
'sampleDataForCalcs'[Machine Hours - Raw],0.25
),
FILTER
(
ALLEXCEPT
(
'sampleDataForCalcs',
'sampleDataForCalcs'[Unit Number]
),
'sampleDataForCalcs'[Machine Hours - Raw] > 0
)
)
var Q3 =
CALCULATE
(
PERCENTILE.INC
(
'sampleDataForCalcs'[Machine Hours - Raw],0.75
),
FILTER
(
ALLEXCEPT
(
'sampleDataForCalcs',
'sampleDataForCalcs'[Unit Number]
),
'sampleDataForCalcs'[Machine Hours - Raw] > 0
)
)
var IQR = Q3 - Q1
var low = Q1 - 1.5*IQR
var high = Q3 + 1.5*IQR
var outlier =
IF
(
'sampleDataForCalcs'[Machine Hours - Raw] < low
||
'sampleDataForCalcs'[Machine Hours - Raw] > high,
"TRUE",
BLANK()
)
return outlier
Thanks, but these are not what I am looking for.
@justlogmein , refer if these can help outlier
https://community.powerbi.com/t5/Desktop/Removing-X-outlier-records/m-p/555551
https://bielite.com/blog/scale-down-outliers-power-bi/
https://datacornering.com/how-to-identify-outliers-in-microsoft-power-bi/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
50 | |
47 | |
16 | |
13 |