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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.