Create Power BI Reports Using Facebook Data

Power BI is a cloud based service that provides data visualization options, based on the source data. Using Power BI, we can create dashboards based on the data. In order to create reports using Power BI, make sure that you have a Power BI account. If you don’t have an account, you can sign up for it here.You can either work with Power BI online or download the Power BI Desktop version from here.

Power

In this article, we will go ahead with the desktop version. Once downloaded and installed, spin up Power BI Desktop.

Power

This will open up the desktop version of Power BI.

Power

Power BI is flexible enough to work with multiple data sources. In this article, we will see how to create reports using SharePoint Online list as the data source. Click on ‘Get Data’ option to select the data source.

Power

All the supported data sources from which we can create reports will be listed down as separate tabs. In this article, we will see how to report against Facebook. From "All" tab, select Facebook and click on Connect.

Power

This will connect to Facebook using the Facebook connector. Click on Continue.

Power

We can either connect to a Facebook user account or to a Facebook page.

Connect to a User Account

First, let’s derive the data from a personal account. In order to do that,  specify "me" in the first textbox and select "Posts" to get the details of the Facebook wall posts.

Power

Upon clicking on OK, it will generate a temporary table that shows the data about the recent wall posts.

Power

Click on Load to import the data to Power BI.

Power

Thus, we have the data inside Power Bi Desktop. Now, we can use the different visualization options to derive meaningful data out of it.

Power

Let’s select Pie Chart to visualize the Facebook data.

Power

Drag and drop the type column to the values section of the pie chart.

Power

Type column contains Facebook data categorized as photo, video, links etc. After drag and drop, the pie chart will show pie section for each of the type of the data (photo, video etc.).

Power

We can do the cosmetic changes in the highlighted section of the visualization tab.

Power

Finally, the pie chart will render the Facebook data categorized by the type of the data, as shown below.

Power

We can also convert it to a bar chart.

Power

Connect to a Public Page

In the earlier section, we connected Power BI to a user account. Now, let's derive the data from a public page, the official Microsoft Power BI page (https://www.facebook.com/microsoftbi) which has the object id- microsoftbi. From Get Data, select Facebook.

Power



In the object ID section, specify microsoftbi and in the connection drop down, select posts.

Power

This will populate a temporary table with the posts from the Microsoftbi page. Click on Load to import it to the Power BI desktop.

Power

The data is now imported to Power BI. Just like we did earlier, we can visualize the data using either one of the graph options. Drag and drop the type column to the Category section, based on which the chart will be categorized and displayed.

Power

The chart representation will look like below.

Power

Summary

Thus, we saw how to integrate Power BI and Facebook, and generate Power BI reports based on the Facebook data.

Up Next
    Ebook Download
    View all
    Learn
    View all