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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
AnnevBodegom
New Member

Binary timestamp conversion

Hi all,

 

My datasource is an SQL server, after retrieving the data, I noticed that the timestamp column is returned as Binary. I've tried noumerous conversions without succes to convert the Binary value to timestamp.

Power BI says it's an 8 byte binary and converting it to text results in this: AAAAAAN1STg=

 

How do I convert the binary or text results to a regular timestamp with Power Query?

 

Greetz,

Anne

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @AnnevBodegom 

You may refer to this post:

https://community.powerbi.com/t5/Desktop/SQL-timestamp-reads-as-binary-How-to-convert/td-p/461325

If not your case, please share some data sample and expected output.

 

Best Regards,

Lin

 

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

Thank you for the reply, Lin @v-lili6-msft.

 

I've read the post you linked below and tried the suggested solution. I have implemented the solution addressed by @Greg_Deckler about converting from hexadecimal with functions successfully in the past. Unfortunately, I cant seem to get anything working on this matter.

 

The sample data is like this: AAAAAAN1STg=

which is 8 bit binary. I'm trying to convert it to a timestamp: 15-03-2019 10:44:33

 

Could my locale settings be the issue, since I'm in the Netherlands?

 

Greetings,

Anne

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.