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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello good day.
I have a database where I have date, code, time of realization, etc..
I'm doing a count of how many activities a person does per month in a company.
The problem is that according to the schedule is the date, that is, from 6:00 am to 5:59 am that activity if it belongs to that day, after 6:00 am it would enter the next day. Which is not a problem until the end of the month.
That is, if a person charges an activity on July 1 at 5:00 am or 5:59 am should not count it in July, but in June.
What formula would it have to occupy for the correct date to count? I was trying to test by making a calculated table.
with the following formula:
Solved! Go to Solution.
@Syndicate_Admin , make sure time is time datatype and then try
Real Date = IF('Historical Inspections'[Time] < time(6,0,0) , 'Historical Inspections'[Date], 'Historical Inspections'[Date] -1)
but I think this needs to be
Real Date = IF('Historical Inspections'[Time] >= time(6,0,0) , 'Historical Inspections'[Date], 'Historical Inspections'[Date] -1)
@Syndicate_Admin , make sure time is time datatype and then try
Real Date = IF('Historical Inspections'[Time] < time(6,0,0) , 'Historical Inspections'[Date], 'Historical Inspections'[Date] -1)
but I think this needs to be
Real Date = IF('Historical Inspections'[Time] >= time(6,0,0) , 'Historical Inspections'[Date], 'Historical Inspections'[Date] -1)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.