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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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