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
Navyaragamm
Frequent Visitor

Calculate average in a calculated column

Hi , 

 

I am stuck on some calculations, please help me out 

 

The issue is the result> (Average+2*STD.DEV) and result< (Average-2*STD.DEV) if both are true then the result is yes or no

Here the result is the value of the row 

And average is average of the value within one component and standard deviation is deviation of the value within one component 

Here to calculate the outlier what is best a calculated column or a measure 

Also can anyone help with the dax on how to compare the values 

 

 Above are the calculations and nab free are components 

I should be able to get by outlier based on the above calculation 

Also, I want to have a slicer of the same to filter 

Can anyone know how to do all the calculations 

Help is appreciated 

2 REPLIES 2
foodd
Super User
Super User

Hello @Navyaragamm ,  perhaps you mistakenly added your Excel post to the Fabric Community where the Community Members focus upon all things Microsoft Fabric related.     For your convienience we are supplying the link to the Excel (microsoft.com) Community.

 

 

Hi @foodd 

 

 

 

Excel sheet was an example of the calculations,i want to replicate it in the power bi desktop

 

I tried calculating it the power bi taking upper and lower dax measures and in a calculated column I have done the comparison but all I get is No

Upper = 

 

Var avg = average(data[value])

 

Var std = stddev.p(data[value])

 

Return avg+2* std

 

 Same for lower

 

Then in the calculater column I have used 

 

Outlier = if(data[value])> upper && data[Value]< lower , " Yes" , "No")

 

 

 

If I take this the measure instead of column the visuals are loading And I also want a slicer of the outlier field

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.