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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Aruna_ln
Helper III
Helper III

hi any help how to create time dimension in power bi

 

i now how create dynamic calender date dimnsion like below link.

https://www.mssqltips.com/sqlservertip/4857/creating-a-date-dimension-table-in-power-bi/

but i need Hour and Second  also

 

plase any body help this

 

thanks

aruna

5 REPLIES 5
Mi2n
Microsoft Employee
Microsoft Employee

hour = Hour([Date])

second = Second([Date])

These should help!

Hi rhanks replay,

But i didn't have date measure.
I need create date and hour and seconds
Between 1 jan 2016 to 1 jan 2019

@Aruna_ln

 

I highly recommend you separate Date and Time table to avoid too low granularity. You can use Power Query to generate Date and Time table: It’s Just a Matter of Time: Power BI Date & Time Dimension Toolkit

 

See a similar thread below:

https://stackoverflow.com/questions/41290418/how-to-include-time-in-date-hierarchy-in-power-bi

 

Regards,

Mi2n
Microsoft Employee
Microsoft Employee

I thought that you said you know how to create Date column based on the link you provided. Use the same method mentioned in the link to create a calendar table and then create two new columns for Hour and Second using the formula that I gave.

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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