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.

Reply
Anonymous
Not applicable

Change an Object to string

I'm very new with working with Cosmos DB. 

 

I've connected to our Cosmos DB and extracted the columns I need. But my ID column is showing wierd letters.

 

I've checked in the Cosmos DB and see that the column is an object, how is it possible to change this object to a string in powerbi?

This is what it's currently showing me in PowerBI:

ID column.PNG

This is how the ID is in our Cosmos DB:

"_id" : ObjectId("5c613dfa6385121416f7dc10"),
	"date" : {

Thanks for the help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable
4 REPLIES 4
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

For Json object stored in Azure Cosmos DB, we need to switch to the Power BI Query Editor window, then click on the expander at the right side of the Document column header.

Snipaste_2019-04-12_10-23-56.png

For more information, please refer to this document: https://docs.microsoft.com/en-us/azure/cosmos-db/powerbi-visualize

Best Regards,

Teige

Anonymous
Not applicable

Hi @TeigeGao 

 

I've already done that. This is the colomn that came out of the DB. 

Hi @Anonymous ,

Could you please tell me the language of your Azure and PowerBI? 

Best Regards,

Teige

Anonymous
Not applicable

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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