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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Tevon713
Helper IV
Helper IV

Find average of blank or zero in matrix

I may have miss something see below example. Can't seem to find average of a measure if colum/row have zero. Ideally the closest was using this formula below, when selecting filter for region.   I tried summing up a column it didn't calculate correctly.

 

Average of Region_4 =

AVERAGEX(
 SUMMARIZE('Table','Table'[REGION],'Table'[SITE NAME]),[Visits per # of Office per Op Day]
)
 

Here's the data file: Data file 

 

 
Tevon713_0-1705954213026.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Tevon713 , Try one of the 2

 

Average of Region_4 =
AVERAGEX(
SUMMARIZE('Table','Table'[REGION],'Table'[SITE NAME], "_1",if([Visits per # of Office per Op Day]=0 , blank(),[Visits per # of Office per Op Day]) ), [_1])


Average of Region_4 =
AVERAGEX(
SUMMARIZE('Table','Table'[REGION],'Table'[SITE NAME], "_1",[Visits per # of Office per Op Day]), [_1])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Tevon713 , Try one of the 2

 

Average of Region_4 =
AVERAGEX(
SUMMARIZE('Table','Table'[REGION],'Table'[SITE NAME], "_1",if([Visits per # of Office per Op Day]=0 , blank(),[Visits per # of Office per Op Day]) ), [_1])


Average of Region_4 =
AVERAGEX(
SUMMARIZE('Table','Table'[REGION],'Table'[SITE NAME], "_1",[Visits per # of Office per Op Day]), [_1])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.