Dataverse - Formula Type Column
📌 Dataverse - Formula Type Column
A Formula Type Column in Dataverse allows makers to write Power Fx formulas to compute values automatically. Once saved, Dataverse recalculates the result whenever referenced fields change.
✔️ Supported Power Fx Functions (from official docs)
Formula columns support a subset of Power Fx functions:
- Math Operators: +, -, *, /, %, ^
- Logical Operators: And(), Or(), Not(), !, =, >, <, >=, <=
- String Operators: & (concatenate), in, exactin
- Text Functions: Upper(), Lower(), Trim(), Left(), Right(), Mid(), Concatenate()
- Date & Time: Today(), Now(), Year(), Month(), Day(), Hour(), Minute()
- Logic & Conditions: If(), Switch(), Coalesce(), IsBlank()
- Conversion: Value(), Text() (with limitations)
- Record references: LookupColumn.Field (simple parent lookups only)
❗ Not Supported: Filter(), LookUp() on tables, Patch(), Remove(), Collect(), table iteration, and aggregation.
For more information refer the below link
https://learn.microsoft.com/en-us/power-apps/maker/data-platform/formula-columns
🌟 Advantages
- ✔️ Uses familiar Power Fx instead of old calculated field designer
- ✔️ Real-time calculation when dependent fields update
- ✔️ Cleaner and more powerful than classic calculated columns
- ✔️ Can reference fields from related lookup (parent) records
- ✔️ Available in forms, views, Power Apps, Power Automate
- ✔️ Easy to maintain and version using solutions
⚠️ Limitations / Disadvantages
- ❌ Cannot query related tables (no Filter(), no LookUp() over tables)
- ❌ Cannot use functions that change data (Patch, Update, Remove, Collect)
- ❌ Cannot calculate rollups or aggregate values from child tables
- ❌ No circular dependencies between formula columns
- ❌ Sorting disabled in views if formula references lookup fields
- ❌ Currency type cannot be returned by formula columns
- ❌ Some Text() conversions are not supported
📝 Example Formula
If( Score >= 80, "Pass", "Fail" )
Comments
Post a Comment