Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I'm basically trying to figure out an occupancy calculation based on people entering/exiting a club, i'm also wanting this reset at 4am every day when the club closes. Would anyone know how to do this ?
Picture posted below
I'm Pretty new to power bi and cant seem to figure it out, thanks 🙂
Solved! Go to Solution.
This looks great. As for the 4am cutoff - that is easy to do - you can subtract 1/6 from the event_time value to shift the day assignment.
You may want to add a weekday sort column.
Hi @molzmad ,
This looks great. As for the 4am cutoff - that is easy to do - you can subtract 1/6 from the event_time value to shift the day assignment.
You may want to add a weekday sort column.
Please provide sample data in usable format (not as a picture) and show the expected outcome.
https://drive.google.com/file/d/1WBVg1oMoV36Jl8yBzWVHK5c33TtjbYFg/view?usp=sharing
Hey, here is the data ^ , i would like the outcome to be the occupancy of people in the building as seen in the picture below based on ins (1) and outs (-1) - i would also like the occupancy to reset at 4am every day.
Thanks so much, i really appreciate your help.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |