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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Eddie2113
Regular Visitor

Calculated Date Column Based on Time Stamp Range

Hello,

 

I am looking to create a calculated date column based off a date/timestamp column in the table that calculates 1 date over a timetamp range that spans over 2 days 

 

Example: Test_Timestamp that run between 9am on Monday 4/4/2022 to 9am on Tuesday 4/5/2022 would both return the date of Monday 4/4/2022 (Test_Date)

 

Test_TimestampTest_Date
4/4/2022 9:30am4/4/2022
4/4/2022 8:00pm4/4/2022
4/5/2022 4:00am

4/4/2022

 

The Column would define each date as 9am one day to 9am the next day and both returning the earlier date

 

Not sure how to structure my DAX to calculate this Test_Date Column. 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Eddie2113 

you can subtract 9 hours from the date/time column as follws

 

 

Test_Date =
FORMAT ( 'Table'[Test_Timestamp] - TIME ( 9, 0, 0 ), "dd/mm/yyyy" )

 

 

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Eddie2113 

you can subtract 9 hours from the date/time column as follws

 

 

Test_Date =
FORMAT ( 'Table'[Test_Timestamp] - TIME ( 9, 0, 0 ), "dd/mm/yyyy" )

 

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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