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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ngct1112
Post Patron
Post Patron

Add Column - Median of columns

Hi, I am trying to find out the "Median" from few columns(A,B,C) with this formula.

However, the result is not correct since it could count the Blank as 0. Is there any way I can modify this formula so that it can ignore the Blank? Great thanks!

 

 

Median = MEDIANX({[A],[B],[C],[D]}),VALUE([VALUE))

 

 

ItemABCResult - Median
A12454
A268128
A325 2
A446 4
A53676
1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@ngct1112 

Add this as a column to your table:

Median = 
VAR T = FILTER({[A],[B],[C]}, [Value]<>BLANK()) RETURN
MEDIANX(T,VALUE([Value]))

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
ngct1112
Post Patron
Post Patron

@Fowmy It works! Great thanks with your help

Fowmy
Super User
Super User

@ngct1112 

Add this as a column to your table:

Median = 
VAR T = FILTER({[A],[B],[C]}, [Value]<>BLANK()) RETURN
MEDIANX(T,VALUE([Value]))

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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