How it works
A workbook is a program nobody wrote down. Formulas copied down columns are loops, lookup tables are joins, named ranges are parameters, and the saved values in every cell are a test suite the author never knew they were writing. Power Migrate reads all of that and produces code that passes the suite.
1. Parse
The file is read twice: once for formulas and defined names, once for the values Excel last calculated. Dates stay as Excel serial numbers so nothing is lost in conversion. The package itself is inspected for macros, external links, Power Query connections and pivots, because each of those is something the code will have to replace or declare.
2. The dependency graph
Every reference is resolved to a concrete cell or range. Ranges are nodes of their own, so a lookup table read by nine hundred formulas is expanded once. The graph says which cells are inputs (constants a formula reads), which are outputs (formulas nothing else reads), and in what order everything can be computed. Circular references are found here and reported, not hidden.
3. Logic blocks
Two formulas with the same R1C1 form are the same formula copied to different cells. Such cells are grouped into rectangular blocks: a column copied down, a row copied across, a table filled in. A block that reads its own earlier cells, a running total for example, is given a loop direction that visits precedents first. Blocks are ordered so that everything a block reads is computed before it runs.
4. Generate
Code is written by rules. Each block becomes one function in the Python target, one column operation in the pandas target, or one CREATE TABLE AS SELECT step over typed sheet tables in the SQL target, where a column that reads its own previous row becomes a recursive query. Names come from the labels next to the cells. An AI model may be used to propose better names and plain-English descriptions, today through Anthropic under your own account; it sees formulas and structure with every literal redacted, and the reconciliation checks its work. Anything the rules cannot express, a user-defined function without source, an unstable INDIRECT, a function with no equivalent, becomes a clearly marked stub whose result propagates to every dependent cell and is listed in the report.
5. Reconcile
The generated code runs on the workbook's own input values and every formula cell is compared with the value Excel stored in the file. Numbers match within a tolerance you choose, text must match exactly, errors must match by code. The report gives the count by sheet, lists every mismatch with both values, and lists every cell that was not converted with its reason. Where Excel is available, generated input variations are run through Excel and the code side by side, which catches semantics the stored values alone cannot. We say tested equivalence, never guaranteed identical: the report certifies the checks it ran.
What SQL cannot represent
Excel has one dynamic cell type and seven error values; SQL has typed columns and NULL. The SQL target infers the type of each block's result, keeps a separate physical column where a sheet column mixes text and numbers, writes both a numeric and a text column for a block whose formula gives numbers in some rows and text in others, and declares its policies: an Excel error is NaN in a numeric column, so it spreads through arithmetic and SUM as it does in Excel, but its code is not carried; in a text or logical column an error is NULL, as is the empty string; a blank input counts as 0 in arithmetic; text compares case-insensitively. The reconciliation counts every cell that matched only under those policies on a row of its own and explains every mismatch they cause, so a reviewer sees exactly where the two systems part ways.
Settling what Excel does
Questions about Excel's behaviour are not answered from memory. A small script puts the formula to an installed copy of Excel and the answer is recorded as a test. That is how we learned that Excel checks operands left to right, that DATEDIF's "yd" unit is month arithmetic rather than a date difference, that a wildcard criterion only treats a tilde as an escape when it also contains an asterisk or a question mark, and that serial 0, a blank date, is a Saturday.
Power Apps canvas apps
A canvas app is the same shape as a workbook once you look past the screens: controls hold formulas, formulas read other controls, variables and data sources, and the whole thing recalculates when an input changes. The command-line tool reads a .msapp file (or its unpacked source) and runs the same five stages. The app map lists every screen, control, variable, collection and data source and classifies each property as layout, behaviour, state or data. The graph resolves what each formula reads and writes. Every pure formula is translated into a Python function over a small Power Fx runtime that reproduces the language's value semantics, blanks and errors included. Every On-event formula becomes a handler in a behaviour specification: the variables it sets, the records it patches, the screen it navigates to, and the effects that leave the app, such as a notification, a connector call or a flow, which are recorded rather than performed.
Reconciliation here cannot compare with stored values, because an app has none. Instead the tool infers the shape of the app's inputs from how the formulas use them, generates seeded input variations, and evaluates every translated formula in Microsoft's open-source Power Fx interpreter on the same inputs, gallery row by gallery row. The report names every property as reconciled, differing, unchecked (the interpreter cannot evaluate it, for example a canvas-only enumeration) or not translated, with the reason. On Microsoft's published test apps, from a 4,586-formula chess game to a 73,000-formula Dataverse application, every formula the interpreter could evaluate reconciled with no differences, and the remainder are listed one by one. Questions about what Power Fx does are settled by asking the interpreter, never from memory.
Power Automate flows
A cloud flow is read from a solution export, a legacy package or a bare definition. The flow map lists every action in run order with its nesting (conditions, switches, loops, scopes), what each expression reads (trigger outputs, earlier actions, loop items, variables) and writes, and which connectors, HTTP calls and child flows it reaches. That is an inventory and a dependency map, not yet a translation: there is no open-source evaluator for the expression language to reconcile against, so for now nothing is claimed beyond what the map shows.
Power BI models and reports
A semantic model and its report are read from a .pbix, a .pbit or a Power BI project folder, without Power BI Desktop. The model map lists the data sources, every Power Query, table, relationship and measure (what it reads, the functions it calls, which visuals use it), calculation groups and row-level security, and the report page by page with every visual's fields and filters; then which measures the report reaches, which columns nothing uses, and the DAX functions whose meaning depends on the engine's evaluation state and so need their own decision before a translation could claim them. Measures are not translated yet: reconciliation against Power BI's own engine is the stage that follows, and nothing is claimed before it.