PowerApps Functions

A

Abs

The absolute value of a number.

Acceleration

Reads the acceleration sensor in your device.

Acos

Returns the arccosine of a number, in radians.

Acot

Returns the arccotangent of a number, in radians.

AddColumns

Returns a table with columns added.

And

Boolean logic AND. Returns true if all arguments are true. Same as using the && operator.

App

Provides information about the currently running app and control over the app’s behavior.

Asin

Returns the arcsine of a number, in radians.

Assert

Evaluates to true or false in a test.

As

Names the current record in a gallery, form, and record scope functions such as ForAll, With, and Sum.

AsType

Treats a record reference as a specific table type.

Tip: LIFESAVER for polymorphic table fields. Think lookup tables in Dataverse.

Atan

Returns the arctangent of a number, in radians.

Atan2

Returns the arctangent based on an (x,y) coordinate, in radians.

Average

Calculates the average of a table expression or a set of arguments.

B

Back

Displays the previous screen.

Blank

Returns a blank value that can be used to insert a NULL value in a data source.

Boolean

Coverts a text string, number, or untyped value to a Boolean value.

C

Calendar

Retrieves information about the calendar for the current locale.

Char

Translates a character code into a string.

Choices

Returns a table of the possible values for a lookup column.

Clear

Deletes all data from a collection.

ClearCollect

Deletes all data from a collection and then adds a set of records.

ClearData

Clears a collection or all collections from an app host such as a local device.

Clock

Retrieves information about the clock for the current locale.

Coalesce

Replaces blank values while leaving non-blanks values unchanged.

Collect

Creates a collection or adds data to a data source.

Color

Sets a property to a built-in color value.

ColorFade

Fades a color value.

ColorValue

Translate a CSS color name or a hex code to a color value.

Compass

Returns your compass heading.

Concat

Concatenates strings in a data source.

Concatenate

Concatenates strings.

Concurrent

Evaluates multiple formulas concurrently with one another.

Connection

Returns information about your network connection.

Count

Counts table records that contain numbers.

Cos

Returns the cosine of an angle specified in radians.

Cot

Returns the cotangent of an angle specified in radians.

CountA

Counts table records that aren’t empty.

CountIf

Count table records that satisfy a condition.

CountRows

Counts table records.

Tip: This is a go-to for diplaying the number of records in a gallery or displaying the number of records that meets a condition such as if a status = ‘Completed’ to display some quick metrics to your app users.

D

DataSourceInfo

Provides information about a data source.

Date

Returns a date/time value, based on Year, Month, and Day values.

DateAdd

Adds days, months, quarters, or years to a date/time value.

DateDiff

Subtracts two date values, and shows the result in days, months, quarters, or years.

DateTimeValue

Converts a date and time string to a date/time value.

DateValue

Converts a date-only string to a date/time value.

Day

Retrieves the day portion or a date/time value.

Defaults

Returns the default values for a data source.

Degrees

Converts radians to degrees.

Disable

Disables a signal, such as Location for reading the GPS.

Distinct

Summarizes records of a table, removing duplicates.

Download

Downloads a file from the web to the local device.

DropColumns

Returns a table with one or more columns removed.

E

EditForm

Resets a form control for editing of an item.

Enable

Enables a signal, such as Location for reading the GPS.

EncodeUrl

Encodes special characters using URL encoding.

EndsWith

Checks whether a text string ends with another text string.

Error

Create a custom error or pass through an error.

Errors

Provides error information for previous changes to a data source.

Exactin

Checks if a text string is contained with another text string or table, case dependant. Also used to check if a record is in a table.

Exit

Exits the currently running app and optionally signs out the current user.

Exp

Returns e raised to a power.

F

Filter

Returns a filtered table based on one or more criteria.

Find

Checks whether one string appears within another and returns the location.

First

Returns the first record of a table.

FirstN

Returns the first set of records (N records) of a table.

ForAll

Calculates values and performs actions for all records of a table.

G

GroupBy

Returns a table with records grouped together.

GUID

Converts a GUID string to a GUID value or creates a new GUID value.

H

HashTags

Extracts the hashtags (#strings) from a string.

Hour

Return the hour portion of a date/time value.

I

If

Returns one value if a condition is true and another value if not.

IfError

Detects errors and provides an alternative value or takes action.

In

Checks if a text string is contained within another text string or table, case independent. Also used to check if a record is in a table.

Index

Returns a record from a table based on ordered position.

Int

Rounds down to the nearest integer.

IsBlank

Checks for a blank value.

Tip: Remember an exclamation point is the ‘not’ property in functions, for example:

textvalue1 is not blank = !IsBlank(textvalue1.text)

IsBlankOrError

Checks for a blank value or error.

J

K

L

M

N

O

P

Q

R

S

T