Showing results for 
Search instead for 
Did you mean: 
New Member

DAX to Plot Sign-In Times & Aggregate Count for PowerBI Chart

I am trying to plot sign-in times in a PowerBI chart. I want the X-Axis to be the time (by half hour) of sign-ins and the Y-axis to be the aggregate count of sign-ins for the day. I need to create a column to aggregate the sign-ins based on time.

I’m trying to write a DAX that counts the number of sign-ins before the current sign-in, if it is on the same day. In the screen shot below, the 5:52:01 would have a column (Labor Count) with the number 1, the 5:56:12 would have 2 and so on until the next day.



Community Support
Community Support

Hi,. @kamstutz ;

can you share  a simple data removing sensitive information, along with the results you want to output?


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes, this is roughly what I am trying to accomplish. I have 'Date' & 'Time In' columns already, I need a calculation for column 'Onsite', which is the total amount of people on site that increases throughout the day as more people sign-in to our system.



Super User
Super User

@kamstutz , Create a new column with time and try to use that on x -axis


Time = timevalue([timestamp])

Learn Power BI - Full Course with Dec-2022, with new DAX functions like Window, Index, Offset !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Formatted Profit and Loss Statement with empty lines

Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.