Forum Discussion
TahaSolutions
10 years agoRegular Visitor
Convert date ticks to DateTime
I have seen this formula in another post. Convert(datetime, (MachineGroups.TimeAdded - 599266080000000000)/864000000000) Power BI doesn't have the convert function. Can any one write this...
hugoberry
Responsive Resident
9 years agoTry the following conversion
=DateTime.FromFileTime([ticks])-#duration(584388,0,0,0)
The FromFileTime counts the ticks from 1600/01/01 so that's why we have the duration of 584388 days to offset this.