Power Fx function
Self — Power Fx function reference
The current control.
Syntax
powerfx
Self.PropertyName
Examples
powerfx
Self.Fill
→ Own property
Used as a button's Fill property.
powerfx
If(Self.Pressed, Color.DarkBlue, Color.Blue)
Used as a control's Visible property.
powerfx
Self.Text <> ""
Common mistakes & gotchas
- Self always refers to the control the formula is written on, regardless of nesting depth in the formula itself — it never resolves to a parent or container.
- Some properties cannot reference Self for their own value (e.g. a control's own Default cannot reference Self.Default), since that would be circular.
Related Power Fx functions
From Records & scope references