Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
denho
Frequent Visitor

Unix Timestamp conversation results in wrong value

Hi,

 

i have converted a column with the formula:

denho_0-1718094512539.png

The source column is a number format and has different values:

denho_1-1718094557400.png

 

The result is always the wrong and same value:

denho_2-1718094724865.png

 

How can i fix it?

 

Thanks in advance

 

5 REPLIES 5
denho
Frequent Visitor

Hi,

 

is this maybe a bug in the power bi desktop software?

Anonymous
Not applicable

Hi @amitchandak ,

Thanks for the quick response.

Hi @denho ,

Please have a try.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQ3NLTUMzIyMTBQitUB842AfAtzUxNUvoWhUmwsAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type number}}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Changed Type",{{"Column1", type datetime}})
in
    #"Changed Type1"

vrongtiepmsft_0-1718159226176.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Hi,

i tried you code and got excact the same values, but it didnt fix my issue.

denho_0-1718169260949.png

 

I still get th wrong results.

denho_1-1718169292731.png

 

i have attached an example file...

 

https://1drv.ms/u/s!AvOFLEsZBfitlME_S-LhwFUm4Kqufg?e=TaNDgE

 

Thanks

denho
Frequent Visitor

Thanks for your help, but thats what i have already have done.

 

Any row has still the same value 1/20/1970 regardless of the value of the source column

amitchandak
Super User
Super User

@denho , refer if these 2 can help

https://community.fabric.microsoft.com/t5/Desktop/Converting-UNIX-time-to-Date-in-PowerBI-for-Deskto...

https://whatthefact.bi/power-bi/dax/convert-unix-timestamp-to-date-or-datetime-format-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors