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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply

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

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.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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