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,
Want to get the correct date from the completion date and Time with one condition.
if the date & time is before 6:30 AM in the Completed column then the calculated column should take yesterday's date else date updated in the
| Completed Date | Calculated Column Result |
| 11/20/2020 06:29:00 | 11/19/2020 |
| 11/20/2020 06:31:00 | 11/20/2020 |
Thanks in advance for your assistance.
Regards
Sachin Jagdale
Hello,
You can use this conditional in a calculated column to get the correct date:
=IF(TIME(HOUR([Completed Date]),MINUTE([Completed Date]),SECOND([Completed Date]))<TIME(6,30,0),[Completed Date]-1,[Completed Date])
And if you want the correct date to have no time, you could use this:
=IF(TIME(HOUR([Completed Date]),MINUTE([Completed Date]),SECOND([Completed Date]))<TIME(6,30,0),[Completed Date]-1-TIME(HOUR([Completed Date]),MINUTE([Completed Date]),[Completed Date]-TIME(HOUR([Completed Date]),MINUTE([Completed Date]))
Regards
Jesus
@SSJ011 ,
Try this measure:
Column =
IF(
TIME(HOUR('Table'[Date]), MINUTE([Date]), SECOND([Date])) < TIME(6, 30, 00),
DATEVALUE([Date] - 1),
DATEVALUE([Date])
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |