Forum Discussion
bourne2000
4 years agoHelper V
Finding Median between two columns
Hi
I have a two column called min and max
| Min | Max |
| 492 | 499 |
| 500 | 550 |
| 470 | 480 |
| 520 | 560 |
| 490 | 530 |
I want to calculate the median between min and max and store into seperate column called 'median
expected result
| Min | Max | Median |
| 492 | 499 | 495.5 |
| 500 | 550 | 525 |
| 470 | 480 | 475 |
| 520 | 560 | 540 |
| 490 | 530 | 510 |
I calculated the median in excel, not sure how to do in Power BI?
Can anyone advise?
bourne2000
You can create a measure as follows and add it to a table visual.Median = MEDIANX( {MAX(Table2[Min]) , MEDIAN(Table2[MAX])} , [Value])
1 Reply
- FowmySuper User
bourne2000
You can create a measure as follows and add it to a table visual.Median = MEDIANX( {MAX(Table2[Min]) , MEDIAN(Table2[MAX])} , [Value])