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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Greetings i am new to powerbi, i am trying to convert date time column i got like this "16/01/2000 2 06:30:00" and want to convert to "dd/MM/yyyy HH" , and for that i use this
DateTime.ToText([Time],"dd-MM-yyyy HH") and it worked but, i got results like 6 times 00 and 01 and 02.... because i have values like 10 min each (00:10 00:20).
The problem is think kind of format "dd-MM-yyyy HH" example 16/01/2000 06 ,cant put type as Date i already seach on modeling panel and there is no format like this? How can i possible set this to date type ?
Hi @atonidas,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
Hi @atonidas,
Try this format "dd-MM-yyyy HH:mm:ss". Please refer to https://msdn.microsoft.com/en-us/query-bi/m/datetime-totext.
Best Regards,
Dale
You may do that in dax
Format([Time];"dd/MM/yyyy HH")
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |