Power Fx Basics: The Most Important Formulas for Power Apps

Power Fx is the Excel-like formula language behind Power Apps. An overview of key functions like Filter, LookUp and Patch.

Power Fx is the formula language behind Power Apps, based on Excel, allowing you to control data access, logic, and surface behavior in canvas apps without users needing to learn a traditional programming language. Anyone who has written an Excel formula will recognize the syntax of Filter, LookUp, or If immediately. As of August 2026.

How does Power Fx relate to Excel?

According to Microsoft Learn, Power Fx intentionally follows Excel formula language: types, operators, and function logic are as close as possible to what Excel users already know. Unlike procedural languages, there is no separate compile or execution step; formulas are continuously recalculated whenever underlying data changes, just like a spreadsheet. Power Fx is declarative: you describe what should be true, not the order in which it is calculated.

Which functions do you need most often in practice?

From the official function reference, these are the most relevant functions for everyday use:

  • Filter: Returns a filtered table based on one or more criteria, for example all open orders of a customer.
  • LookUp: Searches for exactly one record based on a criterion, such as the appropriate contact for a customer number.
  • Patch: Changes or creates a record in a data source, also usable outside a data source as a merge.
  • Collect and ClearCollect: Create or clear a collection and fill it with records, practical for caching within an app session.
  • ForAll: Calculates values or performs actions for each record in a table.
  • If and Switch: Control branching, with Switch being clearer than nested If functions when there are many possible values.
  • Navigate: Switches the displayed screen in the app.

What distinguishes Set, UpdateContext, and Patch?

These three functions are often confused because they all set values: Set sets a global variable that applies app-wide. UpdateContext sets a context variable that is only visible on the current screen. Patch, on the other hand, actually writes to a data source like Dataverse, SharePoint, or a SQL table and thus persists beyond the app session. If you only need a variable within a screen, you should use UpdateContext instead of Set to avoid app-wide side effects.

Where does no-code end and Power Fx begin?

The property pane of Power Apps offers no-code controls for most formatting and standard actions, such as for colors or sorting a gallery. As soon as a requirement goes beyond that, such as sorting by multiple columns or conditional coloring, the interface leads directly to the formula bar. According to Microsoft, this is intentional: no-code tools read and write Power Fx in the background, so beginners don't hit a functional limit, but grow into formula syntax. Advanced teams can also extract Power Fx formulas into YAML files and manage them via version control like Git, which facilitates the transition from no-code to professional development.

Who should learn Power Fx?

Anyone who already uses Excel formulas has already internalized most of the thinking. The effort is worthwhile especially once an app goes beyond simple forms and combines, filters, or conditionally displays data from multiple sources. For simple approval or data entry apps, often just a few formulas like Filter, Patch, and If are sufficient. In our automation consulting, we often see that formula introduction is the biggest lever to transform an app from a rigid template into a truly usable application.

Frequently Asked Questions About Power Fx

Is Power Fx a standalone programming language?

Power Fx is a functional, declarative formula language that is currently being decoupled from Power Apps and is gradually being made available for other Power Platform products as well as as an open-source project. It is not a general-purpose programming language like C# or Python, but is designed for formulas and app logic.

Do I need to learn Power Fx to use Power Apps?

No, many standard tasks can be accomplished via no-code controls in the property pane. However, as soon as an app needs conditional logic, data linking, or custom calculations, there is no way around some formulas.

What is the difference between Filter and LookUp?

Filter always returns a table, even if only one record matches, while LookUp returns exactly one single record. For displaying a list, Filter is correct; for a single value like a customer address, LookUp is the appropriate and faster choice.

Can I version Power Fx formulas like code?

Yes, for professional teams, formulas can be saved as YAML source files and placed under version control in systems like Git or Azure DevOps, which facilitates review processes and collaboration with development teams.

Simon Glowik, founder of NordFlux
About the author

Founder of NordFlux. Spent four years automating processes at enterprise scale at Dräger, and now brings that depth to the mid-market — pragmatic and with full data sovereignty.

Certifications

  • Microsoft certified — PL-900 and AZ-900
  • UiPath certified — Automation Developer Associate
  • UiPath zertifiziert — Automation Developer Associate
All articles
Free initial analysis

Concrete questions about automation or AI?

In a free initial analysis we discuss your case directly. No strings attached.

Power Fx Basics: the most important formulas