Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |