{"id":85947,"date":"2020-01-02T21:26:09","date_gmt":"2020-01-02T21:26:09","guid":{"rendered":"https:\/\/www.red-gate.com\/simple-talk\/?p=85947"},"modified":"2024-09-03T20:15:21","modified_gmt":"2024-09-03T20:15:21","slug":"power-bi-and-excel","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/power-bi-and-excel\/","title":{"rendered":"Power BI and Excel"},"content":{"rendered":"<p><strong>Power BI<\/strong> and <strong>Excel<\/strong> are tools so close to each other that <strong>Power BI<\/strong> was born inside <strong>Excel<\/strong>. <strong>Power Query<\/strong>, <strong>Power Pivot<\/strong>, <strong>Power View<\/strong>, they were all <strong>Excel<\/strong> plugins before being united and become <strong>Power BI<\/strong>.<\/p>\n<p>The ability to build an <strong>ETL<\/strong>, design a model and generate reports and dashboards with great storytelling make <strong>Power BI<\/strong> a very powerful tool even beyond the self-service tool which initially was its purpose, but getting closer to an enterprise tool.<\/p>\n<p>However, <strong>Excel<\/strong> still has a unique level of flexibility for data analysts. <strong>Pivot Tables<\/strong> allow the data analyst to have a view on the model and easily mix measures and dimensions to view a result, even easier then <strong>Power BI<\/strong> reports.<\/p>\n<p>When Power BI was created, we easily mistake it as a visualization tool (some people still do this mistake). From that time, power bi has evolved to become very close to an enterprise-level tool.<\/p>\n<p>Nowadays, we have the ability to build powerful <strong>ETL<\/strong> architectures building many re-usable dataflows, build models using the <strong>ETL<\/strong> as a source and make them re-usable as Datasets published in the portal and create many reports and dashboards from these models.<\/p>\n<p>All these abilities still don&#8217;t replace the self-service capability in <strong>Excel Pivot Tables<\/strong>. Their flexibility for analysis is unique. So, it&#8217;s no surprise that on the way to becoming an enterprise tool <strong>Power BI<\/strong> offers Excel connections directly to its datasets.<\/p>\n<p>There are two solutions to make this kind of connection, let&#8217;s try.<\/p>\n<h3>Analyze in Excel<\/h3>\n<p>The first option is the use of the instruction <strong>Analyze in Excel<\/strong>. You can find this option on the <strong>&#8220;&#8230;&#8221;<\/strong> menu item close to each dataset in the portal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-85976 size-full\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2020\/01\/ExcelPBI5.png\" alt=\"Analyze in Excel\" width=\"905\" height=\"497\" \/><\/p>\n<p>\nThe idea behind this technique is simple: <strong>Power BI<\/strong> is built over the same engine than the tabular model in <strong>SSAS<\/strong>. Due to that, you can make a connection to <strong>Power BI<\/strong> datasets using <strong>Analysis Server<\/strong> as a source.<\/p>\n<ul>\n<li>When you click <strong>Analyse in Excel<\/strong>, the portal downloads to your machine an ODC file. The ODC extension means Office Data Connection, a file with information about how to connect to the dataset.<\/li>\n<li>Once in Excel, click the <strong>Data<\/strong> menu and click the button <strong>Existing Connections<\/strong> in the toolbox.\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-85979\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2020\/01\/ExcelPBI6.png\" alt=\"\" width=\"665\" height=\"157\" \/><\/p>\n<ul>\n<li>In the <strong>Existing Connections<\/strong> window, click <strong>Browse for More<\/strong> button and select the <strong>ODC<\/strong> file you just downloaded<\/li>\n<li>In the <strong>Import Data<\/strong> window, select how and where you would like to see the data. For this example, I will use a <strong>PivotTable\n<p><\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-85975\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2020\/01\/ExcelPBI4.png\" alt=\"\" width=\"388\" height=\"356\" \/><\/p>\n<ul>\n<li>In the <strong>Import Data<\/strong> window, click <strong>Ok<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>The <strong>Pivot Table<\/strong> is created inside the worksheet and you will be able to see on the right side the data in your <strong>Power BI Dataset<\/strong>. You will also be able to choose the measures and dimensions to build your <strong>Pivot Table<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-85974\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2020\/01\/ExcelPBI3.png\" alt=\"\" width=\"313\" height=\"476\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-85973\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2020\/01\/ExcelPBI2.png\" alt=\"\" width=\"433\" height=\"801\" \/><\/p>\n<h3>Power BI Publisher for Excel<\/h3>\n<p>Another option is the user of the <strong>Power BI Publisher for Excel<\/strong>. You can download this tool here: <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=50729\">https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=50729<\/a><\/p>\n<p>This tool will add a new menu to <strong>Excel<\/strong> called <strong>Power BI<\/strong>.<\/p>\n<ul>\n<li>Click on the <strong>Power BI<\/strong> menu in <strong>Excel<\/strong><\/li>\n<li>Click on the button <strong>Connect to Data<\/strong>. It will request you to login to <strong>Power BI<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-85981\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2020\/01\/ExcelPBI7.png\" alt=\"\" width=\"800\" height=\"157\" \/><\/p>\n<ul>\n<li>In the window <strong>Connect to data in Power BI<\/strong> select the workspace you would like to connect on the dropdown.<\/li>\n<li>Select if you would like to connect to a Report or to a Dataset on the checkboxes<\/li>\n<li>Select the name of the Report or Dataset on the 2nd dropdown\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-85972\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2020\/01\/ExcelPBI1.png\" alt=\"\" width=\"450\" height=\"445\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Click <strong>Connect<\/strong><\/li>\n<\/ul>\n<p>A new worksheet will be created with the pivot table, exactly as the previous example.<\/p>\n<p>There are one problem and one advantage. The problem is that you are restricted to connect to classic workspaces. It&#8217;s not possible to see the upgraded workspaces. This tool is not updated since 2017 and, according to the official <strong>Power BI<\/strong> account on twitter, the upgraded workspaces are still in preview.<\/p>\n<p>The advantage, on the other hand, is that you can also publish data back to power bi, use the option to pin your pivot table in a dashboard.<\/p>\n<p>You can read more details about how to use this tool on this link: <a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/publisher-for-excel\">https:\/\/docs.microsoft.com\/en-us\/power-bi\/publisher-for-excel<\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>The ability to allow self-service BI using Excel puts Power BI closer to the status of enterprise tool, going to one day replace <strong>Azure Analysis Services<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power BI and Excel are tools so close to each other that Power BI was born inside Excel. Power Query, Power Pivot, Power View, they were all Excel plugins before being united and become Power BI. The ability to build an ETL, design a model and generate reports and dashboards with great storytelling make Power&#8230;&hellip;<\/p>\n","protected":false},"author":50808,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2,159166],"tags":[4643,101611,5131,5873],"coauthors":[6810],"class_list":["post-85947","post","type-post","status-publish","format-standard","hentry","category-blogs","category-powerbi","tag-excel","tag-power-bi","tag-ssas","tag-tabular-model"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/85947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/50808"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=85947"}],"version-history":[{"count":5,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/85947\/revisions"}],"predecessor-version":[{"id":85982,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/85947\/revisions\/85982"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=85947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=85947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=85947"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=85947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}