Using Power BI to combine Financial and Social Data for More Powerful Analytics

In my last blog post we talked about Power BI Designer Preview and why I was lovin’ it. In this post I’m going to use Microsoft’s most recently Power BI tool to connect to my SQL server instance to analysis my Google Analytics data, Marketing data and CRM opportunities.

Connect to your SQL Data

Let’s get started by selecting the Get Data button in the top left corner and then select SQL Server

clip_image002

Supply your SQL sever name and database that you would like to connect to

clip_image004

Select with tables you would like to use for your dashboard/report. I’m going to use my CRM, Google Analytics and KTLMarketing.

clip_image006

Transforming your Data

At this point we can edit the query before loading the table, by selecting Edit from the bottom of the window, or we can load the table(s) and then select each table to transform the data.

Now that we’ve connected to a data sources, we need to adjust the data to meet our needs.

The Query view in Power BI Designer makes ample use of right-click menus, in addition to having tasks available on the ribbon. Most of what you can select in the Transform ribbon is also available by right-clicking an item (such as a column) and choosing from the menu that appears.

When you transform data in the Query view, you’re providing step-by-step instructions (that Query carries out for you) to adjust the data as Query loads and presents it. Clicking on the View tab allows you to select the option for the formula bar so you can enter in or modify the DAX formulas with your transformation. The original data source is not affected; only this particular view of the data is adjusted.

The steps you specify are recorded by Query in the Applied Steps navigation pane, and each time this query connects to the data source those steps are carried out so that the data is always shaped the way you specify. This process occurs whenever you use the query in the Power BI Designer, or for anyone who uses your shared query, such as on the Power BI Service. Those steps are captured, sequentially, in the Query Settings pane under Applied Steps. Reversing your applied transformation is as simple as clicking on the ‘x’ to the left of the step.

clip_image008

For starters, I’m going to replace the null values with zero. I just right click the column header, select Replace Values.

clip_image010

Type null in the Value To Find field and 0 in the Replace With field and then click the OK button.

clip_image012

Additionally, I’m going to remove several columns that were imported within the KTLMarketing table by highlighting them and then right clicking and Remove Columns.

I’ve completed the transformations to my data that I want to do for now. I can always do additional transformations later by selecting Query and then the table that I want to work with.

Building Your Visual Dashboard/Report

I’m going to start my first report by looking at Google Analytics data. I drag sessions by date, page views by date and page views by channel grouping. I like what I have started but want to compare sessions to page views. To do that I simply select page views by date and drag and drop it on top of sessions by date.

clip_image014

Next I want to add some of our KTL Marketing data to the Google Analytics report. I select the KTLMarketing data set and drag the Blog post views by author, LinkedIn views by author and Twitter by authors statistics. What I am left with below is a clear prospective of where my traffic to my website is coming from and which employee is providing the most relevant posts with each social media channel that I’m analyzing.

clip_image016

Next I’m going to start a new report by right clicking a blank space in the Reports navigation pane to the left.

clip_image018

Next I’m going to select my actual value by customer, estimated and actual value by opportunity owner and then count of opportunities by name. I’m going to use this data to analysis who are best customers are, which opportunity owners do the best at estimating the opportunity and who is the best preforming employee and then I can use the opportunity name to see if there is any correlation between blog posts and the opportunities.

clip_image020

This is just a start into analytics using Power BI Designer Preview and is specific to our business needs. There is so much more that you can do with it and the best thing of all is its FREE!!!!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s