Skip to content

Updated Formulas as per current working and syntex of Canvas App #5457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions powerapps-docs/maker/canvas-apps/working-with-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ Excel doesn't have variables. The value of a cell that contains a formula change

Apps that you create in Power Apps behave very much like Excel. Instead of updating cells, you can add controls wherever you want on a screen and name them for use in formulas.

For example, you can replicate the Excel behavior in an app by adding a **[Label](controls/control-text-box.md)** control, named **Label1**, and two **[Text input](controls/control-text-input.md)** controls, named **TextInput1** and **TextInput2**. If you then set the **[Text](controls/properties-core.md)** property of **Label1** to **TextInput1 + TextInput2**, it will always show the sum of whatever numbers are in **TextInput1** and **TextInput2** automatically.
For example, you can replicate the Excel behavior in an app by adding a **[Label](controls/control-text-box.md)** control, named **Label1**, and two **[Text input](controls/control-text-input.md)** controls, named **TextInput1** and **TextInput2**. If you then set the **[Text](controls/properties-core.md)** property of **Label1** to **TextInput1.Text + TextInput2.Text**, it will always show the sum of whatever numbers are in **TextInput1** and **TextInput2** automatically.

![Calculating the sum of two numbers in Power Apps.](media/working-with-variables/recalc1.png)

Notice that the **Label1** control is selected, showing its **[Text](controls/properties-core.md)** formula in the formula bar at the top of the screen. Here we find the formula **TextInput1 + TextInput2**. This formula creates a dependency between these controls, just as dependencies are created between cells in an Excel workbook. Let's change the value of **TextInput1**:
Notice that the **Label1** control is selected, showing its **[Text](controls/properties-core.md)** formula in the formula bar at the top of the screen. Here we find the formula **TextInput1.Text + TextInput2.Text**. This formula creates a dependency between these controls, just as dependencies are created between cells in an Excel workbook. Let's change the value of **TextInput1**:

![Animation of calculating the sum of two numbers in Power Apps.](media/working-with-variables/recalc2.gif)

Expand Down