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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.