0% found this document useful (0 votes)
188 views

Power Apps Functions Cheat Sheet MD

Uploaded by

Harish D
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
188 views

Power Apps Functions Cheat Sheet MD

Uploaded by

Harish D
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

AI Functions

Classifies text into a provided text categories


AIClassify
category. allowmultiplecategories

Extracts all entities from text such as


AIExtract text entity
a person’s name or phone numbers.

Takes a message as input and drafts


AIReply text
a reply.

Adds days, months, quarters, or


AISentiment text
years to a date/time value.

AISummarize Summarizes text. source text

Translates text from one language to


AITranslate text targetlanguage
another language.

Color Functions
Sets a property to a built-in color
Color
value.

ColorFade Fades a color value. colorfade

Translates a CSS color name or a hex


ColorValue color_text
code to a color value.

The Complete Power Apps Functions List MatthewDevaney.com


red_value green_value
Returns a color value for a set of red,
RGBA blue_value alpha_value
green, blue, and alpha components.

Datasource Functions
source
Provides information about a data
DataSourceInfo datasourceinfo_enum
source
column_name

Returns the default values for a data


Defaults source
source

Provides information about a record of


RecordInfo record record_info_enum
a data source

Refresh Refreshes the records of a data source connected_data_source

Reloads and clears errors for the


Revert source item
records of a data source

Date & Time Functions


Retrieves information about the
Calendar
calendar for the current locale.

Retrieves information about the


Clock
clock for the current locale.

The Complete Power Apps Functions List MatthewDevaney.com


Returns a date/time value, based
Date year month day
on Year, Month,and Day values.

Adds days, months, quarters, or start_date number_of_units


DateAdd
years to a date/time value. units

Subtracts two date values, and


DateDiff shows the result in days, start_date end_date units
months,quarters, or years.

Converts a date and time string to a


DateTimeValue time_text language_code
date/time value.

Converts a date-only string to a


DateValue date_text language_code
date/time value.

Retrieves the day portion of a


Day date
date/time value.

Adds a given number of months to a


EDate date months
date.

Returns the last day of the month for


EOMonth date months
a given date.

Retrieves the hour portion of a


Hour date_time
date/time value.

Returns the ISO week number of a


ISOWeekNum date
date/time value.

The Complete Power Apps Functions List MatthewDevaney.com


Retrieves the minute portion of a
Minute date_time
date/time value.

Retrieves the month portion of a


Month date
date/time value.

Now Returns the current date/time value.

Retrieves the second portion of a


Second date_time
date/time value.

Returns a date/time value, based


Time hour minute second
on Hour, Minute,and Second values.

Converts a time-only string to a


TimeValue time_text language_code
date/time value.

Returns the difference between UTC


TimeZoneOffset date
and the user’s local time in minutes.

Today Returns the current date value.

Returns the current timezone


UTCNow
independent date/time value

Returns the current timezone


UTCToday
independent date value

Retrieves the weekday portion of a


Weekday date
date/time value.

The Complete Power Apps Functions List MatthewDevaney.com


Returns the week number of a
WeekNum date
date/time value.

Retrieves the year portion of a


Year date
date/time value.

Error Functions
Provides error information for
Errors previous changes to a data source
source

A record containing the


Error custom values for the error_information
produced error.

Detects errors and provides value replacement1

IfError an alternative value or takes value2 replacement2

action … default_result

Forms & Controls Functions


Resets a form control for editing of
EditForm form
an item.

Resets a form control for creation of


NewForm form
an item.

The Complete Power Apps Functions List MatthewDevaney.com


Resets an input control to its default
Reset control
value, discarding any user changes.

Resets a form control for editing of


ResetForm form
an existing item.

Simulates a select action on a


control, causing control row_or_column
Select
the OnSelect formula to be child_control
evaluated.

Moves input focus to a specific


SetFocus control
control.

Saves the item in a form control to


SubmitForm form
the data source.

Resets a form control for viewing of


ViewForm form
an existing item.

Information Functions
IsBlank Checks for a blank value expression

IsBlankOrError Checks for a blank value or error expression

IsEmpty Checks for an empty table source

IsError Checks for an error value

The Complete Power Apps Functions List MatthewDevaney.com


Checks a string against a pattern.
IsMatch textformat extent
Regular expressions can be used

IsNumeric Checks for a numeric value value

Checks whether a date/time value is


IsToday date
sometime today

Checks whether a timezone


IsUTCToday
independent date/time value is today

Checks whether a record reference


IsType value typeTable
refers to a specific table type

Logical Functions
logical_test1 true_value1
Returns one value if a condition is true
If logical_test2 true_value2
and another value if not.
… elsevalue

Boolean logic AND. Returns true if all


And arguments are true. You can also use logical1 logical2 logical3 …
the && operator.

Checks whether a text string ends with


EndsWith textend
another text string.

Extracts a substring based on a pattern. text


Match
Regular expressions can be used. regular_expression options

The Complete Power Apps Functions List MatthewDevaney.com


Extracts multiple substrings based on a
text
MatchAll pattern. Regular expressions can be
regular_expression options
used.

Boolean logic NOT. Returns true if its


argument is false, and returns false if its
Not logical
argument is true. You can also use
the ! operator.

Boolean logic OR. Returns true if any of


Or its arguments are true. You can also use logical1 logical2 logical3 …
the || operator.

Checks if a text string begins with


StartsWith text start
another text string.

switch_value

Matches with a set of values and then match_value1 match_result1


Switch
evaluates a corresponding formula. match_value2 Match_result2

… default_result

Math Functions
Abs Absolute value of a number number

Exp Constant e raised to a power number

Converts a decimal number to a


Dec2Hex number places
hexadecimal value

The Complete Power Apps Functions List MatthewDevaney.com


Converts a hexadecimal value to a
Hex2Dec number
decimal number

Int Rounds down to the nearest integer number

Ln Returns the natural log number

Returns the logarithm of a number


Log for the given base. The default base number
is 10.

Remainder after a number is divided


Mod number divisor
by a divisor

Pi Returns the number π

Number raised to a power. You can


Power base exponent
also use the ^ operator

Rand Returns a pseudo-random number

Returns a random number between


RandBetween bottom top
bottom and top, evenly distributed

Rounds a number to the closest


Round number num_digits
number

Rounds down to the largest previous


RoundDown number num_digits
number.

Rounds up to the smallest next


RoundUp number num_digits
number.

The Complete Power Apps Functions List MatthewDevaney.com


Sqrt Returns the square root of a number number

Calculates the sum of a table


Sum source expression
expression

Truncates the number to only the


Trunc integer portion by removing any number num_digits
decimal portion

Navigation Functions
Back Displays the previous screen. transition

Exits the currently running app and


Exit logout
optionally signs out the current user.

Navigate Changes which screen is displayed. target transition context

RequestHide Hides a SharePoint form.

Offline Functions
Clears a collection or all
ClearData collections from an app host such name
as a local device.

The Complete Power Apps Functions List MatthewDevaney.com


Loads a collection from an app
LoadData collectionname ignore_non_existent_file
host such as a local device.

Saves a collection to an app host


SaveData collectionname
such as a local device.

Other Functions
Treats a record reference as a specific
AsType valuetype table
table type.

Returns a blank value that can be used


Blank
to insert a NULL value in a data source.

Replaces blank values while leaving


Coalesce value1 value2 …
non-blank values unchanged.

Evaluates multiple formulas


Concurrent formula1 formula2 formula3 …
concurrently with one another.

Notify Displays a banner message to the user. text notification_type timeout

PDF* Export a screen or a container to a PDF target options

Open the web browser print dialog to


Print
print a screen or save as PDF

Reads a Near Field Communication


ReadNFC
(NFC) tag.

The Complete Power Apps Functions List MatthewDevaney.com


Starts a Power Automate Flow with the
Run Power Apps trigger (no official parameter1 parameter2 …
documentation)

Signals Functions
Acceleration Reads the acceleration sensor in your device.

Provides information about the currently running app and


App
control over the app’s behavior.

Compass Returns your compass heading.

Connection Returns information about your network connection.

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

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

Language Returns the language tag of the current user.

Returns your location as a map coordinate by using the Global


Location
Positioning System (GPS) and other information.

User Returns information about the current user

The Complete Power Apps Functions List MatthewDevaney.com


Statistical Functions

Average Calculates the sum of a table expression source expression

Counts a single column table of records


Count source
that contain numbers

Counts a single column table of records


CountA source
that aren’t empty

Counts table records that satisfy a


CountIf source condition1 …
condition

CountRows Counts table records source

Max Maximum value of a set of numbers source expression

Min Minimum value of a set of numbers source expression

Standard deviation of a table of a table


StdevP source expression
expression

VarP Returns the variance of its arguments source expression

The Complete Power Apps Functions List MatthewDevaney.com


Table Functions
source
AddColumns Returns a table with columns added. column1 expression1
column2 expression2 …

Returns a table of the possible values


Choices column searchtext
for a lookup column.

Clear Deletes all data from a collection. collection

Deletes all data from a collection


ClearCollect collection item1 item2 …
and then adds a set of records.

Creates a collection or adds data to


Collect collection item1 item2 …
a data source.

Summarizes records of a table,


Distinct source expression
removing duplicates.

Returns a table with one or more source column_name1


DropColumns
columns removed. column_name2 …

Returns a filtered table based on one Source logical_test1


Filter
or more criteria. logical_test2 …

First Returns the first record of a table. source

Returns the first set of records (N


FirstN source count
records) of a table.

Calculates values and performs


ForAll source count
actions for all records of a table.

The Complete Power Apps Functions List MatthewDevaney.com


source column_name1
Returns a table with records grouped
GroupBy column_name2 …
together.
group_name

Returns a row from a table at the


Index table index
specified row number

Generates a JSON text string for a


JSON data format
table, a record, or a value.

Last Returns the last record of a table. source

Returns the last set of records (N


LastN source count
records) of a table.

Looks up a single record in a table


LookUp source condition result
based on one or more criteria.

Modifies or creates a record in a data


source record update1
Patch source, or merges records outside of
update2 …
a data source.

Relates records of two tables through


Entity1RelatedTable
Relate a one-to-many or many-to-many
Entity2Record
relationship.

Removes one or more specific


Remove collection item1 item2 …
records from a data source.

Removes records from a data source Collection condition1


RemoveIf
based on a condition. condition2 condition3 …

The Complete Power Apps Functions List MatthewDevaney.com


source
old_column1 new_column1
RenameColumns Renames columns of a table.
old_column2 new_column
2 …

Finds records in a table that contain source text column1


Search
a string in one of their columns. column2 …

Generate a table of sequential


Sequence numbers, useful when iterating records start step
with ForAll.

Returns a table with only selected Source column_name1


ShowColumns
columns. column_name2 …

Randomly reorders the records of a


Shuffle source
table.

Returns a sorted table based on a


Sort Source expression order
formula.

Returns a sorted table based on one source column1 order1


SortByColumns
or more columns. column2 order2 …

Table Creates a temporary table. record1 record2 record3

Ungroup Removes a grouping. source group_name

Unrelates records of two tables from


Entity1RelatedTable
Unrelate a one-to-many or many-to-many
Entity2Record
relationship.

Update Replaces a record in a data source. collection old new all

The Complete Power Apps Functions List MatthewDevaney.com


Modifies a set of records in a data collection condition1 item1
UpdateIf
source based on a condition. condition2 item2 …

Testing Functions
Evaluates to true or false in a
Assert expression
test.

Simulates interactions with


SetProperty control_property value
input controls.

Provide additional information message severity


Trace
in your test results. custom_record trace_options

Text Functions
Converts text to a true or false
Boolean text
value

Translates a character code into a


Char number
string.

Joins text strings from a data


Concat table expression separator
source.

Concatenate Joins text strings text1 text2 …

The Complete Power Apps Functions List MatthewDevaney.com


Takes a text value and copies it to
Copy text
the clipboard

Decimal Converts a string to a number. value language

Checks whether one string


Find appears within another and find_text within_text start_num
returns the location.

Checks whether one string


Float appears within another and value language
returns the location.

Converts a GUID string to a GUID


GUID GUID_String
value or creates a new GUID value.

Returns the left-most portion of a


Left text num_chars
string.

Len Returns the length of a string. text

Converts letters in a string of text


Lower text
to all lowercase.

Returns the middle portion of a


Mid text start_number num_chars
string.

Interprets a JSON string and


ParseJSON input
returns an untyped object

The Complete Power Apps Functions List MatthewDevaney.com


Converts the first letter of each
Proper word in a string to uppercase, text
andconverts the rest to lowercase.

Replaces part of a string with


old_text start_num
Replace another string, by starting position
num_chars new_text
ofthe string.

Returns the right-most portion of a


Right text num_chars
string.

Splits a text string into a table of


Split text separator
substrings.

Replaces part of a string with


old_text text_new
Substitute another string, by matching
instance_number
strings.

Converts any value and formats a


Text number or date/time value to a value format_text language
stringof text.

Removes extra spaces from the


Trim text
ends and interior of a string of text.

Removes extra spaces from the


TrimEnds text
ends of a string of text only.

Converts letters in a string of text


Upper text
to all uppercase.

Converts letters in a string of text


Unichar text
to all uppercase.

The Complete Power Apps Functions List MatthewDevaney.com


Value Converts a string to a number. value language

Trigonometry Functions
Returns the arccosine of a number,
Acos number
in radians.

Returns the arccotangent of a


Acot number
number, in radians.

Returns the arcsine of a number, in


Asin number
radians.

Returns the arctangent of a number,


Atan number
in radians.

Returns the arctangent based on an


Atan2 x_coordinate y_coordinate
(x,y) coordinate, in radians.

Returns the cosine of an angle


Cos number
specified in radians.

Returns the cotangent of an angle


Cot number
specified in radians.

Degrees Converts radians to degrees. number

Radians Converts degrees to radians. number

The Complete Power Apps Functions List MatthewDevaney.com


Returns the sine of an angle
Sin number
specified in radians.

Returns the tangent of an angle


Tan number
specified in radians.

Variable Functions
Set Sets the value of a global variable. variable value

Sets the value of one or


UpdateContext more context variables of the context
current screen.

Calculates values and performs


actions for a single record,
With scope formula
including inline records of named
values.

Web Functions
Downloads a file from the web to
Download address
the local device.

Encodes special characters using


EncodeUrl text
URL encoding.

The Complete Power Apps Functions List MatthewDevaney.com


Extracts the hashtags (#strings)
HashTags text
from a string.

address parameter_name1

Launches a webpage or a canvas parameter_value1


Launch
app. parameter_name2
parameter_value2 target

Access parameters passed to a


Param name
canvas app when launched.

Removes HTML and XML tags from a


PlainText text
string.

The Complete Power Apps Functions List MatthewDevaney.com

You might also like