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
dustdaniel
Helper II
Helper II

Matrix showing all dates instead just those with values.

Hi there,

 

I've been using PBI for the last 2 month and this community is awsome, this is my first post so I'll do my best for you to understand.

 

I want to show in a matrix the average handle time per agent / per date. How do I keep only the dates with values?

dustdaniel_1-1725383574750.png

 

I'm sure the issue is the measure because if I remove it from the matrix then it's ok.

dustdaniel_2-1725383897219.png 

 

This is what I have for the measure and I have a table date from 1 to many in the fact table.

 

 

 

Avg Open Time = 
FORMAT(AVERAGE(Contrato[TimeOpenN]), "HH:MM:SS")

 

 

 

 

Thanks in advance

 

 
1 ACCEPTED SOLUTION
sevenhills
Super User
Super User

 

try like this and see if it works:

Avg Open Time = 
var _a = AVERAGE(Contrato[TimeOpenN])

RETURN IF( NOT(ISBLANK(_a)), FORMAT(_a, "HH:MM:SS"))

View solution in original post

2 REPLIES 2
dustdaniel
Helper II
Helper II

Thank you!

 

sevenhills
Super User
Super User

 

try like this and see if it works:

Avg Open Time = 
var _a = AVERAGE(Contrato[TimeOpenN])

RETURN IF( NOT(ISBLANK(_a)), FORMAT(_a, "HH:MM:SS"))

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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