Tutorial: From Excel workbook to a Power BI report in Microsoft Teams

APPLIES TO: Power BI Desktop Power BI service

Your manager wants to see a report on your latest sales and profit figures by the end of the day. However, the latest data is in files on your laptop. In the past, it's taken hours to create a report, and you’re beginning to feel anxious.

No worries. With Power BI, you can create a stunning report and share it in Microsoft Teams in no time!

Screenshot of the finished Financial Sample report.

In this tutorial, we upload an Excel file, create a new report, and share it with colleagues in Microsoft Teams, all from within Power BI. You'll learn how to:

  • Prepare your data in Excel.
  • Download sample data.
  • Build a report in the Power BI service.
  • Pin the report visuals to a dashboard.
  • Share a link to the dashboard.
  • Share the dashboard in Microsoft Teams

Prerequisites

Prepare data in Excel

Let’s take an Excel file as an example.

  1. Before you can load your Excel file into Power BI, you must organize your data in a flat table. In a flat table, each column contains the same data type; for example, text, date, number, or currency. Your table should have a header row but no columns or rows that display totals.

    Screenshot of the data organized in Excel.

  2. Next, format your data as a table. In Excel, on the Home tab, in the Styles group, select Format as Table.

  3. Select a table style to apply to your worksheet.

    Your Excel worksheet is now ready to load into Power BI.

    Screenshot of the data formatted as a table.

Upload your Excel file to the Power BI service

The Power BI service connects to many data sources, including Excel files that live on your computer.

  1. To get started, sign in to the Power BI service. If you haven’t signed up, you can do so for free.

  2. In My workspace, select New > Report.

    Screenshot of My workspace, highlighting the New dropdown menu and the New report option.

  3. Select Excel.

    Screenshot of My Workspace, highlighting the Excel data source option.

  4. Select Upload file, and drag or browse to the Excel file location.

    Screenshot of the Power Query dialog, highlighting the Connect to data source dialog box.

    Now you have a Financial Sample semantic model. Power BI also automatically created a blank dashboard. If you don't see the dashboard, refresh your browser.

  5. If you aren't signed in, you need to sign in before you can upload the Excel file. Select Next.

  6. In the Power Query Choose data window, select the financials table in the Excel workbook, and select Create.

    Screenshot of Power Query Choose data window, select the financials table.

Build your report

The report opens in Editing view and displays the blank report canvas. On the right are the Filters, Visualizations, and Data panes. Your Excel workbook table data appears in the Data pane. At the top is the name of the table, financials. Under that, Power BI lists the column headings as individual fields.

Notice the Sigma symbols in the Data list? Power BI has detected that those fields are numeric. Power BI can also detect geographic fields and date fields.

Screenshot of the Data pane, showing Excel columns as fields in the financials table.

  1. To have more room for the report canvas, minimize the Filters pane.

  2. Now you can begin to create visualizations. Let's say your manager wants to see profit over time. In the Data pane, drag Profit to the report canvas.

    By default, Power BI displays a column chart with one column.

    Screenshot of a column chart with one column.

  3. Drag Date to the column chart.

    Power BI updates the column chart to show profit by years.

    Screenshot of a column chart by year in report editor.

  4. Hover over the chart and select the forked double arrows to show quarters, then select them again to show months.

    Screenshot of a column chart by month in report editor.

    December 2014 was the most profitable month.

    Tip

    If your chart values don't look as you expect, check your aggregations. For example, in the Values well, select the Profit field you just added and make sure the data is being aggregated the way you want. In this example, we're using Sum.

Create a map

Your manager wants to know which countries/regions are the most profitable. Impress your manager with a map visualization.

  1. Select a blank area on your report canvas.

  2. From the Data pane, drag the Country field to your report canvas, then drag the Profit field to the map.

    Power BI creates a map visual with bubbles representing the relative profit of each location.

    Screenshot of map visual in report editor.

    You can see that the European and the North American region profits are about the same.

Create a visual showing sales segments

What about displaying a visual showing sales by product and market segment? That's easy.

  1. Select the blank canvas.

  2. In the Data pane, select the Sales, Product, and Segment fields.

    Power BI creates a clustered column chart.

    Screenshot of a clustered column chart in the report editor.

  3. Change the type of chart by choosing one of the icons in the Visualizations menu. For instance, change it to a Stacked column chart.

    Screenshot of a stacked column chart in the report editor.

  4. To sort the chart, select More options (...) > Sort by.

Spruce up the visuals

Make the following changes on the Format tab in the Visualizations pane.

Screenshot of the Format tab in the Visualizations pane.

  1. Select the Profit by Year, Quarter, Month, and Day column chart. In the Title section, change Text size to 16 pt. Toggle Shadow to On.

  2. Select the Sales by Product and Segment stacked column chart. In the Title section, change title Text size to 16 pt. Toggle Shadow to On.

  3. Select the Profit by Country map. In the Map styles section, change Theme to Grayscale. In the Title section, change title Text size to 16 pt. Toggle Shadow to On.

Add a report title

  1. Select the Text box option.

  2. Drag the box to the upper-left corner. Type "Worldwide Sales" in the box.

    Screenshot of creating a text box in the report.

  3. Select the text, and make the Font size 36.

    Screenshot of formatting the title in the report.

Pin to a dashboard

You can pin all of your visuals to the blank dashboard that Power BI created by default.

  1. Hover over a visual and select Pin visual.

    Screenshot of a visual, highlighting the Pin visual icon.

  2. You must save your report before you can pin a visual to the dashboard. Give your report a name and select Save.

  3. Pin each visual to the dashboard that Power BI created, Financial Sample.xlsx.

  4. When you pin the last visual, select Go to dashboard.

  5. Power BI added a placeholder Financial Sample.xlsx tile to the dashboard automatically. Select More options (...) > Delete tile.

    Screenshot of More options for a tile.

  6. Rearrange and resize the tiles any way you want.

The dashboard and report are ready.

Now it's time to share your dashboard with your manager. You can share your dashboard and underlying report with any colleague who has a Power BI account. They can interact with your report, but they can't save changes. If you allow it, they can reshare with others or build a new report based on the underlying semantic model.

  1. To share your report, at the top of the dashboard, select Share.

    Screenshot of My workspace, highlighting the Share icon.

  2. In the Share dashboard screen, enter the email addresses of the recipients in the Enter a name or email addresses field and add an optional message.

  3. Select the option to Send an email notification. Choose any other options you want:

    • Allow recipients to share this dashboard
    • Allow recipients to build content with the data associated with this dashboard

    Screenshot of the Share dashboard pane, with all options selected.

  4. Select Grant access.

Share to Microsoft Teams

You can also share reports and dashboards directly to your colleagues in Microsoft Teams.

  1. To share in Teams, at the top of the dashboard, select Chat in Teams.

    Screenshot of My workspace, highlighting the Chat in Teams option.

  2. Power BI displays the Share to Teams dialog. Enter the name of a person, group, or channel and select Share.

    Screenshot of the Share to Teams dialog box.

  3. The link appears in the Posts for that person, group, or channel.

    Screenshot of an example post in Microsoft Teams.

More questions? Try the Power BI Community.