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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
maneschr2022
Helper II
Helper II

DAX to change datetime format without mins and seconds

Hi I would like to use a dax to change the datetime format from ex: 11/03/2023 11.36.27AM to 11/03/2023 11.00 AM.

I just would like to convert the datetime values to show dates and hours but not the mins and seconds associated to it.

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @maneschr2022 
You can use

= TIME ( HOUR ( [TimeMeasure or TimeColumn] ), 0, 0 )

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @maneschr2022 
You can use

= TIME ( HOUR ( [TimeMeasure or TimeColumn] ), 0, 0 )
maneschr2022
Helper II
Helper II

@FreemanZ Hi, I want to be able to transform the mins to show them as 00, instead of value, example if time is 11.38AM I want to show it as 11.00AM, if that make sense?

FreemanZ
Super User
Super User

you may also change it with some mouse click:

FreemanZ_0-1675838240427.png

 

FreemanZ
Super User
Super User

hi @maneschr2022 

try like:

Column = FORMAT([datetime], "m/d/yyyy hh.mm AM/PM")

it worked like:

FreemanZ_1-1675837927218.png

 

 

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.

Top Kudoed Authors