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
bumoverflow
Frequent Visitor

Cosmos DB Connector returns different results than in container

When using Data Explorer I'm receiving bigger result than using Cosmo DB V1 connector in Power BI. Result version in pbi lacks a lot of columns that are visible in the Data Explorer. Is it a matter of settings? I'm importing only one container just to compare two results so it is not because of too big result. Microsoft decided to disable documentation for V1 so I cannot read what may be the problem...

I'm not going to mention about Cosmos DB V2 connector, which just loads for eternity and doesnt really returns anything...

3 REPLIES 3
AmiraBedh
Super User
Super User

The V1 connector in Power BI might not be projecting all columns by default. Power BI's Cosmos DB connector often works with predefined schemas or may not dynamically infer the schema like the Data Explorer does.

Also, it is using an older API version or different serialization settings, leading to discrepancies in the data being fetched. (since it is deprecated)

Given that the V2 connector isn't working as expected, you may need to contact Microsoft support.

I found this old thread : https://stackoverflow.com/questions/53090283/cosmos-db-query-doesnt-return-all-results

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

@AmiraBedh  Thank you for your response. Is it possible to edit the schema to receive a different result, similar to how it’s done in the explorer?

When you connect to Cosmos DB, instead of loading the data directly, you can write a custom SQL query that explicitly selects the columns you want. 

Or after loading the data , you can use  PQ  to manually adjust the schema.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

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.

Top Kudoed Authors