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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Floor function error for HH:MM timestamp

Hi, 

 

I'm using SSAS tabular cube as data source and am not able to update the data source.

I have a timestamp that is in HH:mm format, and need to get 30 min intervals from that.

So placedtimestamp column in the image goes upto 23.59 and I need to get 30 min interval for this.

When I try to use floor or ceiling for it, it gives me result assuming the timestamp to be mm:ss.

 

Here is the DAX that I tried - 

Floor PlacedTimeStamp = FLOOR(MIN(Intraday_PowerBI_Source[PlacedTimeStamp]),"00:30"
 
HH.mm timestamp.PNG
1 ACCEPTED SOLUTION
raimon
Resolver II
Resolver II

Hi @Anonymous,

 

Just change the datatype to time, you will get the value in time. 

 

Floor PlacedTimeStamp = FLOOR(Intraday_PowerBI_Source[PlacedTimeStamp],"00:30"

raimon_0-1666761851660.png

Post changing the data type to time - 

raimon_1-1666761901177.png

 

View solution in original post

1 REPLY 1
raimon
Resolver II
Resolver II

Hi @Anonymous,

 

Just change the datatype to time, you will get the value in time. 

 

Floor PlacedTimeStamp = FLOOR(Intraday_PowerBI_Source[PlacedTimeStamp],"00:30"

raimon_0-1666761851660.png

Post changing the data type to time - 

raimon_1-1666761901177.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors