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
bcampbell
Helper I
Helper I

Difference between two Average Measure , but exclude if blank

I need to create a measure that I beleived to be simple , 

 

My measure currently is

 

AVGVAL_DISP-CALL = [AVG DISP]-[AVG CALL]

That does not work if where the AVG DISP measure has no timestamp in source and results in the CALL Timestamp value being the result and finally the AVG

 

Is there a way to write a measure that can ignore blanks ?

Do i need to go back to my  source measure that provides me the average ?

 

AVG CALL = CALCULATE(AVERAGE(frmain[Time]), FILTER(frmain,frmain[Time] <>0))

 

Thanks for any help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

Can you try this.

AVG CALL = CALCULATE(AVERAGE(frmain[Time]), FILTER(frmain,NOT ISBLANK(frmain[Time])))

 

Regards,

Pavan Vanguri. 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi,

 

Can you try this.

AVG CALL = CALCULATE(AVERAGE(frmain[Time]), FILTER(frmain,NOT ISBLANK(frmain[Time])))

 

Regards,

Pavan Vanguri. 

I am still getting some errors when I intoduce a slicer

 

Looking at the selection ,

 

one record is missing a time for "DISP"

 

Do I need to adjust the next part of my measures ?

 

AVGVAL_DISP-CALL = [AVG DISP]-[AVG CALL]

 

 

Anonymous
Not applicable

Hi,

 

Can you please provide any example.

Thanks

 

I can provide the pbix if that be easier

 

TIME PBIX

Thank You !!

 

Worked well

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.