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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Median and Percentiles of a measure over time

Hi everyone,

 

I have a calculated measure which is essentially the average of 3 other sum measures:

 

Average = (a + b + c)/3, and I plot this measure over time (the data is monthly from 2000-2022).

 

What I am trying to do now is to calculate the median and specific percentiles (eg. 0.95 or 0.05) of this average measure over time. So for example if we have the below table, be able to calculate the median of all values for all this time period and then plot it as a static line in a chart alongside the average measure above. Essentially, the average will flactuate over time while the median or percentile lines will stay the same over time.

 

AverageDate
5.701/2000
7.902/2000
6.703/2000
2.5

04/2000

...

...

3.3

02/2022

 

Looking forward to your replies.

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could try the MEDIANX function and the PERCENTILEX.INC function.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

You cannot measure a measure.  You need to create new, independent measures that cover the business issue.

 

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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