Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Is there a better approach you would recommend?
Thanks!
Solved! Go to Solution.
Hi @PBILover,
We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
@nilendraFabric, thanks for your prompt response.
Thanks,
Prashanth Are
MS Fabric community support
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Hi @PBILover,
We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
@nilendraFabric, thanks for your prompt response.
Thanks,
Prashanth Are
MS Fabric community support
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
@v-prasare @nilendraFabric
If I want to leverage the benefits of database mirroring, would it be a good idea to create a view on the mirrored database that handles JSON flattening and date conversion directly? Then, I could use that view in a Power BI dataset. What would be the impact on a medium-sized dataset, and what factors should I consider when implementing this approach?
Thanks
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
29 | |
15 | |
6 | |
6 | |
3 |
User | Count |
---|---|
49 | |
45 | |
15 | |
7 | |
6 |