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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kamstutz
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.

kamstutz_0-1646937256616.png

 

3 REPLIES 3
v-yalanwu-msft
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.

kamstutz_0-1647364491324.png

 

amitchandak
Super User
Super User

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

 

Time = timevalue([timestamp])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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