Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a dataset below.
I need to calculated median per year and have category as a slicer (If slicer is selected, median to be changed per slicer otherwise median per year).
For eg. When I use allexcept, the median remains static does not change with the slicer settings, I want static median value per year that changes dynamically with slicer.
Category | Year | Time in Days |
A | 2018 | 125 |
B | 2018 | 129 |
C | 2019 | 147 |
A | 2019 | 234 |
B | 2018 | 367 |
C | 2019 | 456 |
A | 2019 | 55 |
B | 2018 | 98 |
C | 2018 | 84 |
Solved! Go to Solution.
Hi @bharosha
please try
MedianMeasure =
CALCULATE (
MEDIAN ( 'Table'[Time in Days] ),
ALLSELECTED (),
VALUES ( 'Table'[Year] )
)
Hi @bharosha
please try
MedianMeasure =
CALCULATE (
MEDIAN ( 'Table'[Time in Days] ),
ALLSELECTED (),
VALUES ( 'Table'[Year] )
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
12 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |