Forum Discussion

Iab's avatar
Iab
New Member
3 years ago

Formatting dates on a report

Hello

I am new to this and excuse if I am posting in the wrong place. I am doing a direct query from a MSSQL server. I have to calculate time elapsed between two dates. I create a custom column where =[TimeMoveAfterResponding] -[Time_Enroute]. The formula works fine and I see the results in time format since most of the fields are within few minutes if not seconds. In the new column

Which looks good. When I go to the report to view the data, Powerbi does not recognize this field as a datetime and displays a text number where I cannot do anything with it. 

I would like to avg the results for different units and it is not allowing me. Any help would be appreciated.

 

Imad