Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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))
Item | A | B | C | Result - Median |
A1 | 2 | 4 | 5 | 4 |
A2 | 6 | 8 | 12 | 8 |
A3 | 2 | 5 | 2 | |
A4 | 4 | 6 | 4 | |
A5 | 3 | 6 | 7 | 6 |
Solved! Go to Solution.
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
102 | |
90 | |
80 | |
71 | |
70 |
User | Count |
---|---|
114 | |
99 | |
97 | |
73 | |
72 |