Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I extracted the hour from my date field, however, the hour shows as military time. I am having trouble using the FORMAT to format for standard time. This is my new column.
Hour = HOUR([p_datetime]
This is my table. I would like for the hour to show 6 for 18, etc.
Solved! Go to Solution.
You could try it like this.
Hour = FORMAT('Table'[p_datetime],"h AM/PM")
Hi
Check these posts:
https://community.fabric.microsoft.com/t5/Desktop/Seperate-Time-from-Date/m-p/308981
https://community.fabric.microsoft.com/t5/Desktop/Get-Time-from-DateTime-field/td-p/2572372
Or use TIME function: https://learn.microsoft.com/en-us/dax/time-function-dax
TIME(HOUR([p_datetime]),MINUTE([p_datetime]),SECOND([p_datetime]))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
@Anonymous
You could try it like this.
Hour = FORMAT('Table'[p_datetime],"h AM/PM")
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 111 | |
| 109 | |
| 40 | |
| 33 | |
| 26 |