- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Average of Time column
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2018 04:19 AM
I have a few Time columns in MSSQL.
I'm hoping to display these with their AVERAGE in a table.
The actual times on the rows are correctly displayed, but no option to display a final total (AVERAGE).
Is this possible?
Currently I'm using Direct Query, but could easily switch to Import.
I can, if it makes it easier, store the times as seconds (Integer) in MSSQL instead of Time.
Solved! Go to Solution.
Accepted Solutions
Re: Average of Time column
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2018 05:07 AM
See if this article helps:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
Did I answer your question? Mark my post as a solution!
Proud to be a Datanaut!
Re: Average of Time column
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2018 11:09 PM
Hi @RGI,
It seems that you want to calculate the average of your time, you could have a good reference of this similar thread.
If you still need help, please share your data sample and your expected output, so that we can help further investigate on it?
Best Regards,
Cherry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
All Replies
Re: Average of Time column
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2018 05:07 AM
See if this article helps:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
Did I answer your question? Mark my post as a solution!
Proud to be a Datanaut!
Re: Average of Time column
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2018 11:09 PM
Hi @RGI,
It seems that you want to calculate the average of your time, you could have a good reference of this similar thread.
If you still need help, please share your data sample and your expected output, so that we can help further investigate on it?
Best Regards,
Cherry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Re: Average of Time column
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-24-2018 05:44 AM
My solution so far:
1) I changed the [Time] column in the database to [Int] (seconds).
2) I implemented a new measure as
Average Time to Empty Bin = TIME(INT(AVERAGE(Wave[Average Seconds to Empty Bin])/3600),INT(MOD(AVERAGE(Wave[Average Seconds to Empty Bin]),3600)/60),0)
This now shows the correct data in the column and a nice average in the total row.
However, as I've posted in this thread my slicers have stopped working.