Microsoft Dynamics 365 Customer Experience Analyst : Configure formula columns
In Microsoft Dataverse, formula columns let you create real-time, calculated values without writing server-side code. They use Power Fx—the same low-code expression language as Power Apps—so you can reference other columns, related tables, or built-in functions to derive results on the fly. Formula columns are evaluated automatically whenever source data changes, ensuring the value shown is always up to date without storing redundant data. They’re ideal for lightweight business logic, such as combining first and last names, calculating discounts, determining due dates, or formatting text for display. Because the logic runs at the data layer, the same calculation is consistently applied across all apps, flows, and integrations consuming that table, improving maintainability and reducing errors.
- Low-code approach: No need for plugins or complex server-side logic; you simply write an expression in Power Fx.
- Real-time calculation: Values are always up to date whenever the source columns change.
- Consistency: Because calculations happen at the data layer, the result is the same across all apps, flows, and APIs connected to Dataverse.
- Reduced maintenance: There’s no risk of stale or inconsistent data since nothing extra is stored.
- Concatenating text (e.g., `FirstName & " " & LastName`).
- Performing arithmetic, like discounts or taxes (`Price 0.9`).
- Calculating dates, such as due dates or age (`Today() - BirthDate`).
- Creating conditional values (e.g., `If(Status = "Active", "Yes", "No")`).
- Formatting data for display, like converting numbers to text or adjusting case.
- Use formula columns for lightweight, read-only calculations that don’t require complex data aggregation.
- Keep formulas simple and efficient to ensure performance, especially in large datasets.
- When you need to sum, count, or average across multiple related records, consider rollup columns instead.
- If you need to persist the calculated value (for reporting or auditing), or if logic is too heavy, use Power Automate or a plugin.
- In Power Apps → Dataverse → Tables → choose your table.
- Click + New column → give it a name, and set Data type to a compatible type (Text, Number, DateTime, Yes/No, etc.).
- In the column creation pane, enable Formula.
- This unlocks the Formula editor.
- Use any supported Power Fx functions.
- Example: calculate the total value of an opportunity:
Quantity UnitPrice
- Or a conditional value:
If(Revenue > 100000, "High", "Standard")
- Save the column and publish the table so the formula becomes active.
Published on:
Learn more