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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
PBILover
Helper V
Helper V

Cosmos db mirroring data in a power bi


Hi,

I’m working with Cosmos DB mirroring and want to access the data in Power BI. Before doing so, I need to flatten some JSON structures, rename columns, and perform additional transformations such as creating measures.

What would be the best approach to achieve this?

  • Should I create a view in a Lakehouse and use that in Power BI and then do the incremental dataset refresh in apower BI? Actually in this approach i feel i will be missing the latest update from the database like status change etc
  • Or should I create a Lakehouse table where most of the transformations are handled using Dataflows or Data Pipelines, and then connect Power BI to that table?
  • Is it possible to do the INCR refresh in a lakehouse?

Is there a better approach you would recommend?

Thanks!

2 REPLIES 2
PBILover
Helper V
Helper V

Thanks @nilendraFabric  for your input, I will try this approach.

nilendraFabric
Community Champion
Community Champion

Hi @PBILover 

 

For using Cosmos DB mirrored data in Power BI with transformations and real-time updates, create a Lakehouse table or materialized view where you first flatten JSON structures, rename columns, and apply transformations using SQL or Dataflow Gen2; then enable incremental refresh in either Dataflow Gen2 (for Lakehouse updates) or Power BI (using date filtering) to handle new data efficiently, and finally connect Power BI via Direct Lake mode to the transformed Lakehouse data – this ensures near real-time access to status changes while avoiding data duplication and maintaining transformation logic at the source.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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