Skip to content

Commit 4e4ec61

Browse files
authored
Live publish
2 parents 485ecf7 + 7d23c9e commit 4e4ec61

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

powerapps-docs/maker/data-platform/formula-columns.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: matp
55
reviewer: mattp123
66
ms.topic: how-to
77
ms.custom:
8-
ms.date: 07/13/2022
8+
ms.date: 03/22/2023
99
ms.subservice: teams
1010
ms.author: dikamath
1111
ms.reviewer: matp
@@ -27,11 +27,16 @@ Formula columns are columns that display a calculated value in a Microsoft Datav
2727
1. Sign in to Power Apps at [https://make.powerapps.com](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc).
2828
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)]
2929
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**.
3540

3641
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.
3742

@@ -57,11 +62,11 @@ For more information, go to [Operators in Power Apps](../canvas-apps/functions/o
5762
You can display the following data types in a formula column:
5863

5964
- Text
60-
- Decimal Number
65+
- Decimal number
6166
- Yes/No (boolean)
62-
- Date
67+
- Datetime
6368

64-
The Currency data type isn't currently supported.
69+
The currency and date data types aren't currently supported.
6570

6671
## Function types
6772

@@ -72,8 +77,8 @@ You can use the following function types in a formula column:
7277
- Boolean
7378
- Option Set
7479
- 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)
7782
- Currency
7883
- Whole Number, promoted to Decimal
7984

@@ -282,6 +287,12 @@ You can use the following scalar functions in a formula column:
282287

283288
\* 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.
284289

290+
### Function example
291+
292+
|Description |Example |
293+
|---------|---------|
294+
|Retrieve a date value. | `DateAdd(Now(), -1, TimeUnit.Year)` |
295+
285296
### See also
286297

287298
[Types of columns](types-of-fields.md)
Loading

0 commit comments

Comments
 (0)