Wicked Smart Data
LearnInsightsAboutContact
Sign InLet's Build
LearnInsightsAboutContact
Sign InLet's Build
Wicked Smart Data

Intelligence, automation, and expert execution — plus an elite library of free knowledge. We turn complexity into competitive advantage.

Start a conversation

Platform

  • Learning Paths
  • Insights
  • RSS Feed

Company

  • About
  • Contact
  • Work With Us

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Wicked Smart Data. All rights reserved.

Intelligence · Automation · Advantage

All Insights
Power BI

Connecting Power BI to a Live Excel Workbook and Keeping Your Report Updated Automatically

Most organizations run on Excel spreadsheets, but those spreadsheets don't automatically become dashboards. Learn exactly how to connect Power BI to a live Excel file, shape the data in Power Query, and configure scheduled refresh so your report stays current without manual intervention.

⚡ Practitioner26 min readDec 3, 2026Updated Dec 3, 2026
Connecting Power BI to a Live Excel Workbook and Keeping Your Report Updated Automatically
On this page
  • Introduction
  • Prerequisites
  • Why File Location Is the Most Important Decision You'll Make
  • Structuring Your Excel Workbook for Reliable Connections
  • Connecting Power BI Desktop to Your Excel File
  • Getting the Right URL for a OneDrive-Backed File
  • Shaping Your Excel Data in Power Query
  • Writing a "Last Refreshed" Measure
  • Publishing to Power BI Service
  • Configuring Scheduled Refresh for a Cloud-Hosted Excel File
  • Setting Up the On-Premises Gateway (For Local or Network Files)
  • Configuring Refresh Failure Alerts
  • Incremental Refresh Considerations
  • Hands-On Exercise
  • Common Mistakes & Troubleshooting
  • Summary & Next Steps

Connecting Power BI to a Live Excel Workbook and Keeping Your Report Updated Automatically

Introduction

Here's a scenario that plays out in organizations every day: your finance team maintains a master Excel workbook — maybe it's a sales tracker, a budget model, or a project pipeline — and they update it every morning before the 9 AM standup. Your job is to surface that data as a Power BI dashboard that stakeholders can check on their own. The problem? Every time the Excel file changes, your report goes stale. You end up either manually refreshing it yourself, or worse, your audience is making decisions based on yesterday's numbers.

This is one of the most common and most fixable pain points for Power BI practitioners. The connection between Excel and Power BI is deceptively simple on the surface — you point Power BI at a file and import the data — but getting that connection to stay alive and refresh automatically involves a handful of moving parts that trip people up: file location, storage mode, gateway configuration, and scheduled refresh settings. Get any one of them wrong and your report quietly goes stale without telling anyone.

By the end of this lesson, you'll know exactly how to set up a robust, automatically refreshing Power BI report backed by a live Excel workbook. You'll understand why certain choices (like where you save the file) have downstream consequences, and you'll be able to configure scheduled refresh in Power BI Service so the data updates on a schedule your team can rely on.

What you'll learn:

  • How to structure your Excel workbook so Power BI connects to it reliably
  • The difference between connecting to a local file vs. a OneDrive/SharePoint file and why it matters for refresh
  • How to use Power Query to shape and validate your Excel data before it hits your model
  • How to publish your report to Power BI Service and configure scheduled refresh
  • How to set up and configure a data gateway when your file lives on a network or local drive
  • How to test, monitor, and troubleshoot refresh failures before they affect your stakeholders

Prerequisites

You should be comfortable navigating Power BI Desktop and have done at least one data import before. If you haven't connected to any data source yet, start with Connecting to Data Sources in Power BI Desktop: Excel, CSV, SQL, and Web — A Complete Beginner's Guide first. You'll also want a Power BI Pro or Premium Per User license to publish and configure refresh in Power BI Service — the free tier doesn't support scheduled refresh for most scenarios.

A Microsoft 365 account with access to OneDrive for Business or SharePoint is strongly recommended for this lesson's primary approach. We'll also cover the on-premises gateway path for teams that must keep files on a local or network drive.


Why File Location Is the Most Important Decision You'll Make

Before you open Power BI Desktop, you need to make a decision that will shape everything downstream: where does the Excel file live?

This isn't just a file management preference. Power BI's ability to refresh your data automatically depends entirely on whether the Power BI Service — running in Microsoft's cloud — can reach your file at refresh time. If the file lives on your laptop's C: drive, the cloud service has no way to access it when you're not connected. If it lives on a mapped network drive, same problem.

You have three realistic options:

Option A: OneDrive for Business or SharePoint Online This is the recommended path for most teams. The file lives in the cloud, Power BI Service can reach it at any scheduled time, and no gateway is required. Changes your team makes to the file are immediately accessible at the next refresh.

Option B: Local or network drive with an on-premises data gateway If your organization requires the file to stay on a local server or network share, you'll install the Power BI gateway on a machine that has persistent access to that location. The gateway acts as a secure bridge between Power BI Service and your on-premises file. This works well but adds infrastructure complexity. We'll cover this path later in the lesson.

Option C: Local file, manual refresh only You import the data into Power BI Desktop, and you manually hit Refresh whenever you want updated data. This is fine for one-off analysis but completely unsuitable for a report your team depends on daily.

Key insight

The file location decision is irreversible without rebuilding your data source connection. If you start with a local file and later move it to SharePoint, Power BI won't automatically find it — you'll need to update the source path in Power Query. Make this decision before you build anything.

For this lesson, we'll work primarily with the OneDrive for Business path because it's the cleanest and most common production scenario. We'll explicitly flag where the gateway path diverges.


Structuring Your Excel Workbook for Reliable Connections

Power BI can connect to raw Excel worksheets, named ranges, or Excel Tables (the proper Ctrl+T kind). Of these, Excel Tables are almost always the right choice, and here's why: when someone adds a new row to an Excel Table, the table boundary automatically expands. When Power BI imports that table, it picks up every row that exists at the time of refresh — no manual range adjustment required. With a plain worksheet range, you'd have to either hard-code the row count or write a dynamic named range formula to handle growth.

Let's say we're working with a sales pipeline workbook. It has three sheets:

  • Opportunities — one row per deal, with columns for Opportunity ID, Account Name, Stage, Owner, Expected Close Date, Deal Value, and Region
  • Accounts — a lookup table of Account ID, Account Name, Industry, and Account Manager
  • Config — a single-cell named range called LastRefreshed that the Excel team updates manually with a timestamp

Here's how to set this up correctly in Excel:

  1. Click anywhere inside your Opportunities data, then press Ctrl+T to convert it to a Table. Name it tbl_Opportunities in the Table Design tab (keep the prefix — it makes it immediately obvious what you're working with in Power Query).
  2. Do the same for the Accounts sheet: convert to a Table and name it tbl_Accounts.
  3. For the Config sheet, select the timestamp cell and define a named range called LastRefreshed using the Name Box (the box to the left of the formula bar).
  4. Save the workbook to OneDrive for Business. The URL structure you're looking for looks like: https://yourorg-my.sharepoint.com/personal/yourname/Documents/SalesPipeline.xlsx

Tip

Avoid spaces in the Excel Table names. Power Query will handle them, but tbl_Opportunities is cleaner to reference in M code than tbl Opportunities. Also avoid special characters in column headers — Power Query will auto-replace them with underscores, which can cause confusion if headers change between refreshes.

One more structural point: if your workbook has a header row that changes — say, someone adds or renames a column — Power Query will throw a schema error at refresh time. This is a real operational risk with spreadsheets that multiple people edit. We'll cover how to handle this gracefully in the troubleshooting section.


Connecting Power BI Desktop to Your Excel File

Open Power BI Desktop and go to Home > Get Data > Excel Workbook. Navigate to the file or, if it's on OneDrive, we're going to use a slightly different approach that gets us the persistent cloud URL.

Getting the Right URL for a OneDrive-Backed File

When you save an Excel file to OneDrive for Business, it has a URL you can use as a data source. Here's how to get it:

  1. Open your browser and navigate to the file in OneDrive.
  2. Right-click the file and choose Copy link or open it and grab the URL from your browser's address bar.
  3. The raw URL will look something like: https://yourorg-my.sharepoint.com/:x:/g/personal/yourname/EVXXX...

That URL with the :x:/g/ encoding is the sharing link — it's not what Power BI wants. What you need is the direct download URL. There's a simple way to get it:

Take the sharing URL and modify it:

  • Remove the :x:/g/ portion
  • Change the ending from ...?e=XXXX to nothing, and append ?download=1

The cleaner approach that avoids this URL surgery altogether is to connect through Power BI's native SharePoint/OneDrive connector:

  1. In Power BI Desktop, go to Home > Get Data > More...
  2. Search for "SharePoint" and select SharePoint Online List — actually, for files you want Web connector or the dedicated SharePoint folder connector.

Warning

Don't use the Excel file connector pointing to a OneDrive URL directly if you want scheduled refresh to work without a gateway. Use the SharePoint folder connector or the Web connector with the proper direct-access URL. The standard Excel file dialog is designed for local files; using it with a OneDrive URL will work in Desktop but fail to refresh in Service without a gateway.

The most reliable production approach is:

  1. Go to Get Data > More > Online Services > SharePoint Online List — wait, that's for SharePoint lists. For Excel files in SharePoint/OneDrive, use Get Data > More > Other > SharePoint Folder.
  2. Enter the root URL of your SharePoint site or OneDrive (just the base, like https://yourorg-my.sharepoint.com/personal/yourname).
  3. Power Query will show you all files in that location. Filter to your specific workbook.
  4. Click the [Table] link next to your file to drill into it, then select the specific tables you want.

Alternatively — and this is the method many practitioners find simpler — use the Web connector with the direct file URL:

  1. Go to Get Data > Web.
  2. Paste in the direct URL to your Excel file (you can get this by going to the file in OneDrive, clicking the three-dot menu, and choosing "Open in app" then copying the URL that ends in .xlsx).
  3. Power BI will recognize it as an Excel workbook and present the Navigator dialog just like a local file.

For the Navigator dialog:

  1. Expand your workbook in the left panel.
  2. Check tbl_Opportunities and tbl_Accounts.
  3. Check Transform Data rather than Load — you should almost always transform before loading.

Shaping Your Excel Data in Power Query

This is where most tutorials skip the most important part. Raw Excel data almost always needs at least some cleanup before it's ready to model. The Mastering Power Query in Power BI: Transforming, Cleaning, and Shaping Data Before It Hits Your Model lesson covers this in depth, but let's work through what you'd typically need for our sales pipeline scenario.

When you open Power Query Editor with the tbl_Opportunities table, you'll likely see:

  1. Column types that need correcting. Excel may store Deal Value as text if anyone ever typed a note in that column. Expected Close Date might come through as a decimal number (Excel's internal date serial) if the column formatting isn't clean. Click each column header, go to the Data Type dropdown in the Transform tab, and explicitly set types: Whole Number for Deal Value, Date for Expected Close Date, Text for everything else categorical.

  2. A "Changed Type" step that's too fragile. Power Query's auto-generated type-change step often references column names by position rather than name. If a column gets inserted into the Excel table, the step breaks. To fix this, delete the auto-generated Changed Type step and add your own by right-clicking each column header and choosing "Change Type."

  3. Blank rows at the bottom. Excel users sometimes have stray data or formatting below the actual table. Add a filter step: on the Opportunity ID column, filter to remove nulls and blanks.

Here's what a clean M query for the Opportunities table should look like:

let
    Source = SharePoint.Files("https://yourorg-my.sharepoint.com/personal/yourname", [ApiVersion = 15]),
    FilteredFiles = Table.SelectRows(Source, each [Name] = "SalesPipeline.xlsx"),
    FileContent = FilteredFiles{0}[Content],
    WorkbookData = Excel.Workbook(FileContent, null, true),
    tbl_Opportunities_Sheet = WorkbookData{[Item="tbl_Opportunities",Kind="Table"]}[Data],
    RemovedBlanks = Table.SelectRows(tbl_Opportunities_Sheet, each [Opportunity ID] <> null and [Opportunity ID] <> ""),
    ChangedTypes = Table.TransformColumnTypes(RemovedBlanks, {
        {"Opportunity ID", type text},
        {"Account Name", type text},
        {"Stage", type text},
        {"Owner", type text},
        {"Expected Close Date", type date},
        {"Deal Value", type number},
        {"Region", type text}
    })
in
    ChangedTypes

Tip

The true parameter in Excel.Workbook(FileContent, null, true) tells Power Query to use the first row as headers. If your Excel table already has proper headers and you're connecting to a named Table (not a raw sheet), this usually isn't needed — but it doesn't hurt to include it as a safety net.

After shaping both tables, close and apply. Power BI will load the data into the model.

At this point, you should set up a relationship between tbl_Opportunities and tbl_Accounts on the Account Name column (or better yet, an Account ID if your data has one — text joins are slower and more fragile than integer key joins). This is standard data modeling work — the star schema design principles apply here just like any other source.


Writing a "Last Refreshed" Measure

One thing your stakeholders will immediately want to know: when was this data last updated? You can surface this directly in your report using a DAX measure.

If you imported the LastRefreshed named range from your Excel Config sheet, it will appear as a single-row, single-column table. Create a measure that reads from it:

Last Data Refresh = 
VAR RefreshTimestamp = SELECTEDVALUE('LastRefreshed'[LastRefreshed])
RETURN
    IF(
        ISBLANK(RefreshTimestamp),
        "Timestamp not available",
        "Data as of: " & FORMAT(RefreshTimestamp, "MMM DD, YYYY h:MM AM/PM")
    )

Place this as a Card visual in your report header. Now stakeholders know immediately whether the data reflects this morning's updates.

Alternatively, Power BI itself tracks when the dataset was last refreshed. After publishing to Service, you can reference this through the dataset's Last refresh metadata — but surfacing that in a visual requires a different approach (typically using an API or dataflow). The Excel-sourced timestamp is simpler and keeps everything in one place.


Publishing to Power BI Service

Once your data model is set up and you have at least a basic report page, publish to Power BI Service. If you've never done this before, the Publishing and Sharing Reports in Power BI Service lesson walks through the full process.

The quick version:

  1. Go to Home > Publish in Power BI Desktop.
  2. Sign in to your Power BI account if prompted.
  3. Choose the workspace you want to publish to (don't publish to "My Workspace" for anything a team will use — use a dedicated workspace).
  4. Wait for the publish to complete. Power BI Desktop will confirm success and give you a link to open the report in the browser.

After publishing, open the Power BI Service in your browser. You'll see both a Report and a Dataset (now called a Semantic Model in newer Power BI versions) in your workspace. The report is the visualization layer. The semantic model is the data, and it's the semantic model that gets refreshed.

Note

When you publish from Desktop, the data that was in your model at publish time is what the Service initially shows. The first scheduled refresh will pull fresh data from your Excel source. This means your report might show slightly stale data for a few hours if you publish at an unusual time — just be aware of this and communicate it to stakeholders.


Configuring Scheduled Refresh for a Cloud-Hosted Excel File

This is the step that transforms a static published report into a living dashboard. In Power BI Service:

  1. Go to your workspace and find the Semantic Model (not the report).
  2. Click the three-dot menu next to it and choose Settings.
  3. Expand the Refresh section.
  4. Toggle on Scheduled refresh.
  5. Set the Refresh frequency — you can choose Daily or Weekly.
  6. Add specific Times — Power BI lets you schedule up to 8 refreshes per day on Pro, and up to 48 on Premium.
  7. Set the Time zone to match your team's location. This is easy to overlook and causes confusion when "8 AM refresh" runs at the wrong time.
  8. Click Apply.

For our sales pipeline scenario, you might set up refreshes at 7:30 AM and 1:00 PM — once before the morning standup, once after lunch when deals are likely updated.

Warning

Scheduled refresh does not guarantee your report reflects real-time changes. If someone updates the Excel file at 10 AM and your next refresh isn't until 1 PM, your report will show pre-10 AM data until then. For truly real-time requirements, you'd need a different architecture (DirectQuery against a SQL source, for example, or streaming datasets). Excel as a source is fundamentally an import mode scenario.

You should also expand Data source credentials in the same Settings panel. Power BI needs to authenticate to your SharePoint/OneDrive location. Click Edit credentials and sign in with your organizational account that has access to the file. If this step is skipped, every scheduled refresh will fail with an authentication error.


Setting Up the On-Premises Gateway (For Local or Network Files)

If your Excel file must live on a local drive or a mapped network share — a common requirement in regulated industries — you need the on-premises data gateway. The Power BI Gateway: Complete Guide to Connecting On-Premises Data to the Cloud lesson covers this thoroughly, but here's the essential workflow:

  1. Choose the right gateway machine. The gateway needs to run on a machine that:

    • Has persistent access to the Excel file location (a file server works well; a laptop does not)
    • Is always on during scheduled refresh windows
    • Has a stable internet connection
    • Runs Windows (the gateway is a Windows application)
  2. Download and install the gateway. In Power BI Service, go to the gear icon > Manage connections and gateways > New > Data Gateway. Download the installer and run it on your designated machine.

  3. Register the gateway. During setup, sign in with your Power BI account. Give the gateway a memorable name. The gateway will appear as an available resource in your Power BI Service tenant.

  4. Add your data source to the gateway. In Power BI Service under Manage connections and gateways, find your gateway and add a new data source. Choose File as the type and provide the full UNC path to your Excel file (like \\fileserver01\reports\SalesPipeline.xlsx). Enter the Windows credentials that have read access to that path.

  5. Associate your semantic model with the gateway. In your dataset Settings in Power BI Service, under Gateway connection, select your gateway and the data source you just created.

After this, scheduled refresh will route through the gateway to your on-premises file. The gateway machine must be online when each refresh runs — if it's offline, the refresh fails and you'll get a notification email (if you've configured refresh failure alerts, which we'll cover next).

Key insight

The gateway model is powerful but it introduces a single point of failure: the gateway machine itself. In production environments, run the gateway on a server with UPS power backup and automatic restart policies, not on a shared workstation that might be rebooted mid-refresh or powered down overnight.


Configuring Refresh Failure Alerts

Scheduled refresh can fail for many reasons — the Excel file was locked by another user, credentials expired, the file was moved, the gateway went offline. Without alerts, these failures are invisible until a stakeholder notices stale data.

In Power BI Service, on your semantic model's Settings page, look for Data refresh failure notifications. Enable it and add email addresses — typically yourself and whoever owns the report. Power BI will send an email within minutes of a refresh failure, including an error message that often tells you exactly what went wrong.

You can also set up Data-driven alerts on specific visuals (like a Card showing total pipeline value) to notify stakeholders if the number drops below an unexpected threshold — but that's a monitoring feature rather than a refresh feature.


Incremental Refresh Considerations

For small-to-medium Excel files (under a few hundred thousand rows), full refresh on every cycle is fine. But if your workbook is large, refreshing the entire dataset every time is wasteful and slow.

Power BI supports incremental refresh strategies for certain data sources, but Excel is not one of the ideal candidates — it doesn't natively support query folding, which is the mechanism that makes incremental refresh efficient. For large Excel files, you have better options:

  • Break the Excel data into smaller date-partitioned files (e.g., one file per month), then use a SharePoint folder connector to union them. Configure incremental refresh on the date partition column.
  • Migrate the data to a SQL database or Dataverse if it's genuinely large and frequently updated. Excel wasn't designed to be a database.
  • Use Power BI Dataflows to stage the Excel data in Power BI Service's storage layer, then connect your reports to the dataflow instead of the raw Excel file. This separates the ETL from the reporting layer and is a more scalable pattern.

Tip

If the Excel file is under 10 MB and refreshes take less than 2 minutes, don't overthink it. Full refresh works fine at this scale. Only invest in more complex refresh architecture when you're actually hitting performance or timeout problems.


Hands-On Exercise

Let's build the complete pipeline from scratch. By the end of this exercise, you'll have a live-refreshing report backed by a real Excel workbook.

Step 1: Create and structure the Excel workbook

Create a new Excel workbook called SalesPipeline.xlsx. Add the following data to Sheet1 and convert it to an Excel Table named tbl_Opportunities:

Opportunity ID Account Name Stage Owner Expected Close Date Deal Value Region
OPP-001 Meridian Logistics Proposal Sarah Chen 2025-03-15 45000 Northeast
OPP-002 Harbor Financial Negotiation James Wu 2025-02-28 128000 West
OPP-003 Summit Retail Group Qualified Sarah Chen 2025-04-10 32000 Southeast
OPP-004 Apex Manufacturing Closed Won David Torres 2025-01-31 89000 Midwest
OPP-005 Bluewater Tech Discovery Maria Santos 2025-05-20 210000 West

Add a second sheet, name it Config, and in cell A1 type today's date. Name that cell LastRefreshed using the Name Box.

Save this file to your OneDrive for Business Documents folder.

Step 2: Connect Power BI Desktop

  1. Open Power BI Desktop and select Get Data > More > Other > SharePoint Folder.
  2. Enter your OneDrive root URL.
  3. In the Navigator, filter to SalesPipeline.xlsx and drill in to tbl_Opportunities.
  4. Click Transform Data.

Step 3: Clean the data in Power Query

In Power Query Editor:

  1. Remove any blank rows using a filter on Opportunity ID.
  2. Set explicit column types: Opportunity ID → Text, Deal Value → Whole Number, Expected Close Date → Date, all others → Text.
  3. Rename the query to Opportunities (remove the tbl_ prefix — it's useful in Excel but redundant in Power BI where you can see the query type).
  4. Close and Apply.

Repeat the process to also bring in the LastRefreshed named range from the Config sheet.

Step 4: Build a minimal report

Create three visuals on a single report page:

  • A Card showing Sum of Deal Value — format it as currency
  • A Bar chart with Stage on the axis and Deal Value as the value
  • A Card using your Last Data Refresh measure to show the timestamp

If you want to add slicers to filter by Region or Owner, the Master Filters, Slicers, and Cross-Filtering in Power BI lesson will show you exactly how.

Step 5: Publish and configure refresh

  1. Publish to your Power BI workspace.
  2. In Power BI Service, go to the semantic model settings and configure a scheduled refresh for 8:00 AM daily.
  3. Update the data source credentials with your organizational account.
  4. Enable refresh failure email notifications.

Step 6: Validate the refresh

Go back to your Excel file and add a new row to tbl_Opportunities — a new deal for a fictitious account. Update the LastRefreshed cell to now. Save the file.

Trigger a manual refresh in Power BI Service (go to the semantic model's three-dot menu and choose Refresh now). Watch the refresh status indicator. After it completes (typically 30–90 seconds for a small file), open the report — your new row and updated timestamp should be visible.


Common Mistakes & Troubleshooting

"The refresh works in Desktop but fails in Service with an authentication error." This almost always means the data source credentials in Service weren't set. Go to the semantic model's Settings > Data source credentials > Edit credentials. Sign in with your organizational account that has access to the SharePoint/OneDrive location.

"The refresh succeeds but the report shows the same old data." Check that you're looking at the report in Power BI Service and not a cached local version. Also verify that the Power Query source step is pointing to the cloud file URL, not a local path. If the Desktop source was a local file, the Service will not be able to reach it and the refresh silently falls back to the last successful state — except it doesn't, it actually fails. If you're not seeing a failure notice, re-examine your semantic model settings.

"Columns are suddenly appearing or disappearing after the Excel file was updated." Someone changed the structure of the Excel Table — added, removed, or renamed a column. In Power Query, your Changed Type steps reference column names explicitly. If a column is renamed, that step will error. The fix: in Power Query Editor, review each step in the Applied Steps panel, find the step throwing an error, and update the column name references. Consider adding a step that explicitly selects only the columns you care about — this makes your query resilient to extra columns being added to the Excel table.

// Add this step after RemovedBlanks to select only expected columns
SelectedColumns = Table.SelectColumns(RemovedBlanks, {
    "Opportunity ID", "Account Name", "Stage", 
    "Owner", "Expected Close Date", "Deal Value", "Region"
})

This technique makes your pipeline "schema-tolerant" — extra columns are ignored, and if an expected column is missing, you get a clear error rather than a silent data quality problem.

"The file keeps getting locked and the refresh fails with 'file in use' errors." Excel files in OneDrive can get locked when someone has them open in the Excel desktop app (as opposed to Excel Online). OneDrive uses a co-authoring model that generally handles concurrent access well, but sometimes the lock persists. Encourage your team to use Excel Online for routine edits — it doesn't lock the file the way the desktop app does. Alternatively, schedule your refresh window for when the file is likely to be idle.

"The gateway shows as offline in Power BI Service." The gateway service on the host machine has stopped. Connect to the gateway machine, open the Power BI Gateway application (search for it in the Start menu), and restart the service. Then verify the status turns green in Power BI Service. Set the gateway Windows service to restart automatically after failure — open Services (services.msc), find "On-premises data gateway service," right-click > Properties > Recovery tab, and set all failure responses to "Restart the service."

Warning

Never store Power BI gateway credentials on a machine that gets reimaged or replaced without first documenting and re-registering the gateway. If the gateway machine disappears, all datasets using it will stop refreshing. Keep a runbook documenting which machine hosts your gateways and how to reinstall them.

"The report shows #ERROR in the Last Data Refresh card." Your DAX measure is probably returning an error because the LastRefreshed table is empty or the data type is wrong. In Power Query, verify that the LastRefreshed named range is coming through as a date/datetime value, not as text. If Excel has it formatted as General rather than Date, Power Query may bring it through as a number (Excel's internal date serial). Add an explicit type conversion step: = Table.TransformColumnTypes(Source, {{"LastRefreshed", type datetime}}).


Summary & Next Steps

You've now built a complete pipeline from a live Excel workbook to an auto-refreshing Power BI report. The key decisions you've made — cloud file location, Excel Table structure, explicit Power Query type handling, gateway vs. cloud connector, and scheduled refresh configuration — are the same decisions you'll make for every Excel-backed report you build in production.

Here's the mental model to keep: Power BI is the visualization and analysis layer; Excel is the data entry layer; Power Query is the bridge that transforms raw spreadsheet data into a clean model; and scheduled refresh is the heartbeat that keeps everything synchronized. When something breaks, the problem is almost always in the bridge (Power Query source path or credentials) or the heartbeat (refresh configuration or gateway status).

Where to go from here:

  • If your stakeholders want to interact with the report — filtering by region, drilling into specific deals — the Master Filters, Slicers, and Cross-Filtering in Power BI lesson will show you how to build that experience.
  • When you're ready to share this report with people outside your immediate team, Publishing and Sharing Reports in Power BI Service covers workspace permissions, app distribution, and guest access.
  • If your Excel data needs more complex calculations — things like deal velocity, weighted pipeline, or period-over-period comparisons — start with Introduction to DAX: Writing Your First Calculated Columns and Measures in Power BI.
  • If this workbook is one of several data sources you need to combine into a single model, understanding Power BI storage modes and when to use Import vs. DirectQuery will help you make the right architectural choices as your model grows.

The Excel-to-Power BI pipeline is one of the most valuable skills you can have as a data practitioner. Most organizations run on spreadsheets, and knowing how to turn those spreadsheets into reliable, automatically updating dashboards is immediately useful — usually within the first week you apply it.

Work With Us

From insight to implementation

Reading is the start. When you're ready to build the data, automation, or AI systems behind it, our team turns strategy into shipped results.

Let's Build

Getting Started with Power BI

Previous

Navigating the Power BI Desktop Interface: Ribbon, Panes, and Views Every Beginner Must Know

Related Insights

Power BIFoundation

Implementing Power BI Dataflow Gen2 Endorsement and Workspace Sharing Strategies to Establish a Governed, Reusable ETL Layer Across Enterprise Teams

17 min
Power BIPractitioner

DAX Cumulative Totals and Running Calculations: Building Accurate Cumulative Sum, Minimum, and Maximum Measures Across Dynamic Filter Contexts

21 min
Power BIFoundation

Navigating the Power BI Desktop Interface: Ribbon, Panes, and Views Every Beginner Must Know

19 min

On this page

  • Introduction
  • Prerequisites
  • Why File Location Is the Most Important Decision You'll Make
  • Structuring Your Excel Workbook for Reliable Connections
  • Connecting Power BI Desktop to Your Excel File
  • Getting the Right URL for a OneDrive-Backed File
  • Shaping Your Excel Data in Power Query
  • Writing a "Last Refreshed" Measure
  • Publishing to Power BI Service
  • Configuring Scheduled Refresh for a Cloud-Hosted Excel File
  • Setting Up the On-Premises Gateway (For Local or Network Files)
  • Configuring Refresh Failure Alerts
  • Incremental Refresh Considerations
  • Hands-On Exercise
  • Common Mistakes & Troubleshooting
  • Summary & Next Steps