cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jaredneedshelp
Frequent Visitor

Percent time of day queries run

I am trying to create a table that shows how much (percent time) of the day that a server is being used to execute queries. I have a table that has start and end time columns of query executions throughout each day rounded up to the minute and I also have created a table that has every minute of date and time possible in each day. I have attached what I am hoping the chart will look like, but I am not sure how to create it, I am still fairly new at power BI so any help is appreciated. Thanks friends. 

 

Snapshot.PNG

1 ACCEPTED SOLUTION

What I ended up doing was counting the number of 5 minute periods compared to how many 5 minute periods are in a day to figure it out.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@jaredneedshelp , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

I think an approach very similar this file will be needed

https://www.dropbox.com/s/bqbei7b8qbq5xez/leavebetweendates.pbix?dl=0

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

I tried using the example that you posted chaning the values to my data and it just gives me the count of 1 for each day. Any other ideas? 

Here is the example of what the date data looks like, I want to be able to see out of a given day, how much time is within these ranges and how much is not. 

 

Snapshot.PNG

What I ended up doing was counting the number of 5 minute periods compared to how many 5 minute periods are in a day to figure it out.

View solution in original post

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

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

Top Solution Authors
Top Kudoed Authors