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
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
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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.