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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Rohitb
Helper I
Helper I

Visualize hourly query counts and highlight peak/off-peak hours

Hello,

I have a log table which showcases the number of queries executed like below.

 

Rohitb_0-1721727830077.png


Here, the column "Event Time" has a data in date time field (with seconds included as well).


I have a requirement to create visuals to display the number of queries executed per hour in a database for a specific day. Identify the hour with the highest number of queries and the hour with the lowest number of queries executed

What can be the best way to achieve this ?

1 ACCEPTED SOLUTION
PabloDeheza
Solution Sage
Solution Sage

Hi @Rohitb!

You can achieve this by creating a Date and a Time table. This way you can filter the log table by day and time independently. The pbix I share has the Power Query code needed to create both Date and Time tables. After that you need to split the DateTime column from your Log table into Date and Time. After that the last step is creating the relationships between Log[Date] - Date[Date] and Log[Time] - Time[Time].

Following those steps will allow you to create the visuals that you need to identify the hours of most executions as shown below.

PabloDeheza_0-1721759425623.png

I share you the link to the .pbix file: Queries 

Let me know if that helps!

View solution in original post

1 REPLY 1
PabloDeheza
Solution Sage
Solution Sage

Hi @Rohitb!

You can achieve this by creating a Date and a Time table. This way you can filter the log table by day and time independently. The pbix I share has the Power Query code needed to create both Date and Time tables. After that you need to split the DateTime column from your Log table into Date and Time. After that the last step is creating the relationships between Log[Date] - Date[Date] and Log[Time] - Time[Time].

Following those steps will allow you to create the visuals that you need to identify the hours of most executions as shown below.

PabloDeheza_0-1721759425623.png

I share you the link to the .pbix file: Queries 

Let me know if that helps!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors