How to Create a PBIX File from Excel Data in Power BI

Cody Schneider8 min read

Turning a static Excel spreadsheet into an interactive Power BI report is one of the best ways to start bringing your data to life. This process involves connecting your Excel data to Power BI Desktop and saving your work inside a special project file. This tutorial will guide you step-by-step through creating your first PBIX file directly from your Excel data.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

What Exactly is a PBIX File?

Before you build one, it helps to know what a PBIX file actually is. Simply put, a .pbix file is the native file format for a Power BI Desktop project. Think of it like a .docx for Microsoft Word or a .xlsx for Excel. It’s a self-contained package that bundles everything related to your report into a single file.

Here’s a quick breakdown of what’s stored inside a PBIX file:

  • Data Connections: The link and instructions on how to access your source data (in this case, your Excel file).
  • Data Model: When you start using multiple tables, this is where Power BI stores the relationships between them.
  • Query Transformations: Every step you take to clean, shape, and prepare your data in the Power Query Editor is saved. This means your data cleaning is repeatable and automatic.
  • Calculations (DAX): Any custom calculations, measures, or columns you create using the DAX formula language are stored here.
  • The Report Itself: All your report pages, charts, graphs, slicers, and formatting choices live inside the PBIX file.

This all-in-one format makes it incredibly easy to save your progress, share your report with other Power BI Desktop users, and serve as a backup for your work.

Step 1: Get Your Excel Data Ready for Power BI

This is honestly the most critical step. Garbage in, garbage out. A well-structured Excel file will make your life in Power BI a thousand times easier. An unorganized one will cause countless headaches.

Spend a few minutes prepping your spreadsheet by following these best practices.

Format Your Data as a Table

This is non-negotiable. Don’t just import a plain worksheet. Formatting your data range as an official Excel Table is superior for several reasons:

  • It’s Dynamic: When you add new rows or columns, the table automatically expands. In Power BI, you just have to hit "Refresh" to get the new data, instead of constantly adjusting the source range.
  • It Has Named Headers: Tables require clear, unique headers for each column, which Power BI uses for field names.

How to do it: Click anywhere inside your data range, go to the Insert tab in Excel, and click Table. Check the box for "My table has headers" and click OK. Don’t forget to give your table a descriptive name in the "Table Name" box under the Table Design tab that appears.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Follow Tidy Data Principles

For data tools to work efficiently, your data should be "tidy." This means:

  • Each column represents a distinct variable (e.g., 'Date', 'Product', 'Revenue', 'Units Sold').
  • Each row represents a single observation (e.g., a specific sale on a specific date).
  • Don’t use merged cells for headers or data. Power BI hates merged cells. Unmerge them.
  • Remove any columns and rows that are completely empty.
  • Ensure each column contains only ONE type of data. The 'Date' column should only have dates, and the 'Revenue' column should only have numbers.

Putting in a little effort to structure your Excel file correctly will save you from wrestling with the data later in Power BI.

Step 2: Connect to Your Excel File in Power BI Desktop

With your sparkling clean Excel file ready and saved, it’s time to fire up Power BI Desktop. If you don't have it installed, you can download it for free from the Microsoft Store.

Follow these steps to import your data:

1. Get Data from an Excel Workbook

On the Power BI Desktop welcome screen, you’ll likely see a direct link to "Import data from Excel." You can click that, or use the main method from the ribbon: go to the Home tab, click the Get Data dropdown, and select Excel Workbook.

2. Select Your Excel File

An "Open file" dialog box will appear. Navigate to where you saved your Excel file, select it, and click Open.

3. Use the Navigator Window

Next, Power BI will show you the Navigator window. This displays all the possible data sources within your Excel file, including both worksheets (represented by a sheet icon) and any Tables you created (represented by a blue-headered table icon).

This is important: Always select the Table you created in the prep step. Do not select the worksheet. Clicking on the table name will show you a preview of the clean data on the right-hand side.

Check the box next to your table name.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

4. Choose “Transform Data”

At the bottom of the Navigator window, you’ll see two options: Load and Transform Data.

  • Load: This option loads the data directly into your Power BI report as-is. You should only use this if you are 100% certain your data is perfectly clean and requires no changes.
  • Transform Data: This is the button you want 99% of the time. It opens the Power Query Editor, which is the data cleaning and preparation powerhouse within Power BI.

Click Transform Data. This is a best practice that gives you a chance to double-check data types, remove unneeded columns, and make other adjustments before building your report.

Step 3: Shape Your Data in the Power Query Editor

The Power Query Editor is where you can further refine your data without changing your original Excel file. Every change you make here is recorded as a step in the "Applied Steps" window on the right. When you refresh your data, Power BI re-runs all these steps automatically.

Even if your data is clean, it's good practice to quickly check a few things here:

  1. Check Data Types: Power Query is pretty good at guessing data types, but it's worth verifying. Look at the icon next to each column header. Make sure numbers have a '123' icon, dates have a calendar icon, and text has an 'ABC' icon. If one is wrong, click the icon to change it.
  2. Remove Unnecessary Columns: Do you have columns you know you won't need for your analysis? Right-click the column header and select Remove. This keeps your data model lean and fast.
  3. Rename Columns: If you want to change a column's name, just double-click its header and type a new name.

Once you are happy with how your data looks, click the Close & Apply button in the top-left corner of the Power Query Editor. Power BI will then apply your transformation steps and load the data into your report model.

Step 4: Build a Simple Visualization

Now for the fun part! On the main report canvas, you'll see your data table and its columns in the Data pane on the right-hand side.

Let’s build a quick chart to make sure everything is working:

  1. In the Visualizations pane, click on the icon for a Stacked column chart. A blank visual will appear on your report canvas.
  2. From your table in the Data pane, find a categorical field (like 'Product Category' or 'Country') and drag it into the X-axis field well in the Visualizations pane.
  3. Next, find a numeric field (like 'Sales Amount' or 'Quantity') and drag it into the Y-axis field well.

Just like that, you should see a chart appear on your screen, visualizing your Excel data. You can now resize it, change its colors, and add more visuals to your report page.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Step 5: Save Your Report as a PBIX File

You’ve connected your data, transformed it, and built your first visual. The final step is to save your work.

Go to File in the top-left corner and click Save As. Choose a location on your computer, give your file a descriptive name (e.g., "Q3-Sales-Report.pbix"), and click Save.

That's it! You have now officially created a PBIX file. This single file contains everything you just did – the connection to your Excel workbook, all your Power Query steps, and the charts you built. You can now close Power BI, re-open that file later, and pick up right where you left off. When your Excel data gets updated, just open your PBIX file and click the "Refresh" button on the Home ribbon to pull in all the new information.

Final Thoughts

You have now learned the entire workflow for turning an Excel file into a dynamic Power BI report. By properly preparing your source data, connecting to it correctly, and saving your project as a PBIX file, you’ve built a repeatable and powerful reporting foundation that blows static spreadsheets out of the water.

While Power BI is a fantastic tool once everything is set up, there can still be a steep learning curve in transforming data, building models, and writing formulas. We built Graphed because we wanted to get to the insights without all the time-consuming setup. Instead of manual data connectors and drag-and-drop report builders, you can simply connect your data sources and tell Graphed what you want to see in plain English. Graphed automatically builds live, interactive dashboards in a matter of seconds, turning hours of tedious report building into a quick conversation.

Related Articles