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

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

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.