Post

# How To Use Formulas And Functions In PowerApps(Power Fx)

• 10.7k
• 0
• 1

## Introduction

In this article, we are going to see about what PowerApps Formula reference and how it is useful to develop Power Platform Applications.

PowerApps is a service-oriented application used for developing custom apps for your organization.

Easily develop mobile and web apps for any business need—even if you have no technical or development experience—with Power Apps.

PowerApps helps us create simple apps quickly. Through PowerApps templates, we can customize our applications. With PowerApps, we can connect to our company data coming from

• Oracle
• SAP
• Salesforce
• Office365
• Azure
• Excel/CSV Files

Image src:Source

It simplifies the development cycle of the business apps and equips the business users and developers to build custom native, mobile, and web applications.

## PowerApps High level Architecture

Source: Microsoft

PowerApps has been a great feature. The idea here is that you are able to build forms, specifically for mobile devices and of course the Web. Design the app you want and connect it to hundreds of data sources.

The steps are given below to create a Power App based on On-Premises data.

• Login to Office 365 SharePoint site and click the list, where you want to add PowerApps.
• Click PowerApps link in the list ribbon given below.
• Enter the PowerApps name and it will redirect to the PowerApps Studio.

Click blank App.

## Power Fx

1. Microsoft Power Fx is the new name for the formula language for canvas app
2. Power Fx is expressed in human-friendly text.
3.  It's a low-code language that makers can work with directly in an Excel-like formula bar or Visual Studio Code text window.

In this article, we are going to test below PowerFx formulas with real time example.

• Calculates absolute values-ABs
• Logarithms -Log
• Power
• square roots -sqrt

Here, I have created a Table with sample collection on APP start of the PowerApps Application.

Collection is added to the sample gallery to display the values.

The above gallery has been created without using function PowerFx formula, now will see about using Abs function

Output

## Log

Returns the logarithm in base 10 of the number 100.

## Power

Returns 100 raised to the power of 3, or 100 * 100 * 100.

## Sqrt

Returns the number that, when multiplied by itself, results in 100.

## Conclusion

PowerFx is a language, and anybody can learn with basic logical thinking ideas on the programming side. PowerApps gives you the ability to connect with all kinds of data, which is not only available with your Tenant but connected to it via the Data Management Gateways.

PowerApps is truly the future of building custom forms and then making them available on mobile devices for your organization.