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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

24 Hour Time Table for TODAY?

Hey folks - I'm looking to create a Time Dimension table so it's always set to today.

 

So for instance today I want to have 9/7/2021 12:00:00AM for the first row, then 9/7/2021 12:00:01 AM etc etc. Is there a calculated table code I can use to create this? Maybe even add in a column for hour buckets?

 

2 REPLIES 2
Anonymous
Not applicable

Hi, something like this?

TimeTable =
GENERATESERIES (
TODAY() ,
TODAY() +1,
TIME ( 0, 1, 0 )
)
lbendlin
Super User
Super User

1.  Create a calculated table

TodayCal = GENERATESERIES(0,86399)

2. Add two calculated columns

TS = TODAY()+divide(TodayCal[Value],86400)

Hr = hour(TodayCal[TS])

 

Of course you could do the same in Power Query too.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.