Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filter Outliers based on measures

I have two tables, as pictured below.  The first table indicates a specific line, the "count of product" helps me identify if I have enough data available to accurately measure standard deviation, etc.  The Columns for BtlNkAsmt, StdDev, YMin, and YMax, are all measurements. BtlNkAsmt in this table is showing an average for the specific resource in question.

 

The second table is showing the individual product codes that fall under my "Resource Description" from the first table.  My bottleneck in this case is looking at the product code.  The first two rows and the last row of product codes identify a percentage that falls outside of the YMin and YMax range from the first table.

 

What I want, is for this second table to ONLY show me, the percentages that fall outside of these ranges from the previous tables.  I've searched several existing discussions on this subject and they all appear to be based on breaking down your ranges by some "finite" number. Using a slicer requires me to manually enter the Ymin and Ymax everytime and it does not automatically adjust.  I even tried to replicate the following measure but it failed to filter the data and assigned a "1" to every product code, meaning it's not measuring what I want correctly either.

 

Measure Filter1 =
VAR MinValue = [YMin]
VAR MaxValue = [YMax]
Var CurrentMeasureValue = [BtlNkAsmt]
Return
If(
    CurrentMeasureValue <= MinValue && CurrentMeasureValue >= MaxValue,
    1,
    0
)
 

The data here is unique, and is pulled from a data table containing over 4000 rows.

 

AndrewSova_1-1663605425745.png

 

 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.