Hi all you Power BI gurus! Hope you can help the newbie out here... I have attempted to convert from an SQL database the Unix timestamp and have done so...HOWEVER, it forces me to change my connection type to the database to Import which is not a fesible option. The database is just too big.
I have attempted to create a column and create some sort of calculated field using the suggestions in all the other blogs here, but am still coming up short. Please let me know if I am chasing a pipe dream right now.....Thanks in advance and if you need any other information about what I am trying to accomplish, please let me know.
I created a new column and used this as a formula, which worked, but made me change the connection type to Import.
#datetime(1970,1,1,0,0,0) + #duration(0,-5,0,[F_CRTM])
I tried to use a DAX formula but it gives me an error when I try to type in the field ([UnixTime] in the formula but I type in the field I want it to convert) right at field name and says it can't find it. Below is the formula I was using.
UTCTime = VAR UnixDays = [UnixTime]/(60*60*24)
Does this answer your question?
Did you turned on "Allow unrestricted measure in direct query mode" if not then goto options and settings -> Option -> Direct Query , check the option.
Try and see if it works