Endjin - Home

How to use Power BI Embedded with AspNetCore

by Matthew Adams

header-power-bi-embedded-p1-1024px

If you are looking to build an AspNetCore website, and take advantage of Power BI embedded, you’ve probably found that there isn’t any SDK support for basic report rendering (yet).

While the underlying PowerBI.Core and PowerBI.Api assemblies work just fine, there is no equivalent to PowerBI.MVC, and PowerBI.Javascript fails to install correctly in the new project type.

The latter is easily fixed – just manually add the PowerBI.js file to your bundling in the usual way.

The former problem requires a snippet of code to give you the necessary IHtmHelper extensions. Here’s that snippet.

About the author

Matthew was CTO of a venture-backed technology start-up in the UK & US for 10 years, and is now a Founder of Endjin Ltd, which provides technology strategy, experience and development services to its clients who are seeking to take advantage of Microsoft Azure and the Cloud. You can follow Matthew on twitter.