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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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