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.
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
Solved! Go to Solution.
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()))
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
43 | |
21 | |
20 | |
15 | |
13 |
User | Count |
---|---|
45 | |
41 | |
39 | |
19 | |
19 |