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

Power BI Embedded - getting it to work with Fabric Delta table source

I have a dataset consisting of several Delta tables that replaced an old Synapse SQL Serverless dataset and two Power BI reports. On top of that there is a webapp with an Azure Function in C# backend that embeds the PBI report.

 

I recreated the semantic model (that was in Direct Query for the old Synapse SQL, it was too big for Import mode) first as a Direct Lake model. I rewired the reports to the new model and I checked that they worked in the PBI Service and they also worked in PBI Desktop. In the Azure function, I changed getting the embed token REST API call from GenerateTokenRequest to GenerateTokenRequestV2. I enlisted the Entra app registration with the workspace, specified all the workspace, report and dataset IDs, but got the following error response when making the embed token call: 

 

 

{"error":{"code":"InvalidRequest","message":"Embedding a DirectLake report is not supported"}}

 

 

 

I found out that the DirectLake mode is not supported for the Power BI Embedded (I hope it will be available soon to have the full Fabric potential unlocked in our embedded reports), so I tried to make a workaround. I made a Direct Query layer pointing to the Direct Lake semantic model (slower, but I thought at least it should work), specified the new semantic model's ID, in the token request and also just for any case I set the switch in the PBI service for the base DirectLake model to work only in DirectQuery mode. I got the following error message for the embed token request: 

 

 

{"error":{"code":"InvalidRequest","message":"Generate token request for proxy model should include the core model ID"}}.

 

 

When I added the core model dataset ID as well to the request, I got the old message:

 

 

{"error":{"code":"InvalidRequest","message":"Embedding a DirectLake report is not supported"}}

 

 

 

I also tried changing the data source in the original model, through the desktop app, to make it point to the SQL analytics endpoint of the lakehouse where the Delta tables are, but I was getting the following message for all the tables: 

The key didn't match any rows in the table.

 

Is there any way the Embedded mode can work with the Delta table source?

 

Thanks, best regards,

Janko Ilić

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @JIlicGrECo ,

Please review the following links, hope they can give some insights...

Load Databricks’ Delta tables into Power BI | by José Fernando Costa | Medium

Learn about Microsoft OneLake Delta table integration in Power BI and Microsoft Fabric - Power BI | ...

powerbi - Scalable Power BI data model on delta lake ADLS Gen2 - Stack Overflow

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @JIlicGrECo ,

Please review the following links, hope they can give some insights...

Load Databricks’ Delta tables into Power BI | by José Fernando Costa | Medium

Learn about Microsoft OneLake Delta table integration in Power BI and Microsoft Fabric - Power BI | ...

powerbi - Scalable Power BI data model on delta lake ADLS Gen2 - Stack Overflow

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-yiruan-msft ,

 

In the meantime I tried that myself exactly, though in this particular case I had to recreate the entire semantic model via reimporting all the tables from the SQL endpoint, just swapping the source did not work (though the Delta tables were made per Synapse Serverless SQL table definition).

 

Is there an information when the Direct Lake mode will be available for the PBI Embedded?

 

Best regards,

Janko

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.