Forum Discussion
UNIX time to date
Hello,
I have found two methods online which I have tried but it doesn't give the correct result.
I believe it's because my UNIX time is much larger when comparing to others.
I've tried this method:
And this method:
I've also tried to add a new query but I didn't succeed with that as well.
I hope someone can help.
BR
Anonymous Have you tried it in DAX?
https://community.powerbi.com/t5/Quick-Measures-Gallery/Unix2UTC-and-UTC2Unix/m-p/620012#M292
If it is much larger, is it because it is in milliseconds?
4 Replies
- Greg_DecklerCommunity Champion
Anonymous Have you tried it in DAX?
https://community.powerbi.com/t5/Quick-Measures-Gallery/Unix2UTC-and-UTC2Unix/m-p/620012#M292
If it is much larger, is it because it is in milliseconds?
- AnonymousNot applicable
You were right!
It helped changing to this:
- AnonymousNot applicable
I don't know if I understand. Like this?
- amitchandakSuper User
Anonymous , In power query
DateTimeZone.ToLocal(#datetimezone(1970,1,1,0,0,0,0,0) + #duration(0,0,0, [UNIX timestamp]))