24. Power Pivot and the Data Model
24.10 When to Move to Power BI
1. Make the decision from the work people need to do
A fictional quick-commerce team has an Excel model that produces a reliable monthly report. The analyst imports two approved files, checks a city breakdown and prepares a printed summary. A few weeks later, several city leads need to see their own results each morning from different devices. Finance still wants to adjust planning assumptions alongside the workbook. The team now has two jobs: doing editable analysis and distributing an approved read view. The right choice depends on who uses each output and what needs to happen when a new file arrives.
This lesson uses the fictional FreshGo and MarketRush workbook from this chapter. Its accepted baseline is 12 orders, six known customer IDs in the sample, and ₹2,315 in sales. Pune contributes ₹940 across the two sample months. Those numbers provide a small, checkable way to decide whether the same business rules survive a Power BI pilot. You can work through the full decision and control exercise without buying a license or publishing any file.
Translate a feature request into an observable need
- “We need a modern dashboard.” Identify who will read it, how often and what decision follows. If the only audience reviews one printed page monthly, that workflow may already fit the Excel layout.
- “It should refresh every morning.” Identify the source, the approval cutoff, the owner of credentials and how the team learns of a failed update. A schedule is one link in that process.
- “Each lead should see their city.” Decide whether this means a convenient initial selection or a restriction on the underlying data they are allowed to read. The latter needs tested access controls across all intended entry points.
- “Finance should be able to try a different target.” Decide whether viewers need to adjust a visual parameter for analysis or edit workbook cells and own a new scenario. Preserve the editing workflow if cell-based planning is part of the job.
2. Compare actual workflows
Keep the approved workbook when it supports the report process
Excel is a good fit for everyday cell work, calculations, flexible print layouts, writeable assumptions and one-off analysis. Its Data Model can already combine related tables and apply DAX measures. A small team can keep an approved workbook in a managed location and use supported sharing, versioning and review practices. A person responsible for the monthly import can inspect the files, refresh the model, reconcile totals and release a fixed summary. Preserve the canonical workbook and guidance about which versions are safe to edit.
For example, a student committee might record orders and try three budget assumptions before confirming event costs. The visible forecast should respond immediately when a user changes the estimate input. The committee also needs a saved PDF or fixed workbook at the approved cutoff. Excel can hold the working scenario and produce that artifact. Separate actual sales from typed assumptions. Keep a read-only control sheet or version history so a team member can tell which scenario was approved.
Pilot Power BI when distribution and a shared model become a distinct job
Power BI Desktop is a Windows authoring application used to build queries, a model and a report. The Power BI service is the managed online environment for approved publication, workspaces, sharing and supported refresh. A viewer can open an authorized report in a browser or supported mobile experience without editing the source workbook. A report includes visuals and interactions. A semantic model supplies tables, relationships and measures behind those visuals. Several reports can reuse appropriate agreed definitions from an approved model under their access settings.
Consider a fictional business modeled on the needs of regional delivery operations. A lead should open one link to a current city view, then inspect the same approved Month and Product measures as other leads. A managed Power BI model can help when the organization can support its access and refresh. Build one useful page first and test on a laptop and one real phone, using a layout that exposes the amount and filter state without scrolling through a broad worksheet. Visual interactions such as selecting a bar can filter or highlight other visuals when configured. Verify this behavior in the report.
| Observed requirement | Decision and evidence to collect |
|---|---|
| One analyst needs manual monthly refresh and a printable submission. | Keep the reconciled Excel workflow. Preserve refresh checklist, print area, source receipt and approved file version. |
| Finance needs editable scenario inputs and formula inspection. | Keep the planning sheet in Excel. Discover whether it should use the current approved model as a read source. |
| Authorized leads need a shared report on browser and phone. | Pilot Power BI if licenses, report permissions and device support are available. Test usability with the actual intended audience and selected view. |
| Each lead is allowed to inspect only their city’s rows. | Design and test Power BI row-level security for the intended viewer permissions. Check complementary roles and other model access paths as part of approval. |
| A local file arrives each morning and people need current results. | Choose a reachable managed source and refresh owners. Verify the exact accepted cutoff and outcome, regardless of visualization tool. |
Measure whether the existing model is really too large
There is no useful universal row-count threshold for this choice. A workbook may be slow because it stores unnecessary text fields, repeats a high-cardinality identifier, loads data twice, uses expensive measures or refreshes a slow source. A browser report can also be slow if the source, capacity, data model or visuals are poorly matched to its work. Record a typical report open time, refresh duration and response to a common filter. Check which users are affected and whether the workbook can be simplified. For a Power BI pilot choose the real queries, data volume and access model to measure before expanding it. Compare measured performance under those requirements.
3. Import a model as a controlled experiment
Choose the route according to what the Excel file contains
If an Excel file just holds a simple table of inputs, Power BI Desktop’s Get Data › Excel route can read its named table. If the workbook has built Power Query queries and a Power Pivot model, use the documented Desktop model import route for eligible workbook content. The distinction matters because the second route evaluates opportunities to convert objects such as existing queries, calculations and relationships. Reading worksheet tables alone can require rebuilding those definitions, which is also a valid choice if the original workbook is disorganized or the business is changing its model.
- Save an untouched baseline and a clearly named migration copy. In Excel, confirm the latest approved rows, relationship columns, table names, marked date table and measure definitions. Export or record the reconciliation matrix before importing.
- In a supported Windows Power BI Desktop build, use the documented File › Import › Power Query, Power Pivot, Power View route. Select the practice workbook and start the import. The conversion task creates a new Power BI Desktop model/report file, typically saved as
.pbix. It is a one-time conversion of the model design. - Where the import offers options for linked Excel tables or current workbook tables, decide between a one-time data snapshot and an ongoing connection to the workbook. The snapshot is useful for a reproducible pilot. An ongoing connection means refresh needs the workbook and proper credentials or configured access.
- Read the import summary of converted and skipped objects. Retain it with the pilot. Some workbook objects, including Excel model hierarchies in this import path, can be skipped. Check any existing named ranges, external sources or other documented limitations before promising a complete migration.
- Inspect Power Query sources and load settings, then Model view. Verify the keys, active relationships, cardinality, filter direction, date field types, date designation and month sorting. Open the measure definitions and compare units and results for agreed scopes.
- Rebuild an intentionally small report page. Use a card for Total Sales and a matrix for Cities and Months. The Excel grid arrangement, annotations, CUBE worksheet formulas and planning cells represent workbook presentation and need a deliberate new home.
A new PBIX does not automatically follow workbook model design changes just because the workbook initially supplied its model. If a source table remains connected, refresh can retrieve data changes through that source path. A connection to a source table and the one-time conversion of measure definitions are different mechanisms. For example, updating the ApprovedSales table can affect a retained connection on refresh, while changing the calculation logic inside the old workbook’s Total Sales definition does not rewrite the PBIX measure. Assign a single owner and change record to the approved metric.
Check each object that matters to the report
Document where inputs come from and which copies will be refreshed. In the workbook, Orders may originate from copied monthly practice files. In Desktop the imported query might still point to a path that only exists on the analyst’s computer. Confirm what must be reconfigured for the pilot. A snapshot copy can be enough for agreement testing if its receipt date is visible. A production model needs an approved accessible source. Preserve relevant source types, units and IDs to protect against subtle reclassification.
Choose one city and one month where you can list all matching IDs. Start with Nashik November, which contains O-108 and O-112 for ₹490. If the Desktop result is ₹670, the likely evidence says October was included. If all city rows show ₹2,315, inspect how Stores filters Orders. If the full total is ₹1,005, only October may have loaded or a filter may limit the view. A good pilot makes those mechanisms observable before moving on to styling.
4. Prove that both reports tell the same story
Use a parity sheet with exact states and controls
Parity means the two tools agree about the same approved scope. A comparable pair requires the same data receipt, measure definition and filter selection. In this fixture, unfiltered Total Sales gives ₹2,315. City filter Pune makes the base measure ₹940. A measure named Pune Sales in the previous workbook deliberately forces Pune in its scope. Document that behavior separately. Use the ordinary base measure for inspecting a city matrix where the reader expects the existing City filter to matter.
| Filter context | Sales ₹ | Orders | Distinct IDs |
|---|---|---|---|
| All approved facts | 2315 | 12 | 6 |
| October 2026 | 1005 | 6 | 5 |
| November 2026 | 1310 | 6 | 5 |
| Pune, both months | 940 | 5 | 3 |
| Nashik, November 2026 | 490 | 2 | 1 |
Run the unfiltered and filtered checks by explicitly selecting the year, month and place. An independently evaluated record count makes data-loading problems easier to diagnose. A matching amount can conceal two errors that cancel. Seven customer memberships across the four cities should still produce the original six distinct IDs at the all-city scope. If the pilot totals the displayed cards as a substitute for computing the overall distinct count, it uses a different aggregation rule than the Excel model.
Build a report card with the model measure and a text label identifying the scope. Format currency to agree in unit and intended precision. Avoid mixing rupee amounts and counts in unlabeled cards. For November, one control compares ₹1,310 with October ₹1,005, which yields ₹305 growth and approximately 30.3%. Use the same DATEADD and ratio semantics from Excel after checking the marked date table and exact month label. Keep blank and empty-period behavior as defined earlier.
5. Make access and source credentials explicit
Separate a convenient default from enforced row access
A slicer helps a viewer choose City. Its selected value is part of the report’s visual interaction. Row-level security, or RLS, restricts the rows a viewer is allowed to access through the semantic model under the configured permissions. Think of a lead who is authorized to see Pune results. A default Pune filter is convenient for routine work. An enforced Pune role supplies a model-level restriction even when that viewer explores the data through an authorized report. Test the intended permissions, because an editor may legitimately see a broader dataset.
- In a local fictional pilot, define a static role named Pune Lead and set its filter on Stores City to Pune. Use the active relationship to propagate that restriction to Orders. For the two-month sample, the role should see five orders, three distinct customer IDs and ₹940 in the no-extra-filter view.
- Use the Desktop role-testing capability in the practice file to view the report as that role. Confirm November within Pune is ₹400 and a report table does not expose Nashik rows in its scoped model results. Restore the full author view to rerun all-city control evidence.
- For an approved service rollout with an authorized test workspace, assign intended viewers to the appropriate role and validate using their intended permissions and supported role test. RLS applies to workspace Viewers and does not apply to the workspace Admin, Member or Contributor role. Evaluate actual view and edit permissions, including where they come from.
- For a real team with more than a few cities, consider a centrally maintained mapping from approved user identities to permitted areas. Review overlapping role grants and assignment changes with the model owner. Test both permitted views and evidence that another city is outside the viewer’s scope.
A model role and a source account carry different responsibilities. For example, an approved import connection may be authorized to read the accepted store inputs. A regional viewer still receives a restricted view of the resulting model. Test the effective viewer role and intended export or Analyze in Excel access according to the organization’s policy. A display-only restriction such as hiding a field from a report page leaves its contents in the data model. Choose approved access settings according to the data classification and sharing needs.
Test the combined permissions held by the same person
A static practice role can use this expression in the DAX rules editor for the Stores table. It is evaluated against each Stores record. Only rows satisfying the City test remain eligible under the role, and the active model relationship propagates the restriction to Orders.
[City] = "Pune"
Now imagine the same viewer is assigned both the Pune and Nashik roles, perhaps through two security groups. Microsoft describes multiple Power BI RLS role grants as additive. In this sample the person would see qualifying Pune or Nashik data, with ₹1,610 across eight orders. Because C02 is in both cities, that view includes four unique customer IDs. If the business approved Pune-only access for that person, the combined result fails the intended policy. Check the full mapping for the test account and confirm membership with the organization’s access owner.
Keep a record for at least one allowed area, one intentionally excluded area and one user with multiple expected grants when your design permits them. A report may carry several measures that use particular regions internally; test those measures in the restricted view too. If a regional lead should only access Pune, your test should check both the positive result and a restricted area under the same user permissions. Save the role evidence with its date. A future personnel change can alter the effective scope even when the report file stays identical.
Confirm authorized sharing and licensing in the real workspace
Before offering a rollout, verify the author and viewer licenses, workspace capacity, model location and sharing settings. Pro or Premium Per User usage depends on the sharing arrangement. Microsoft documents that free viewers of shared Power BI content need qualifying capacity, such as eligible P capacity or Fabric F64 or greater, with both the report and its underlying model in qualifying capacity for the scenario. Smaller Fabric capacities do not give all free viewers access. A PPU workspace ordinarily requires eligible PPU users. Use the current licensing guidance and the actual tenant configuration for the review.
Publish to an authorized service workspace only when the organization has approved the data and the audience. Power BI’s Publish to web feature exposes reports publicly without authentication and can expose underlying details. It serves a public-data use case. A regional or private report should use permission-controlled sharing. For the lesson, keep the pilot local with fictional data. The exercise’s role check teaches how to design a later approved rollout.
6. Design the refresh route from receipt to reader
Make source access reproducible before setting a schedule
When an Import-mode Power BI semantic model refreshes, it loads data from the configured sources. A Power BI Desktop model that refreshes from a local file on an analyst’s laptop might lack a reachable copy of the source in the service. Use an approved managed cloud location with supported credentials, or configure an approved gateway for a source that requires one. A gateway gives the service an authorized connection to supported network sources. The right option depends on the connector and topology. Confirm who owns the connection and credentials, who receives failure notifications and who recovers the last approved state.
Inspect the model’s scheduled refresh options, capacity, time zone and data source credentials with the responsible administrator. Microsoft documents different limits for shared and qualifying capacity or PPU arrangements. Schedules can start later than their nominal time based on service resources. Plan from the reporting service level the team actually needs. “See the latest approved data after a successful refresh” should identify a cutoff and an observable success state. Refreshing imported data, synchronizing changes to a PBIX or workbook stored in a cloud location, and updating what a viewer’s current visual displays are related steps with distinct states.
Follow a controlled arrival example
- 06:00 — Expected file. The source owner sends an approved monthly replacement through the planned route. Record the source file version, dates and row count before the reporting team treats it as current.
- 06:15 — Prepared input. A responsible person or approved process validates the actual receipt against expected IDs and orders. A missing file stops this step. Keep the previous successful figures labeled as of their own cutoff.
- 06:30 — Scheduled run. The service requests the approved data source using configured credentials and gateway if required. Inspect refresh history for timing and status. A particular time slot expresses a schedule target, and the run can take time or fail.
- 07:00 — Report evidence. The viewer sees the claimed cutoff and checks one known total. If the refresh failed, a stale indicator can identify the last approved batch. Avoid treating the most recent local file modification as proof that the shared semantic model has ingested it.
In a simple timeline, suppose a hypothetical corrected November receipt should add ₹90 to sales while keeping six November orders. The original report showed November ₹1,310 and total ₹2,315. After a verified refresh, expect November ₹1,400 and total ₹2,405. If refresh history shows success but only the old sales appear, confirm the connector points to the new approved input. Another possibility is that the viewer is looking at a stale display or a different report and model. Verify the version and row-level evidence before writing a second refresh job.
Keep the spreadsheet planning workflow connected where practical
A finance team can continue doing scenario work in Excel even when city leads view the managed report. Analyze in Excel or a connected table can query a Power BI semantic model in supported circumstances, subject to tenant settings, permissions such as Build, licenses and capacity. Keep scenario inputs and hypothetical outputs in separate clearly labeled workbook cells. Authoritative historical sales can still come from the governed model. When the team needs a fixed decision record, save the approved scenario and the actual-source cutoff in its release note.
Before linking the workbook to a service model, test permission boundaries and user tasks with the intended account. The viewer who can open a report might require an additional permitted access level to build a PivotTable. Do not enable such access only because one developer already has it. If existing workbooks use CUBE functions against a local Data Model, document which cells would need a new supported connection and matching member definitions. A model can keep the business measure meaning while its connection and worksheet implementation change.
7. Walk through a small migration in order
Separate decision, conversion, control testing and release
Write the job of each tool
Keep finance’s editable scenario in the workbook. Pilot the city leads’ shared reporting view separately. Record the audience, scope, data cutoff and expected access for each.
Convert a local fictional workbook copy
Use the supported Desktop import route for the Excel model and review converted or skipped content. Decide whether linked worksheet tables should become snapshots or continue reading the workbook.
Compare the known values
Check 12 orders, six customer IDs and ₹2,315 in the full scope. Pune is ₹940 and Nashik November is ₹490. Reconcile differently scoped totals before designing the shared report.
Verify access and updates independently
Model a single-city role and validate its expected results. Define how the approved source will refresh and who can share it. Keep this exercise file local.
8. Design a controlled pilot without publishing data
Lab A — Migrate one model and compare its slices
- Use the exact fictional Orders, Stores and Products inputs and the earlier Calendar setup. Save the Excel workbook with its accepted source and measures. In a notebook, write the date and city scope for each of the five control rows.
- If you have supported Windows Power BI Desktop, import the copy via the model import route. Record the import summary and check the retained query tables, keys and named measures. Keep a local PBIX file for the exercise. If you lack Desktop, sketch three related model tables and calculate each expected row result from the accepted source data.
- Create a simple report with sales, orders and distinct customers. Use the date dimension and City field to test each control. Ensure the report row for November is associated with the intended year. If a visual can format ₹2,315 as a rounded abbreviated value, add a precise audit table for comparison.
- After verifying the unfiltered Total Sales result, apply the Pune selector. Confirm ₹940, five orders and three IDs. Then specifically choose Nashik and November. Confirm ₹490, two orders and one distinct CustomerID.
- Clear report filters. Save a pilot checklist noting exact version, model objects and checked values. If a feature cannot be carried over, record the affected audience task and proposed replacement. Do not publish for this lab.
Expected evidence. The full control gives ₹2,315, 12 orders and six customer IDs. October and November use five distinct IDs each. A matching total without matching filtered results warrants more model inspection before release. The exercise only needs fictional data and can be verified on paper.
Lab B — Compare viewer scope, source cutoff and candidate workflows
- Write one release requirement for finance and one for the city lead. Finance can edit or copy a sales planning baseline. A city lead can see only authorized rows. Choose the owner and approved location for each artifact.
- In a local Desktop copy, define a fictional Pune-only role on the Stores lookup and test the view with no extra page or visual filters. In a paper version, filter the Orders by Pune store keys. Expect ₹940, five orders and three different IDs.
- With the Pune role still active, inspect October and November individually. Pune October is ₹540 and Pune November ₹400. Nashik is outside the role’s accepted scope. Clear the period filter and exit the role view to validate the original full-scope controls.
- Make a paper release plan for the hypothetical corrected receipt. Update O-112 to four units and ₹360 in a disposable fixture. Expect all-city November to rise by ₹90, while Pune November remains ₹400. A change for one scope and stability in another are both useful refresh tests.
- Using two different notional cutoffs, label cards with the actual approved receipt and expected scope. Document a failure case such as no new file or unavailable credentials. Define the status a viewer should see and the evidence the responsible owner needs to recover the report.
Expected evidence. Full view and Pune role have different legitimate sales outcomes. A new source that changes only Nashik should leave the Pune role result unchanged. The local test supports model design; service role membership, sharing and refresh remain separate rollout checks in an authorized environment.
9. Decide whether to expand the pilot
Keep one row per unresolved failure in the handoff
A pilot does its job when it exposes a missing capability while the scope is still small. Give each issue an owner and a reproducible example. If the service could not reach a practice source, identify the connector and authorized backup route. If a viewer test returned all cities, examine the assigned workspace role and model role rather than relying on a screenshot taken as the author. If a new chart disagrees while the audit matrix agrees, start with the visual’s filters, interactions and units. A difference in precision or automatically selected aggregate can change what a viewer reads.
- Data parity. Compare accepted rows, IDs and exact money across both tools. Keep one tested positive and one empty scope.
- Distribution. Confirm the intended users can open the report with appropriate licenses. Let one actual viewer describe the available filters and the data cutoff they can see.
- Refresh. Confirm the model can reach its approved data sources and test one known source change. Verify the displayed scope and values after completion.
- Access. Confirm permitted and restricted results across appropriate viewer roles. Check workbook connections or exports that the approved workflow enables.
- Maintenance. Assign one owner to each shared definition and record how new batches, report revisions, user-role changes and errors are reviewed.
Suppose the team requires updated city figures by seven in the morning but the source owner can only approve files by eight. Moving the visual cannot make the source available sooner. Choose what readers should see during the gap and ask the source owner to review the cutoff. If the company mainly needs a monthly signed-off workbook and one small team can open it responsibly, the workbook may remain the right producer. If the requirements also include broader controlled distribution and sustained scheduled updates, extend the Power BI pilot only once the shared dependencies have verified owners.
10. Practice the decision and its evidence
Quick checks
1. Which three full-model values should match after the pilot import?
Total Sales ₹2,315, Order Count 12 and Customers six. Add at least one city and one month control, such as Pune ₹940 and November ₹1,310.
2. Is a slicer locked to Pune sufficient to secure the underlying data?
A slicer controls the report view. Define and test the data access policy through the model and intended permissions. A Pune Viewer role in the sample should see ₹940, with Nashik outside its scope.
3. Which import route preserves eligible workbook-model objects?
Use the Desktop model import option for Power Query and Power Pivot content. Review its summary and inspect migration limitations. Selecting a simple Excel worksheet table through Get Data reads that table and does not recreate your prior model by itself.
4. What does a one-time worksheet table snapshot mean for future updates?
That table’s captured data remains fixed until you deliberately replace or reconnect it. Choose an ongoing authorized connection if the report must read newer table data on refresh. The workbook’s model design and measure changes remain separately controlled.
5. Can a report be shared privately using Publish to web?
Use authorized permission-controlled sharing for a private audience. Publish to web creates public access without authentication and can expose underlying information.
Interview practice
1. When would you recommend keeping a workbook and introducing Power BI?
Keep editable scenario planning and flexible workbook deliverables where the team needs them. Pilot Power BI for a maintained shared report with appropriate access and refresh. Define common measures and verify the exact same filters and approved data produce matching values.
2. Why can a Desktop model refresh fail after publication?
The service needs to reach the configured sources with valid credentials and a suitable gateway or cloud connection when required. A local successful run proves only the Desktop path. Verify configuration and successful service refresh using a known source change.
3. How do you verify a city lead’s permissions?
Define the role, assign approved users in the intended environment and test the effective viewer permissions. Check that a permitted city shows the correct values and an unpermitted city is outside scope. Workspace edit roles may have broader access.
4. Why inspect the import summary even when the full total matches?
A matching amount can coexist with skipped hierarchies, disconnected dimensions or missing relationship rules. Reconcile a city/month set and review skipped objects and their intended replacement. The release must preserve the workflows the audience needs.
5. How would you choose between spreadsheet totals and a shared model at scale?
Measure the actual need: source refresh, concurrent viewing, client and access requirements, performance under common queries, maintenance and cost. Test both tools with the real expected data load. Row count alone does not describe performance or suitability.
Six revision cards
- Role of each tool. Match editable planning and controlled distribution to the actual audience and workflow.
- One-time conversion. Review objects and source options; a retained data connection has its own refresh path.
- Parity matrix. Match exact totals, filters, units and date cutoffs in both models.
- Authorized scope. Check test users, Viewer permissions and row restriction separately from report slicers.
- Refresh evidence. Record approved source, reachable connection, successful refresh and reader-visible cutoff.
- Controlled release. Keep a local pilot first. Use authorized sharing for the approved service audience.
The original Excel and Power BI comparison illustration summarizes the candidate workflows. Apply the licensing, refresh and permission checks from this lesson to those choices. Continue with the two-month Excel model capstone or the Excel Practice Task Hub. The Power BI course expands on modeling, DAX measures and row-level security.
Microsoft documentation
- Power BI Desktop and supported requirements
- Import Excel workbook models in Power BI Desktop
- How Power BI data refresh works
- Configure supported scheduled refresh
- Share reports, permissions and license prerequisites
- Row-level security behavior and testing
- Power BI role mapping and additive role guidance
- Publish to web and public access
- Analyze in Excel prerequisites