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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
nadavsn
Advocate I
Advocate I

Aggregate column with Blank values

Hi all
I am trying to create a measure that returns the AVERAGE of whole number column that includes BLANK. I want the measure to ignore these rows with blank on it.
I tried:
MaxDeleteBucketGap = CALCULATE(
AVERAGEX('Random_Tests_Buckets','Random_Tests_Buckets'[Sleep Day]),FILTER('Random_Tests_Buckets','Random_Tests_Buckets'[Sleep Day]=BLANK()))

and


MaxDeleteBucketGap =
AVERAGE('Random_Tests_Buckets'[Sleep Day])
I don't get an error but I don't get any value either.
Any help will be much appreciated.
Nadav

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @nadavsn 

AVERAGE and AVERAGEX already ignore blanks. With your first piece of code you are keeping only thre blanks for the AVERAGEX:

MaxDeleteBucketGap = CALCULATE(
AVERAGEX('Random_Tests_Buckets','Random_Tests_Buckets'[Sleep Day]),FILTER('Random_Tests_Buckets','Random_Tests_Buckets'[Sleep Day]=BLANK()))

 

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @nadavsn 

AVERAGE and AVERAGEX already ignore blanks. With your first piece of code you are keeping only thre blanks for the AVERAGEX:

MaxDeleteBucketGap = CALCULATE(
AVERAGEX('Random_Tests_Buckets','Random_Tests_Buckets'[Sleep Day]),FILTER('Random_Tests_Buckets','Random_Tests_Buckets'[Sleep Day]=BLANK()))

 

Thanks!

It turned out to be a slicer problem. 

AVERAGE and AVERAGEX do ignore BLANK.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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