What Is Power Fx? The Low-Code Formula Language Explained
By Mirko Peters · · Updated
What is Power Fx? Microsoft's Excel-like formula language for Power Apps, Dataverse formula columns and Copilot Studio, with behavior vs value formulas, delegation limits, named formulas and user-defined functions.
What is Power Fx? It is the formula language behind Power Apps canvas apps, and it also runs in Dataverse, model-driven apps and Copilot Studio. If you have ever typed =B2*C2 into Excel, you already understand its basic idea: you describe a result, and the engine keeps it up to date. The difference is that a Power Fx formula doesn't fill a cell. It decides what a label shows, whether a button is visible, which records a gallery lists, or what happens when someone taps Submit.
Key points
- Power Fx is the strongly typed, declarative, low-code formula language of Power Platform, based on the Excel formula language.
- In canvas apps, formulas sit in control properties and recalculate automatically when the values they use change.
- Behavior formulas live in On... properties such as OnSelect. Functions like Navigate and Collect only work there.
- Power Fx also runs in Dataverse formula columns, model-driven app commanding and Copilot Studio variables and conditions.
- Non-delegable queries only process the first 500 records by default, per query, adjustable up to 10,000 in app settings.
- Named formulas in App.Formulas replace much of App.OnStart. User-defined functions in Power Apps reached general availability in September 2025.
Two things decide whether a canvas app holds up: knowing value formulas from behavior formulas, and knowing where delegation stops. This guide covers both, plus where Power Fx runs and how to keep logic in one place.
What is Power Fx, exactly?
Microsoft Learn describes Power Fx as "the low-code language that Microsoft Power Platform uses" and calls it general-purpose, strongly typed, declarative and functional. It is the new name for the formula language that canvas apps have always used, and Microsoft says it is making the language available as open source, with the project on GitHub.
Three design choices shape how it feels:
- Excel first. Types, operators and function semantics stay as close to Excel as possible. Where Excel has no answer, Power Fx looks to SQL next.
- Declarative. You describe what a value should be, not when to recalculate it. Change an input, and every formula that uses it updates. You don't need event handlers just to keep values in sync.
- Strongly typed. The types of all values are known at compile time, so many mistakes show up as errors in the formula bar while you author the formula, before anyone runs the app.
The main change for Excel users: you reference things by name, not by cell address. TextInput1.Text replaces B2, and Expenses.Amount replaces a column letter.
Where Power Fx is used
| Product | What Power Fx does there | Worth knowing |
|---|---|---|
| Power Apps canvas apps | Every control property, from Text and Visible to OnSelect | The full language, including behavior functions and data functions |
| Dataverse formula columns | Calculates a column value from other columns | Max 1,000 characters per formula, no currency type, workflows and plug-ins can't trigger on them |
| Model-driven apps | Commanding, for example custom command bar buttons | Uses its own function reference |
| Copilot Studio | Sets variable values and builds conditions in topics | Always US-style numbers (dot as decimal separator, comma between arguments), variables need a prefix such as Topic. or Global. |
Each host supports a different set of functions. A formula that works in a canvas app may not be allowed in a Dataverse formula column, so check the formula reference for the host before you copy logic across.
Value formulas vs behavior formulas
This distinction confuses beginners most and explains many red error lines in Studio.
Value formulas sit in properties that expect a value: Text, Visible, Fill, Color, Items. They describe the current state and recalculate on their own. Example for a label's Color property:
If( Value(Label1.Text) < 0, Color.Red, Color.Black )
Behavior formulas sit in properties that start with On, such as OnSelect, OnVisible, OnHidden and OnStart. They run when something happens. Microsoft Learn states that some functions, such as Navigate and Collect, can only be used in behavior formulas. Put them into Visible or Text and the formula shows an error. In a behavior formula you chain several actions with a semicolon. In languages that use a comma as decimal separator, such as German, the separators shift: arguments are separated by ; and actions are chained with ;;.
My rule of thumb: start from the outcome, not the function. Want something to look different? Select that control and edit a value property. Want something to happen after a click? Edit OnSelect on the button.
Variables and collections: use fewer than you think
Canvas apps know three kinds of state: global variables (Set, app-wide), context variables (UpdateContext, one screen) and collections (Collect, ClearCollect, tables in memory). All of them start blank when the app opens, and values are lost when it closes, unless you save collections to the device with SaveData (SaveData works in the Power Apps mobile app, not in the web player). A collection is a working list, never the record of truth. Anything you still need after the app closes belongs in Dataverse, SharePoint or SQL.
Microsoft's own guidance is blunt: "In general, avoid using variables." If a formula can calculate the value, let the formula engine do the work. My recommendation: every Set in your app should have a reason you can explain in one sentence.
Delegation: the limit that bites in production
When a gallery uses Filter, Sort or LookUp on a data source, Power Apps tries to delegate the query, meaning the data source runs it and returns only the matching rows. Dataverse, SharePoint, SQL Server and Salesforce support delegation, each with its own list of supported functions.
If any part of the formula can't be delegated, Power Apps delegates none of it. It pulls records locally and works only with the first 500 by default. You can raise this under Settings > General > Data row limit to a maximum of 10,000. Studio shows a yellow warning triangle, and once the source holds more than 500 records it also adds a blue underline.
The danger is silent: the app works with 300 test records and returns incomplete results with 30,000 real ones. Raising the limit only hides the symptom. My recommendation: treat every delegation warning as a bug, and design columns so your filters can be delegated. For concrete fixes, see how to fix Power Apps delegation warnings on large Dataverse tables. If you mostly need to show tabular data, compare the modern data grid and the gallery too.
Named formulas and user-defined functions
Power Fx has two tools to keep a rule that shows up on several screens in one place.
Named formulas live in the App object's Formulas property: BGColor = ColorValue( Param( "BackgroundColor" ) );. Unlike a variable set in OnStart, the value is always current and can't be overwritten anywhere else in the app. They can't use behavior functions or circular references. Microsoft's guidance for large apps reports Studio load times dropping by as much as 80% after moving variable setup from App.OnStart to named formulas.
User-defined functions add parameters and typed return values, for example LibraryGenre( SelectedGenre: Text ): LibraryType = Filter( Library, Genre = SelectedGenre );. LibraryType is a user-defined type declared with the Type function. Microsoft announced user-defined functions as generally available in Power Apps in September 2025, but user-defined types were not part of that GA. They depend on the new analysis engine, which is on by default for new apps. Recursion isn't supported yet.
My rule of thumb: static values and lookups go into named formulas, business rules you need with different inputs go into user-defined functions, and Set stays for state that truly changes while someone uses the app.
Related
Sources
- Microsoft Power Fx overview (Microsoft Learn)
- Get started with formulas in canvas apps (Microsoft Learn)
- Understand variables in canvas apps (Microsoft Learn)
- Understand delegation in a canvas app (Microsoft Learn)
- App object in Power Apps (Microsoft Learn)
- Build large and complex canvas apps (Microsoft Learn)
- Work with Dataverse formula columns (Microsoft Learn)
- Formula reference for model-driven apps (Microsoft Learn)
- Create expressions using Power Fx in Copilot Studio (Microsoft Learn)
- Power Apps' User defined functions GA (Microsoft Power Platform Blog)
FAQ
What is Power Fx in simple terms?
Power Fx is Microsoft's low-code formula language for Power Platform. It borrows its syntax and functions from Excel formulas, so instead of writing a formula in a cell, you write it in a property of an app control, a Dataverse column or a Copilot Studio node. Microsoft describes it as strongly typed, declarative and functional, and says it is making the language available as open source on GitHub.
Where is Power Fx used?
Its main home is canvas apps in Power Apps. Microsoft Learn also documents Power Fx in Dataverse formula columns, in commanding for model-driven apps, and in Copilot Studio, where formulas set variable values and drive conditions in topics.
What is the difference between a behavior formula and a normal formula?
A normal property formula such as Text, Visible or Color describes a value and recalculates automatically. A behavior formula sits in an On... property like OnSelect or OnVisible and runs when something happens. Functions that change state, such as Navigate, Collect or Set, are only allowed in behavior formulas.
What is delegation in Power Fx?
Delegation means Power Apps translates a formula into a query the data source runs itself, such as Dataverse, SharePoint, SQL Server or Salesforce. If part of a formula can't be delegated, Power Apps only processes the first 500 records per query locally by default, which can return incomplete results without an error. A yellow warning triangle marks such formulas.
Are named formulas and user-defined functions ready for production?
User-defined functions in Power Apps were announced as generally available in September 2025, and they rely on the new analysis engine, which is on by default for new apps. User-defined types were not part of that GA. Named formulas in App.Formulas are documented on Microsoft Learn without a preview label, and Microsoft's guidance for large apps recommends them as a replacement for static values set in App.OnStart.