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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Issue with calculating median using filters

So I have a date table like this:

Capture.PNG

 

Formula for "Median Time Taken Performance (Over Time)", which is supposed to show the median time taken for all items with the specific date is

Median Time Taken Performance (Over Time) = CALCULATE(MEDIANX('FACT','FACT'[Time Taken]*1.0),FILTER('FACT','FACT'[Column]='Date Table'[Date]),FILTER('FACT','FACT'[Time Taken]>=0)).

 

However, for some reason it is not showing a median for some of the dates, even though there is 'Time Taken' data available for those dates in the FACT table:

Untitled.jpg

 If anyone could tell me where I'm going wrong, that would be much appreciated,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi AIB,

 

Thanks for your response but I discussed it with a colleague and turns it was because there were a lot of blanks for those days and so the blanks were becoming the median.

 

Thanks anyway for your offer of help!!

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @Anonymous

 

Can you share the pbix?

Anonymous
Not applicable

Hi AIB,

 

Thanks for your response but I discussed it with a colleague and turns it was because there were a lot of blanks for those days and so the blanks were becoming the median.

 

Thanks anyway for your offer of help!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors