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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
CrackerBen
Regular Visitor

Issue with Average for Card Visual

HI,

New to powerbi and still learning, thanks for having me.

 

I have a column in my excel files that works out networkdays.

However, there are some real outliers that I need to remove.

For example if there is no closed date the result of networkdays is -31322

So when I use a card visual to calcualte the average number of networkdays I am getting a very skewed result.

When I goto the Filters on that visual, I am not able to change anything. Is there a way I can filter so it only calculates results greater than zero.

Thanks,

Appreciate the help

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

HI  @CrackerBen 

For your case, you could just create a measure and use filter in it, please refer to this blog:

https://www.sqlbi.com/articles/filter-arguments-in-calculate/

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @CrackerBen ,

 

Try to use the below calculate measure:

calculate(average(your_networkdays_column),filter(your_table,your_networkdays_column > 0))

 

Aiolos Zhao 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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