Convert DAX date and time to rounded down hour

tbobolz

Board Regular
Joined
Mar 18, 2010
Messages
148
Excel 2010

Hi I'm having trouble converting an date and time field formatted like this ( 12/9/2006 4:41:00 PM) to extract only the hour (rounded down) So this example should return 16:00.

My date and time field is labeled "ER ARRIVAL DATETIME"

I have time several differnet items I have found but I am unable to get them to round down.

Thanks for any help you can offer.

Terry
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
can you fake it by using just the [h] value and adding :00. you could just use =CONCATENATE(TEXT(cell,"hh"),":00")
 
Upvote 0
Tanks Mole999, I have tried various verison of this thought, yet it does not work, or if I do get it to work, it returns the column formatted in "general" format and will not allow the conversion back to date.
 
Upvote 0
did you want the Date and hour like

=CONCATENATE(TEXT(G16,"mm/d/yyyy hh"),":00")
 
Upvote 0
I actual just wish to extract the Hour from the the date and time. DAX will not load the cell value after a concatenate(text command.
 
Upvote 0
Ok, finally found a solution. I used =concatenate(hour(Table1[ER ARRIVAL DATETIME]),":00"). Most likely a better way out there, but I can now move forward.
 
Upvote 0

Forum statistics

Threads
1,223,990
Messages
6,175,817
Members
452,672
Latest member
missbanana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top