Skip to content

Commit 4b48b0f

Browse files
authored
Merge pull request #10263 from MicrosoftDocs/updateFormulaColDoc
Update formula field public doc for whole num data type
2 parents e967d55 + 6ee285f commit 4b48b0f

File tree

5 files changed

+37
-4
lines changed

5 files changed

+37
-4
lines changed

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

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: sanjeevgoyalmsft
55
reviewer: mattp123
66
ms.topic: how-to
77
ms.custom:
8-
ms.date: 04/30/2024
8+
ms.date: 06/28/2024
99
ms.subservice: teams
1010
ms.author: dikamath
1111
ms.reviewer: matp
@@ -14,6 +14,7 @@ contributors:
1414
- mattp123
1515
- sanjeevgoyalmsft
1616
- JimDaly
17+
- neerajatmsft
1718
---
1819
# Work with formula columns
1920

@@ -135,11 +136,12 @@ For more information, go to [Operators in Power Apps](../canvas-apps/functions/o
135136
You can display the following data types in a formula column:
136137

137138
- Text
138-
- Decimal number
139+
- [Decimal number](#create-a-decimal-formula-column)
139140
- Choice Yes/No (boolean)
140141
- Datetime
142+
- [Whole Number](#create-a-whole-number-formula-column)
141143

142-
The currency, whole number, and choice (formerly option sets) data types aren't currently supported.
144+
The currency, and choice (formerly option sets) data types aren't currently supported.
143145

144146
## Function types
145147

@@ -367,6 +369,36 @@ You can use the following scalar functions in a formula column:
367369
|---------|---------|
368370
|Retrieve a date value. | `DateAdd(UTCNow(),-1,TimeUnit.Years)` |
369371

372+
## Create a decimal formula column
373+
374+
Create a formula column that returns a decimal number.
375+
376+
1. When you create a column, enter the following information:
377+
- A **Display name** for the column.
378+
- Optionally, enter a **Description** of the column.
379+
1. For **Data type** select ***fx* Formula**.
380+
1. Enter a formula that returns a numeric value in the **Formula** bar.
381+
This example creates a formula column called *Total Amount*. The *Price Per Unit* column is of decimal data type.
382+
:::image type="content" source="media/formula-columns-decimal-fd.png" alt-text="Screenshot of a create a new formula column pane for use with a decimal number.":::
383+
1. Expand **Advanced options**, select **Decimal** as the **Formula data type**, and then set the required number of decimal places.
384+
:::image type="content" source="media/formula-columns-decimal-adv-options.png" alt-text="Screenshot of a decimal formula column definition.":::
385+
1. Select **Save**.
386+
387+
## Create a whole number formula column
388+
389+
Create a formula column that returns a whole number.
390+
391+
1. When you create a column, enter the following information:
392+
- A **Display name** for the column.
393+
- Optionally, enter a **Description** of the column.
394+
1. For **Data type** select ***fx* Formula**.
395+
1. Enter a formula that returns a numeric value in the **Formula** bar.
396+
This example creates a formula column called *Number of Units*. *Total Price* and *Price Per Unit* columns are of decimal data type.
397+
:::image type="content" source="media/formula-columns-wholenum-fd.png" alt-text="Screenshot of a create a new formula column pane for use with a whole number..":::
398+
1. Expand **Advanced options**, and select **Whole number** as the **Formula data type** and set the required format for whole number column.
399+
:::image type="content" source="media/formula-columns-wholenum-adv-options.png" alt-text="Screenshot of a whole number formula column definition.":::
400+
1. Select **Save**.
401+
370402
## Guidelines and limitations
371403

372404
This section describes guidelines and the known limitations with formula columns in Dataverse.
@@ -442,6 +474,8 @@ This section describes guidelines and the known limitations with formula columns
442474
- Duplicate detection rules aren't triggered on formula columns.
443475
- The `Now` function can be used with formula columns. `Now()` has user local behavior and `UTCNow()` has time zone independent behavior.
444476
- You can set the precision property for decimal columns.
477+
- Default formula data type value is set to **Decimal** for numeric value returning formulas.
478+
- Updating whole number formula column's format isn't supported.
445479

446480
### Power Fx functions not currently supported
447481

@@ -453,7 +487,6 @@ This section describes guidelines and the known limitations with formula columns
453487

454488
### Formula columns of data types that can't be produced
455489

456-
- Whole Number
457490
- Choices (except Yes/No choice)
458491
- Currency
459492

Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)