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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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