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
Anonymous
Not applicable

Plotting a time series on a bar graph

Hi All,

 

I working with a dataset where Im trying to achieve a hourly breakdown of the number of users that that attend our website. 

 

The data has timestamped the date and time the user arrives on the website. I have spilt the data and time into separate fields and used the data as a slicer (see image).

abdalahmed_0-1628514153940.png

 

I then extracted the hour from the time field and wanted to express it as a bar graph showing the busiest hours of the day. 

 

However, I am finding this difficult to implement. I want a graph on the x-axis of the hours of the day 00 -23 hours and and the y-axis a count of the number of users. 

 

Currently, I cant get the time in chronological order. It jusmps for example from 0, 2, 3, 13, 1 ....

Secondly, those hours that have 0 visits isnt shown in the graph. I was thinking of joining a separate hour table but the logic looks complicated on paper.

 

It looks like a straightforward task and I hope that I am overlooking something. Any suggestions or resources that could help me overcome this would be grateful

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think this data is sorted Ascending on Measure/value. Check the option in three dots and correct it

 

Or  create an hour field like this and use on axis

hour = hour([datetime])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , I think this data is sorted Ascending on Measure/value. Check the option in three dots and correct it

 

Or  create an hour field like this and use on axis

hour = hour([datetime])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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