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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AaronRogers3
Helper I
Helper I

Average Time per Item Code

I am currently successfully getting the average times as a whole using this DAX formula for example:

Average Cleaning Time = FORMAT(AVERAGE(RECORDS_TABLE[CLEANING_TIME]),"HH:MM:SS")

For each of my records in my table  there is an ITEM CODE. So there is set-up, processing, reconciliation, cleaning and total time associated against Item codes.

 

I have been asked to visualisations which shows the Average Times per Item Code.

 

Does anyone know how i can achieve this? the times are in HH:MM:SS format.

 

Thanks!

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @AaronRogers3,

Based on my test, you could refer to below steps:

1.I have entered some sample data:

A.PNG

2.Create a new measure and a Table visual and now you could get the average times for per Item Code.

A = var t = SUMMARIZE('Sheet3',Sheet3[ID],"avgtime",FORMAT(AVERAGE(Sheet3[Cleaningtime]),"HH:MM:SS"))

return MAXX(t,[avgtime])

B.PNG

If I misunderstood you, could you please offer me more information about your data structure or share your pbix file if possible?

 

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/zj2u6ngxer3yica/Average%20Time%20per%20Item%20Code.pbix?dl=0

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @AaronRogers3,

Based on my test, you could refer to below steps:

1.I have entered some sample data:

A.PNG

2.Create a new measure and a Table visual and now you could get the average times for per Item Code.

A = var t = SUMMARIZE('Sheet3',Sheet3[ID],"avgtime",FORMAT(AVERAGE(Sheet3[Cleaningtime]),"HH:MM:SS"))

return MAXX(t,[avgtime])

B.PNG

If I misunderstood you, could you please offer me more information about your data structure or share your pbix file if possible?

 

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/zj2u6ngxer3yica/Average%20Time%20per%20Item%20Code.pbix?dl=0

 

Regards,

Daniel He

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

Seems to be working fine and is what i need!

 

Thanks 🙂

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors