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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Support DateTime Populated Through Azure Cosmos Table SDK

The Azure Cosmos Table SDK is storing DateTime's in some format that they aren't releasing or documenting. This makes it impossible to convert it to a DateTime in Power BI.

 

https://github.com/Azure/azure-cosmos-table-dotnet/issues/14

 

Since Power BI now supports Azure Cosmos DB as a data source I feel like there should be an option to convert this value to a DateTime from within Power BI. Other Microsoft tools like the Azure portal and the Azure Storage Explorer are converting the value into a DateTime string when displaying it.

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @BenKoth

 

You can modify the Power Query like below: 

 

let
ConvertTimestamp = (ts) => #datetime(1, 1, 1, 0, 0, 0) + #duration(0, 0, 0, ts / 10000000)
in
ConvertTimestamp(635912639960000000)

q8.PNG

 

Best Regards,
Qiuyun Yu