Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
We managed to embed a Power BI report in our angular app.
We now want to test the Dynamic Binding feature but we're facing issues.
If the config is of type IEmbedConfiguration, we have an error because datasetBinging is not defined in type IEmbedConfiguration.
If the config is of type IReportLoadConfiguration, we have an error because when we call the embed method, IReportLoadConfiguration is not compatible with IEmbedConfiguration.
Any help on how to achieve that would be really appreciated.
Here is an extract of our code:
import * as pbi from 'powerbi-client';
import * as pbimodels from 'powerbi-models';
config: pbi.IEmbedConfiguration;
// config: pbimodels.IReportLoadConfiguration;
this.config = {
// Remove type when use IReportLoadConfiguration type
type: 'report',
accessToken: this.token,
tokenType: pbimodels.TokenType.Embed,
embedUrl: this.reportEmbedUrl,
id: this.reportId,
permissions: pbimodels.Permissions.All,
datasetBinding: {
datasetId: "notOriginalDatasetId", // The wanted dataset id
},
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: false
}
};
this.report = this.powerbi.embed(this.reportContainer.nativeElement, this.config) as pbi.Report;Thanks
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |