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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Matrix Visualization Average Roll up - Ignore zeros/blanks

Team,

 

I'm looking for some assistance in how to have my matrix roll-up ignore zeros/blanks when providing a subtotal roll up. I've attached a picture of what I'm talking about. My data is calculating the percentage of time employees are working based on a standard amount of available time. The denominator is built by the day. I take the total number of working days in a month and multiply that time the total number hours in a day. For the numerator, I simply grab the hours employees work. Here are my measures. 

 

.sumtotalhours = CALCULATE(SUM('Actuals'[Actual Hours]))
.Sumtotalpossiblehours = CALCULATE(SUM('Users'[Day_capacity]))*SUM('Date'[Weekday])
.Utilization = ([.sumtotalhours] / [.Sumtotalpossiblehours])
 
There are times during the year where new employees have rolled onto or off projects. Thats why you'll find months where there is no data. I don't want my visualization roll up to consider those blanks/zeros. I want to ignore them. I just don't know how to do that. Thoughts?

 

Green is good. Red is bad. 

PowerBI matrix roll up.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous 

Assume meausre [percentage] in my test file refers to the measure [.Utilization] in your file,

Create measures

count = COUNTX(FILTER(Sheet10,Sheet10[department]=MAX(Sheet10[department])&&[percentage]<>BLANK()),[percentage])

sum = SUMX(Sheet10,[percentage])

%_new = IF(ISINSCOPE(Sheet10[occupation]),[sum]/[count],[percentage])

9.png

Best Regards
Maggie

 

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

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Please check if my understanding is correct,

For the subtotal for D2 cell, the value should be

(99%+65%+100%)/3

instead of (99%+65%+100%)/4

16.png

 

Best Regards
Maggie

 

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

Anonymous
Not applicable

@v-juanli-msft That is correct.

Hi @Anonymous 

Assume meausre [percentage] in my test file refers to the measure [.Utilization] in your file,

Create measures

count = COUNTX(FILTER(Sheet10,Sheet10[department]=MAX(Sheet10[department])&&[percentage]<>BLANK()),[percentage])

sum = SUMX(Sheet10,[percentage])

%_new = IF(ISINSCOPE(Sheet10[occupation]),[sum]/[count],[percentage])

9.png

Best Regards
Maggie

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors