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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
james_pease
Helper III
Helper III

Why cant I add Outlier label to a scatter plot

Hello again! So, I think I am coming to a close with highlighting outliers in my data visualizations. I have the following DAX expression:

 

Outlier = IF(CALCULATE([Cost %]-[Outlier STDEV]) < [Cost %] > CALCULATE([Cost %]+[Outlier STDEV] ), "Outlier")
 

Here are the measure used in the above formula for more context:

  • Cost % = IF(sum(All_Actual_Sales[Actual Sales])>0,
    sum(All_Actual_Expenses[Amount])/sum(All_Actual_Sales[Actual Sales]))
  • Cost % STDEV = STDEVX.P(All_Actual_Expenses, [Cost %])
  • Outlier STDEV = CALCULATE(2.5* [Cost % STDEV])

 

What I am doing is + and - the [Outlier STDEV] measure from the [Cost %] mesaure to give parameters to the "Outliers" label I am trying to create. Please help me solve why I cant add this to my current scatter plot. I cleared out the names of the Directors for privacy, the colors reflect the directors names

james_pease_0-1660765137340.png

 

 

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

@james_pease 

 

You want to put the text "Outlier" next to each point that is an outlier according to the formula? If so, then I know only one YT vid that talks about something similar. Here it is: 100% Control of Data Labels in Power BI - YouTube

But... you have to be prepared for some advanced features, like using Tabular Editor and calculation groups. You've been warned! 🙂

View solution in original post

2 REPLIES 2
daXtreme
Solution Sage
Solution Sage

@james_pease 

 

You want to put the text "Outlier" next to each point that is an outlier according to the formula? If so, then I know only one YT vid that talks about something similar. Here it is: 100% Control of Data Labels in Power BI - YouTube

But... you have to be prepared for some advanced features, like using Tabular Editor and calculation groups. You've been warned! 🙂

Thank you! Its always these type of things that require the most complicated formulas haha! I will check this video out and get back to you.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.