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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

how to get hour in date & time field

Hi Team,

i have connected semantic model to power bi Desktop and the now requirement is when the date & time have ,,, i need only hour in that how i can get that.

Date
01-08-2024 10:16
01-08-2024 11:50
01-08-2024 14:43
01-08-2024 17:00
01-08-2024 11:30

 

I would expect to see 10, 11 for second row, 14 for the thirid  17 for the fourth and 11 for the fifth .

 

Please check and share any way we can achive on above concern.

 

Thanks,

 

2 ACCEPTED SOLUTIONS
SachinNandanwar
Super User
Super User

HOUR('Table'[Date])


Regards,
Sachin
Check out my Blog

View solution in original post

shafiz_p
Super User
Super User

Hi @Anonymous  As I can understand, that you want only hour in the same date and time column. If this, you just need to change format. See image below (Just type hh in the format section):

shafiz_p_0-1730538305967.png

Hit enter and you will get your desired format:

shafiz_p_1-1730538379131.png

 

If want to create a new column then use Hour function as @SachinNandanwar  mentioned.

Hope this helps!!

If this solved your problem, please accept it as a solution!!

 

Best Regards,
Shahariar Hafiz

View solution in original post

2 REPLIES 2
shafiz_p
Super User
Super User

Hi @Anonymous  As I can understand, that you want only hour in the same date and time column. If this, you just need to change format. See image below (Just type hh in the format section):

shafiz_p_0-1730538305967.png

Hit enter and you will get your desired format:

shafiz_p_1-1730538379131.png

 

If want to create a new column then use Hour function as @SachinNandanwar  mentioned.

Hope this helps!!

If this solved your problem, please accept it as a solution!!

 

Best Regards,
Shahariar Hafiz

SachinNandanwar
Super User
Super User

HOUR('Table'[Date])


Regards,
Sachin
Check out my Blog

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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