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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.