Power Apps is a suite of apps, services, connectors, and data platforms that provides a rapid application development environment to build custom apps for your business needs. More Details https://docs.microsoft.com/en-us/powerapps/powerapps-overview.
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 Atan function returns the arctangent, or inverse tangent, of its argument. The arctangent is the angle whose tangent is the argument. The returned angle is given in radians in the range -π/2 to π/2. The General syntax is Atan(Number).
Reading this article, you can learn how to perform the Atan 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 https://powerapps.microsoft.com/en-us/ in the browser for Power apps,
Create an account with your Organisation Mail ID and log in, After login your Power Apps account,\
![Power apps]()
Step 2. First, Click Create (+ ) and Select the Canvas app from blank.
![Canvas app]()
Next, Give the App name as PADAtan and the Format as Tablet.
![App name]()
![Name]()
Now, In the Power Apps studio environment, Select the Create a Form option,
![Power Apps studio environment]()
![Properties]()
Step 3. To test the Power function, First Rename the Screen name as SCRPAD.
![Power function]()
Next, Insert a Label control and set the Name and Text property as LblTitle and ATan function in canvas App using PowerFx with Power apps.
![ATan function in canvas App]()
Next, Insert a Label control and set the Name and Text property as LblNum and " Enter the Number:"
![Enter the Number]()
Insert a TextInput control and set the Name property as TxtNum and Format property as Number
![TextInput]()
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 Atan function in Power Fx.
![Update Context]()
Insert Label control and set the Name property as LblRes and Text property as "The arctangent "& RES.Text &" radians is: " &Atan(RES.Text) for displaying Results.
![Insert Label control]()
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 Textboxes and Result.
![Button control]()
Finally, the form design looks like,
![Form design]()
Step 4. Now we can see the preview of your App in Power Apps Studio, and The output of the PADAtan is,
![PADAtan]()
After clicking the Calculate Button,
The Browser Display is,
![Browser Display]()
The Apple iPhone Display is,
![Apple iPhone Display]()
The Tablet Display is,
![Tablet Display]()
After clicking the Clear Button,
![Clear Button]()
Summary
Now, you have successfully tested the Power Fx – Atan inverse function in the Power Apps Studio environment.