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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.