Forum Discussion
Amazing_Random
Helper I
3 years agoFormatting date text string to a custom format
For a report I have to use a link into the meter name. I have been able to crack down the id aspect of the link. but the date on such link is quite off to the date/time formats in PBI. &chartEndDa...
- 3 years ago
Do you need something like this? This formula uses the UTCNOW() function to get the current UTC time and the FORMAT function to format the datetime in the desired format. You can replace UTCNOW() function with the column you have.
Column = CONCATENATE( FORMAT(UTCNOW(), "yyyy-MM-ddT"), SUBSTITUTE( FORMAT(UTCNOW(), "HH:mm:ss.fffZ"), ":", "%3A" ) )
bolfri
Solution Sage
3 years agoDo you need something like this? This formula uses the UTCNOW() function to get the current UTC time and the FORMAT function to format the datetime in the desired format. You can replace UTCNOW() function with the column you have.
Column = CONCATENATE(
FORMAT(UTCNOW(), "yyyy-MM-ddT"),
SUBSTITUTE(
FORMAT(UTCNOW(), "HH:mm:ss.fffZ"),
":",
"%3A"
)
)
Amazing_Random
Helper I
3 years agoYours was very close, I had managed to convert the date into the yyyy-mm-ddTHH:mm:ss format so I just needed ti use:
SUBSTITUTE(
FORMAT(Column, "YYYY-mm-ddTHH:mm:ss.fffZ"),
":",
"%3A"
Thanks for the help!