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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Infidti
Frequent Visitor

Median and Mean calculation

I am trying to calculate the median and the mean of my dataset, the issue i believe i am having is the calculations are based on the following 

 

IF(OR(Data[Count] =0,Data[Count] = BLANK()),0,1)
 
Which gives me just 1 for everything across the board. I am trying to plot the median and mean on a line graph so the median and mean would change by date and by the category in the legend. Have tried a variety of calculations but none seem to be working.
1 REPLY 1
Ritaf1983
Super User
Super User

Hi @Infidti 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors