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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.