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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.