Using ‘with’ function in Power Apps.


In this blog we will explain you how to use “with” Function in canvas app.

Let’s get started with the few simple steps.

  • Create a new app by clicking on the left menu of the home page of the power apps. You can access that by entering make.PowerApps.com in your browser and login with you credentials.
  • After that click on the new app and select the canvas app after that select the canvas layout for the app.

So, before that let me explain “With” Function

The "With" function in Power Apps is used to temporarily change the context within a formula. It allows you to work with a specific context, making it easier to reference properties, controls, and variables within that context. The basic syntax of the "With" function is as follows:

Syntax: With (
Context,
Expression
)

  1. Context: This is the context or item you want to work with. It could be a record, a variable, or any other context in which you want to perform operations.
  2. Expression: This is the formula or set of operations you want to perform within the specified context.
  • Now in the Screen add 5 Text labels, And 3 text inputs./li>
  1. 1 for heading of value 1.
  2. After that add a text input add text input where you can enter your 1st value.
  3. After that add a label in which you can enter operator for mathematical operations.
  4. And repeat the process as shown below.
  5. Now add a Text box where we can see the total value of the equation.
  • Add this function in the text property of the total text box
  • In the image below you can see how this app works.

If you have any doubts or questions related to this blog, you can Contact us by Email: info@voxtus.com

Abhishek Kumar
Power Apps Consultant