{"id":304,"date":"2013-06-25T14:51:28","date_gmt":"2013-06-25T19:51:28","guid":{"rendered":"http:\/\/www.sqlfreelancer.com\/blog\/?p=304"},"modified":"2014-03-06T16:17:29","modified_gmt":"2014-03-06T22:17:29","slug":"power-query-for-excel","status":"publish","type":"post","link":"https:\/\/www.sqlfreelancer.com\/blog\/power-query-for-excel\/","title":{"rendered":"Power Query for Excel"},"content":{"rendered":"<p>In this post, I&#8217;ll discuss the prerequisites and how to install and enable Power Query (Data Explorer) and I&#8217;ll show you how to use this new feature.<\/p>\n<p>Prerequisites:<\/p>\n<ul>\n<li>Requires Microsoft Office 2010 SP1 or Microsoft Excel 2013 32-bit or 64-bit<\/li>\n<li>Requires Windows Vista (with .Net 3.5 SP1 or greater), Windows Server 2008 (with .Net 3.5 SP1 or greater), Windows Server 2008 R2, Windows 7 or Windows 8.<\/li>\n<\/ul>\n<p>Installation:<\/p>\n<p>Download and install the preview from <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=36803\" target=\"_blank\">Microsoft Download Center<\/a><\/p>\n<p>Once the feature is installed open Excel and go to File, Options, Add-Ins. Select COM Add-Ins and click Go.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-305\" alt=\"SQL Freelancer SQL Server Excel Data Explorer Power Query BI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query.png\" width=\"624\" height=\"474\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-300x227.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><br \/>\nCheck Microsoft &#8220;Data Explorer&#8221; Preview for Excel and click OK.<br \/>\n<a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-306\" alt=\"SQL Freelancer SQL Server Excel Data Explorer Power Query BI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-1.png\" width=\"618\" height=\"189\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-1.png 618w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-1-300x91.png 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/a><br \/>\nOnce Data Explorer has been enabled, the tab will appear above the Office ribbon.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-307\" alt=\"SQL Freelancer SQL Server Excel Data Explorer Power Query BI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-2.png\" width=\"624\" height=\"82\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-2.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-2-300x39.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><\/p>\n<p>Now that we have Data Explorer installed and enabled we can get to the fun stuff.<\/p>\n<p>To see a detailed list of each element you can visit <a href=\"http:\/\/office.microsoft.com\/en-us\/excel-help\/start-page-HA104003813.aspx\" target=\"_blank\">Microsoft Data Explorer Help<\/a><\/p>\n<p>If you click on the Data Explorer tab you will notice Get External Data. Just like Excel and PowerPivot, this is where our data source will come from. There are multiple data sources to choose from including websites, files, databases, Active Directory, and even Facebook. Yes&#8230;.Facebook.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-308\" alt=\"SQL Freelancer SQL Server Excel Data Explorer Power Query BI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-3.png\" width=\"465\" height=\"530\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-3.png 465w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-3-263x300.png 263w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/a><\/p>\n<p>In this tip, I&#8217;ll show you examples of two data sources. We&#8217;ll pull data from a website and create a map report using PowerView and we&#8217;ll pull data from Facebook and make a report using PowerPivot.<\/p>\n<h3>Web Data Source<\/h3>\n<p>In the first example, I&#8217;ll pull table data from the web using Wikipedia. Choose &#8220;From Web&#8221; from the Get External Data section and use the following URL:<a href=\"http:\/\/en.wikipedia.org\/wiki\/List_of_countries_by_population\" target=\"_blank\">http:\/\/en.wikipedia.org\/wiki\/List_of_countries_by_population<\/a><\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-309\" alt=\"SQL Freelancer SQL Server Excel Data Explorer Power Query BI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-4.png\" width=\"624\" height=\"311\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-4.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-4-300x149.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><br \/>\n<\/a><\/p>\n<p>Click OK<\/p>\n<p>In the Query Editor under Navigator, select Countries. This will display rank, country, population, date, % of world population and source. We can filter columns just like in Excel by selecting the header arrow and choosing the appropriate filter. In this example, we&#8217;ll filter Source to only includes records that are an official estimate.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-310\" alt=\"SQL Freelancer SQL Server Excel Data Explorer Power Query BI\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-5.png\" width=\"624\" height=\"425\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-5.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Power-Query-5-300x204.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><br \/>\n<\/a><a href=\"http:\/\/www.mssqltips.com\/sqlservertip\/2961\/more-uses-for-data-explorer-for-excel\/\" target=\"_blank\">Click here to view the rest of this post.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I&#8217;ll discuss the prerequisites and how to install and enable Power Query (Data Explorer) and I&#8217;ll show you how to use this new feature. Prerequisites: Requires Microsoft Office 2010 SP1 or Microsoft Excel 2013 32-bit or 64-bit Requires Windows Vista (with .Net 3.5 SP1 or greater), Windows Server 2008 (with .Net 3.5 [&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,71],"tags":[35,106,59,66,72,111],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-business-intelligence","category-power-query","tag-bi","tag-business-intelligence","tag-development","tag-excel","tag-facebook","tag-power-query"],"_links":{"self":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/304","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=304"}],"version-history":[{"count":1,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":311,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions\/311"}],"wp:attachment":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}