You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/data-platform/formula-columns.md
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: matp
5
5
reviewer: mattp123
6
6
ms.topic: how-to
7
7
ms.custom:
8
-
ms.date: 07/13/2022
8
+
ms.date: 03/22/2023
9
9
ms.subservice: teams
10
10
ms.author: dikamath
11
11
ms.reviewer: matp
@@ -27,11 +27,16 @@ Formula columns are columns that display a calculated value in a Microsoft Datav
27
27
1. Sign in to Power Apps at [https://make.powerapps.com](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc).
28
28
1. Select **Tables**, and then select the table where you want to add a formula column. [!INCLUDE [left-navigation-pane](../../includes/left-navigation-pane.md)]
29
29
1. Select the **Columns** area, and then select **New column**.
30
-
1. Enter a **Display name** for the column.
31
-
1. Optionally, enter a **Description** of the column.
32
-
1. In **Data type**, select ***fx* Formula**.
33
-
1. Enter the formula in the **Formula** box.
34
-
1. Select **Save**.
30
+
1. Enter the following information:
31
+
32
+
- A **Display name** for the column.
33
+
- Optionally, enter a **Description** of the column.
34
+
- In **Data type**, select ***fx* Formula**.
35
+
- Enter the formula in the **Formula** box.
36
+
- Select **Searchable** if you want this column to be available in views, charts, dashboards and Advanced Find.
37
+
-**Advanced options**:
38
+
- If the formula entered evaluates to a decimal value, expand **Advanced options** to change the number of points of precision, between 0 and 10. The default value is 2.
39
+
5. Select **Save**.
35
40
36
41
The following example creates a formula column called *Total price*. The *Number of units* column is a whole number data type. The *Price* column is a decimal data type.
37
42
@@ -57,11 +62,11 @@ For more information, go to [Operators in Power Apps](../canvas-apps/functions/o
57
62
You can display the following data types in a formula column:
58
63
59
64
- Text
60
-
- Decimal Number
65
+
- Decimal number
61
66
- Yes/No (boolean)
62
-
-Date
67
+
-Datetime
63
68
64
-
The Currency data type isn't currently supported.
69
+
The currency and date data types aren't currently supported.
65
70
66
71
## Function types
67
72
@@ -72,8 +77,8 @@ You can use the following function types in a formula column:
72
77
- Boolean
73
78
- Option Set
74
79
- DateTime (TZI)
75
-
- DateTime (User local) (limited to comparisons with other user local values and the DateAdd function)
76
-
- DateTime (Date only) (limited to comparisons with other date-only values, and the DateAdd function)
80
+
- DateTime (User local) (limited to comparisons with other user local values DateAdd, and DateDiff functions)
81
+
- DateTime (Date only) (limited to comparisons with other date-only values, DateAdd, and DateDiff functions)
77
82
- Currency
78
83
- Whole Number, promoted to Decimal
79
84
@@ -282,6 +287,12 @@ You can use the following scalar functions in a formula column:
282
287
283
288
\* The **Text** and **Value** functions only work with whole numbers, where no decimal separator is involved. The decimal separator varies across locales. Since formula columns are evaluated without locale knowledge, there's no way to properly interpret or generate the decimal separator.
284
289
290
+
### Function example
291
+
292
+
|Description |Example |
293
+
|---------|---------|
294
+
|Retrieve a date value. |`DateAdd(Now(), -1, TimeUnit.Year)`|
0 commit comments