From 0b3f08c2cbf27d15d33741621123231c07f7a537 Mon Sep 17 00:00:00 2001 From: Yawer Iqbal Date: Sat, 21 Jun 2025 07:19:29 +0500 Subject: [PATCH] Updated Formulas as per current working and syntex of Canvas App Improved the formulas, as per current working having TextBox2 + TextBox1 shows error "Invalid argument type". --- powerapps-docs/maker/canvas-apps/working-with-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerapps-docs/maker/canvas-apps/working-with-variables.md b/powerapps-docs/maker/canvas-apps/working-with-variables.md index 7f33c9e524..cc56d3feb2 100644 --- a/powerapps-docs/maker/canvas-apps/working-with-variables.md +++ b/powerapps-docs/maker/canvas-apps/working-with-variables.md @@ -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)