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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors