{"id":281,"date":"2013-04-01T19:57:25","date_gmt":"2013-04-01T19:57:25","guid":{"rendered":"http:\/\/www.sqlfreelancer.com\/blog\/?p=281"},"modified":"2014-03-06T20:30:08","modified_gmt":"2014-03-06T20:30:08","slug":"building-key-performance-indicators-kpis-with-powerpivot","status":"publish","type":"post","link":"https:\/\/www.sqlfreelancer.com\/blog\/building-key-performance-indicators-kpis-with-powerpivot\/","title":{"rendered":"Building Key Performance Indicators (KPIs) with PowerPivot"},"content":{"rendered":"<p>A KPI (Key Performance Indicator) is a graphical representation that displays progress against a predefined measure or business goal. KPIs make it easier for end users to evaluate the amount of progress without reading a bunch of data.<\/p>\n<p>In this post, I&#8217;ll use AdventureWorksDW2012 sample data so you can follow along with me. The database can be downloaded <a href=\"http:\/\/msftdbprodsamples.codeplex.com\/releases\/view\/55330\">here<\/a>.<\/p>\n<p>Let&#8217;s get started.<\/p>\n<h3>Enabling PowerPivot in Excel 2013<\/h3>\n<p>To enable PowerPivot, open Excel, go to File, Options, Add-Ins, select COM Add-ins and click Go. This will open up the COM Add-Ins dialog box. Click &#8220;Microsoft Office PowerPivot for Excel 2013&#8221; and hit OK. After successfully enabling PowerPivot, the tab should appear at the top of the Excel spreadsheet:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-282\" alt=\"SQL Freelancer SQL Server PowerPivot KPI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI.png\" width=\"626\" height=\"82\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI.png 626w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-300x39.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><\/p>\n<h3>Importing Data<\/h3>\n<p>Open Excel, click the PowerPivot tab, Manage:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-283\" alt=\"SQL Freelancer SQL Server PowerPivot KPI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-1.png\" width=\"626\" height=\"118\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-1.png 626w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-1-300x56.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/a><br \/>\nUpon clicking Manage, a new window should appear. From this window, you will import data. Click From Database and select From SQL Server:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-284\" alt=\"SQL Freelancer SQL Server PowerPivot KPI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-2.png\" width=\"560\" height=\"232\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-2.png 560w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-2-300x124.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><br \/>\nType in the Server Name, Authentication mode, and browse to the AdventureWorksDW2012 database:<br \/>\n<a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-285\" alt=\"SQL Freelancer SQL Server PowerPivot KPI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-3.png\" width=\"561\" height=\"451\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-3.png 561w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-3-300x241.png 300w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/a>Click Next, choose &#8220;Select from a list of tables and views to choose the data to import&#8221; and click Next. The next screen is where we will select our data to import. For this example, choose FactInternetSales and click &#8220;Select Related Tables&#8221;. The Select Related Tables button enables you to automatically select every table that is related to the source table selected:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-286\" alt=\"SQL Freelancer SQL Server PowerPivot KPI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-4.png\" width=\"548\" height=\"574\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-4.png 548w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-4-286x300.png 286w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/a><br \/>\nAfter clicking Finish, the import will begin. Once the import finishes successfully you should be able to view all the tables separated into sheets:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-287\" alt=\"SQL Freelancer SQL Server PowerPivot KPI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-5.png\" width=\"618\" height=\"228\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-5.png 618w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-5-300x110.png 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/a><\/p>\n<h3>Creating PivotTable<\/h3>\n<p>Before creating a KPI we will need to slice and dice our data into a PivotTable. To do this, click PivotTable on the ribbon bar and choose New Worksheet:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-288\" alt=\"SQL Freelancer SQL Server PowerPivot KPI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-6.png\" width=\"624\" height=\"144\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-6.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-PowerPivot-KPI-6-300x69.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><br \/>\n<a href=\"http:\/\/www.mssqltips.com\/sqlservertip\/2879\/building-key-performance-indicators-kpis-with-powerpivot\/\" target=\"_blank\">Click here to view the rest of this post.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A KPI (Key Performance Indicator) is a graphical representation that displays progress against a predefined measure or business goal. KPIs make it easier for end users to evaluate the amount of progress without reading a bunch of data. In this post, I&#8217;ll use AdventureWorksDW2012 sample data so you can follow along with me. The database [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,65],"tags":[35,106,59,66,55,110],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-business-intelligence","category-powerpivot","tag-bi","tag-business-intelligence","tag-development","tag-excel","tag-kpi","tag-powerpivot"],"_links":{"self":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":1,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}