ACot function from Power Fx using Power Apps

Power Apps is a suite of apps, services, connectors, and data platforms that provide a rapid application development environment to build custom apps for your business needs. More Details

Power Fx is the low-code language that will be used across the Microsoft Power Platform. It's a general-purpose, strong-typed, declarative, and functional programming language.

The Acot function returns the principal value of the arccotangent, or inverse cotangent, of its argument. The returned angle is given in radians in the range 0 (zero) to π. The General syntax is Acot(Number).

Reading this article, you can learn how to perform the ACOT function from Power Fx using Microsoft Power Apps. Also, you will be able to learn Button control, Label control, and text input control in the Power Apps environment.

Step 1. Open the URL in the browser for Power apps.

Create an account with your Organisation Mail ID and log in to it, After logging into your Power Apps account.

 Mail ID

Step 2. First, Click Create (+ ) and Select the Canvas app from blank.

Canvas app

Power App

Next, Give the App name as PADACot and Format as Tablet.


Now, In the Power Apps studio environment, Select the Create a Form option.


Step 3. To test the Power function, First Rename the Screen name as SCRPAD.


Next, Insert a Label control and set the Name and Text property as LblTitle and ACot function in canvas App using PowerFx with Power apps.

Text Label

Next, Insert a Label control and set the Name and Text property as LblNum and " Enter the Number."


Insert a TextInput control and set the Name property as TxtNum and Format property as Number.


Insert a Button control and set the Name property as BtnCal and Text property as Calculate and set OnSelect action as UpdateContext({RES:(TxtNum)}); for testing ACot function in Power Fx.

 Button Control

Insert Label control and set the Name property as LblRes and Text property as "The arccotangent of "& RES.Text &" radians is: " &ACot(RES.Text) for displaying Results.


Insert a Button control and set the Name property as BtnClr, Text property as Clear, and OnSelect Property in Action as Reset(TxtNum); UpdateContext({LblRes:"}); for reset the Textbox and Result


Finally, the form design looks like this.


Step 4. Now we can see the preview of your App in Power Apps Studio, and The output of the PADACot is.

 Apps Studio

After clicking the Calculate Button.

The Browser Display is.

 Calculate Button

The Apple iPhone Display is.

 iPhone Display

The Tablet Display is.

 Tablet Display

After clicking the Clear Button.

 Clear Button


Now, you have successfully tested the Power Fx – ACot inverse function in the Power Apps Studio environment.

Similar Articles