# App

## Y ## What is the Power Fx App Function?

The Power Fx app function is a formula language used in Power Apps to create custom calculations and automate tasks. It is a low-code language, meaning that users do not need to have extensive programming knowledge to use it. The Power Fx app function is based on Microsoft Excel’s formula language and allows users to create complex calculations and automate tasks with ease.

## How to Add the Power Fx App Function to Your Power Apps

Adding the Power Fx app function to your Power Apps is a straightforward process. To begin, open your Power App in the Power Apps studio. Once your app is open, click on the “Insert” tab in the top menu. From here, select “Formula” and then choose “Power Fx” from the dropdown menu.

## How to Use the Power Fx App Function

Once you have added the Power Fx app function to your Power App, you can begin using it to create custom calculations and automate tasks. The Power Fx app function uses a syntax similar to Microsoft Excel’s formula language. Here are a few examples of how to use the Power Fx app function:

### Example 1: Creating a Simple Calculation

Let’s say you want to create a custom calculation in your Power App that adds two numbers together. To do this, you would use the following syntax:

``` Add(2, 3) ```

This would add the numbers 2 and 3 together, resulting in a total of 5.

### Example 2: Using IF Statements

IF statements can be used in the Power Fx app function to perform conditional logic. Here is an example of how to use an IF statement:

``` If(1 + 1 = 2, "True", "False") ```

This IF statement checks if 1 + 1 equals 2. If it does, the statement returns “True”. If it doesn’t, the statement returns “False”.

``` Office365.SendEmail("customer@email.com", "Subject", "Body") ```