cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eric_JL
Regular Visitor

Average of Time Difference

Hello BI World,

 

I've been using power BI for a bout 2 months now and love it! I'm hoping someone with M or DAX super powers can help me with a snag I ran into.

 

I have a column representing the difference between two times in format days:hours:minutes:seconds (See Screenshot).

 

I would like to have a column in a different table to reflect the average difference based on the value of another column.

 

Thanks in advance!!!

 

Eric

 

P.S. - In query editor the column looks like it does in the screen shot. In data view it's formatted 00:00:00 AM/PM???SCOM Report.png

1 REPLY 1
v-yuezhe-msft
Microsoft
Microsoft

Hi @Eric_JL,
 

Do you want to calculate average value of the TimeDifference column? If that is the case, duplicate your current query in Query editor, then choose the TimeDifference column, select “Duration->Statistics->Average” under Transform ribbon, then you will get average value as shown in the second screenshot, and you can put the value in a column by clicking “To Table”.

1.PNG2.PNG3.PNG


Thanks,
Lydia Zhang

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

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!