Power App Formulas.!-1
Power App Formulas.!-1
📌 Use Case: Store values globally and access them across multiple screens.
Set(varUserName, TextInput1.Text)
➡ Scenario: Store the logged-in user’s name and display it on another screen.
UpdateContext({varScreenMessage: "Welcome!"})
Distinct(Employees, Department)
Navigate(Screen2, ScreenTransition.Fade)
ClearCollect(colEmployees, Employees)
Switch(Dropdown1.Selected.Value,
"HR", "Human Resources",
"IT", "Information Technology",
"Finance", "Finance Department",
"Unknown"
)
➡ Scenario: Display full department names based on the selected value from a dropdown.
2⃣ IsBlank() & IsEmpty() – Check for Empty Values
User().FullName
User().Email
📌 Use Case: Update an existing record without replacing the entire row.
Rand() * 100
Text(Value(TextInput1.Text), "[$-en-US]$#,##0.00")
Value("123") + 10
If(Match(TextInput1.Text, "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-
Z]{2,4}$"), "Valid Email", "Invalid")
Split("Apple,Banana,Orange", ",")
Ungroup(SalesByRegion, "SalesData")
Sum(Employees, Salary)
Sum(Sales, Revenue)
Average(Employees, Salary)
Average(StudentScores, Score)
➡ Scenario: Calculate students' average test scores.
CountRows(Employees)
Remove(Employees, Gallery1.Selected)
Collect(TempData, Employees)
Navigate(EmployeeDetailsScreen, ScreenTransition.Fade)