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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
colem246
Frequent Visitor

Average of Measure (Date and Time)

 

Hello,

 

I am very new to Power BI, about a month in, and am in need of some assistance.

I am trying to calculate the average offirst arrivals based on data with the date and timestamp. When I set up a filter for a particular day, all of the information for that day is filtered, but when I add the average measure that I created: Average First Arrival = FORMAT(AVERAGE('Activity First and Last'[First Arrival]) , "HH:MM"), the date filter is being ignored and everything is being averaged.  If I just use AVERAGE('Activity First and Last'[First Arrival])  I get a number with a decimal.

 

Can someone please advise me on what I could be doing wrong?

 

 

6 REPLIES 6
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @colem246,

 

If I understand you correctly, you should be able to firstly use the formula below to create a new measure, then use the measure to apply a visual level filter(measure is greater than 0) on the Table visual to get the expected result in your scenario. Smiley Happy

measure = COUNTA ( 'Activity First and Last'[First Arrival] )

vlf1.PNG

 

Regards

Thank you.

 

I am actually looking to get the average and not the count. I would want to know what the average first arrival time is for all logon_ids for a particular date.

 

I use the average(measure) but get the decimal number. I want to get the average in "hh:mm". The formula I am using above is not working. When I use format, it takes the average of everything in the table and ignores the date filter that I have set.

 

Thanks!

Greg_Deckler
Community Champion
Community Champion

Are you using Activity Date for your slicer?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

No. The slicer is logon_id

Confused, you mention that your date filter is being ignored and you have what looks like a date slicer in your image. Can you share sample data and what you expect for output?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sorry. The slicer is activity date.

 

This is how the data looks when I dont add the average measure. I want to ultimately have the average time of all the first arrivals totaled for this particular day (12/24) for all the logon_id that have activity that day.

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors