Publish Google Analytics Reports to the Web using Power BI

There is a feature in Power BI which allows you to connect to your google analytics data, and there is a new preview feature which allows publishing content to the web in an iframe.  In this post I have combined both features together to display my website statistics to the web.

  1. Connect to Google Analytics: https://powerbi.microsoft.com/en-us/documentation/powerbi-content-pack-google-analytics/
  2. Publish to Web: https://powerbi.microsoft.com/en-us/blog/announcing-power-bi-publish-to-web/
Here is the result:
(View Larger)


Note: PowerBI has trouble rendering in Chrome in some cases.  If you are using Chrome and can not see the dashboard then try another browser.  Hopefully Microsoft will resolve this problem.

Video: Business Intelligence with Power BI

I’ve been catching myself up on what Microsoft is doing lately regarding Business Intelligence.  After spending days reading Microsoft documentation and testing some various configurations of Power BI, Gateway,Azure, and SSRS, I came across this video that goes over some history and then gets right into Power BI and some competing tools.  I suspect Microsoft is working toward merging Power BI and SSRS based on some of their SQL Server public previews.

Get Database Sizes in PestgreSQL

Returns the database name, owner, and size on a given server.  Tested in PostgrSQL 9.2 and 9.3.

Source: https://wiki.postgresql.org/wiki/Disk_Usage

SQL Server Job to Capture Reads

We needed to capture physical reads over time from our SQL server.  One method we decided to deploy was to check sys.dm_exec_query_stats periodically and capture the differences between each check.  The way I am doing it below is not 100% accurate because sys.dm_exec_query_stats is based on cached plans and the server will let clear the plan data over time.  This means that when the differences are calculated any plan that was cleared from cache would not be included in the current check, but would still be in the comparison record.  This could be solved by storing and comparing at the plan level but for my purposes I prefer to store summary information and do not mind this issue because I am running my comparison every hour and then will be averaging the results over time, and the result does not need to be exactly precise, just close enough to give us a general understanding.

This is the query inside the job:

This is what the table looks like with a few records.  Note that this is a result of running the job multiple times with a few seconds between each interval.

SQL Server Job to Capture Reads result