Forum Discussion

npnigro's avatar
npnigro
Advocate III
8 years ago

Power BI Embedded for WordPress now available!

I wanted to make you aware of a plugin that Atlas Public Policy (www.atlaspolicy.com) has created to makes it easy to integrate Power BI Embedded with your WordPress website.

 

Atlas uses Power BI in most of our projects to make data more accessible to professionals in public policy. Often, our work includes building public-facing websites with WordPress and embedding Power BI reports using "publish to web." 

 

Recently, we wanted to expand our offerings and take advantage of Power BI Embedded. We figured we weren't the only ones and in the spirit of open source development, we created a plugin to connect Power BI Embedded and WordPress. For the first release, we included functionality to embed dashboards, reports, report visuals, Q&A, and tiles.

 

This plugin uses the Power BI REST API to access various types of content and easily embed them on a WordPress site using a shortcode. The plugin follows the "app owns data" process as documented by Microsoft here

 

The plugin relies on Microsoft's JavaScript library for embedding Power BI available on Github here: https://github.com/Microsoft/PowerBI-JavaScript.

 

You can download the Power BI Embedded for WordPress plugin on GitHub here: https://github.com/atlaspolicy/power-bi-embedded.

 

More documentation on the plugin is available in the README on GitHub. 

 

We would really value the contribution of others on this project to expand the plugin's capabilities and increase its usefullness to the Power BI community.

19 Replies

  • Is it possible to explain the plugin a little bit more?

     

    Because it doesnt work for me :)

    • npnigro's avatar
      npnigro
      Advocate III

      Can you explain the error you're seeing? I tested on a fresh website before I published the plugin. 

      • DennisJung's avatar
        DennisJung
        Helper I

        It just doesn't work, when i insert the code to a page, it stays blank.

         

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks for this article.

     

    I managed to embedded the report into the WordPress site successfully as an iframe.

     

    I set the width and height to 100% of the Power BI report.  However, I find there is some kind of constrain zooming into the report.  I can't seem to zoom in and out of the report smoothly.

     

    Does anyone has this experience?  If so what did you do to resolve this limitations.

    • npnigro's avatar
      npnigro
      Advocate III

      No, sorry. The source code for the plugin is available on GitHub and WordPress. 

  • Hi npnigro 

     

    Great news for me. I'm able to connect Power BI Reports with Wordpress by following all steps

    Now i want to see RLS i.e. applied on my reports. Over wordpress plugin setting i couldnt see any option to add body like we did in REST API on Power BI Embedded Playground (Below Json example).

    In short: How can i apply RLS, instructions are not clear to me.

     

    		Body:
    		{
    		  "accessLevel": "View",
    		  "allowSaveAs": "false",
    		  "identities": [
    			{
    			  "username": "[email protected]",
    			  "roles": [
    				"UserRole"
    			  ],
    			  "datasets": [
    				"bf6bea64-e582-4848-aaa6-ef34ccbc8e34"
    			  ]
    			}
    		  ]
    		}

     

     

     

    Please help. 

     

    Thanks & Regards,
    Adeel

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello, thank you so much for this fantastic plugin. As a colleague below mentioned, how can we use RLS with this plugin? I need to restrict the content by user, it is an intranet portal.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi

     

    There is a way to config Power Bi Embedded for Wordpress module to work with a Custom Power Bi server Report?

     

    Thanks

    • Anonymous's avatar
      Anonymous
      Not applicable

      Assuming I'm understanding your question right, no, the Power BI site's url is hardcoded in several places, so it will only work with reports hosted on PowerBI.com.

      Howerver, the plugin's code is public, so there's no reason you couldn't fork it and upload the plugin directly to your site.