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-column-data-types.md
+18-15Lines changed: 18 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Create a formula column that returns a decimal number.
41
41
:::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 using 'Price Per Unit' * 150.":::
42
42
1. Expand **Advanced options**, and then set the required number of decimal places.
43
43
:::image type="content" source="media/formula-columns-decimal-adv-options.png" alt-text="Screenshot of a decimal formula column definition.":::
44
-
1. Select **Save**. By default, **Formula data type** is set to Decimal and a Decimal formula field gets created.
44
+
1. Select **Save**. By default, **Formula data type** is set to **Decimal** and a decimal formula field is created.
45
45
46
46
## Create a whole number formula column
47
47
@@ -50,7 +50,7 @@ Create a formula column that returns a whole number.
50
50
1. Select **Data type** as ***fx* Formula**.
51
51
1. Enter a formula that returns a numeric value in the **Formula** bar.
52
52
This example creates a formula column called *Number of Units*. *Total Price* and *Price Per Unit* columns are of decimal data type.
53
-
:::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..":::
53
+
:::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.":::
54
54
1. Expand **Advanced options**, and select **Whole number** as the **Formula data type** and set the required format for whole number column.
55
55
:::image type="content" source="media/formula-columns-wholenum-adv-options.png" alt-text="Screenshot of a whole number formula column definition using 'Total Price' / 'Price Per Unit'.":::
56
56
1. Select **Save**.
@@ -61,7 +61,7 @@ Create a formula column that returns float.
61
61
62
62
1. Select **Data type** as ***fx* Formula**.
63
63
1. Enter a formula that returns a floating point number in the **Formula** bar.
64
-
Enter a formula that returns a floating point number in the Formula bar. This example creates a formula column called Total Price. Weight is a simple float column and Price Per Gm is a simple decimal column.
64
+
Enter a formula that returns a floating point number in the **Formula** bar. This example creates a formula column called *Total Price*. *Weight* is a simple float column and *Price Per Gm* is a simple decimal column.
65
65
:::image type="content" source="media/formula-columns-float-fd.png" alt-text="Screenshot of a creating float formula column":::
66
66
1. Expand **Advanced options**, and set the required number of decimal places.
67
67
1. Select **Save**.
@@ -79,11 +79,12 @@ Enter a formula that returns a floating point number in the Formula bar. This ex
79
79
To create a choice formula column, either global choice or local choice of a simple choice column can be used as result.
80
80
81
81
### Using global choice
82
+
82
83
Create a global choice. This example creates a global choice called *Task Priority*.
83
84
84
-
:::image type="content" source="media/global-choice-def.png" alt-text="Screenshot of a global choice.":::
85
-
86
-
Create a formula column that returns choice using a global choice.
85
+
:::image type="content" source="media/global-choice-def.png" alt-text="Screenshot of a global choice.":::
86
+
87
+
Create a formula column that returns a choice using a global choice.
87
88
88
89
1. Select **Data type** as ***fx* Formula**.
89
90
1. Enter a formula that returns a choice value in the **Formula** bar.
@@ -92,24 +93,26 @@ Create a formula column that returns choice using a global choice.
92
93
1. Select **Save**. Notice that the column created is of data type **Choice fx**.
93
94
94
95
### Using local choice from a simple choice column
95
-
1. Create a simple choice column. This example creates a *Task Priority* simple choice column on *Account* entity.
96
-
97
-
:::image type="content" source="media/local-choice-def.png" alt-text="Screenshot of a creating a simple choice column.":::
96
+
97
+
Create a simple choice column. This example creates a *Task Priority* simple choice column for the account table.
98
+
99
+
:::image type="content" source="media/local-choice-def.png" alt-text="Screenshot of a creating a simple choice column.":::
98
100
99
101
Create a formula column that returns choice using a local choice of a simple choice column.
100
102
101
103
1. Select **Data type** as ***fx* Formula**.
102
104
1. Enter a formula that returns a choice value in the **Formula** bar.
103
-
This example creates a formula column *Priority* on *Account* entity using local choice of a choice column *Task Priority*on *Account* entity.
105
+
This example creates a formula column *Priority* on *Account* entity using local choice of a choice column *Task Priority*for the account table.
104
106
:::image type="content" source="media/formula-columns-local-choice-fd.png" alt-text="Screenshot of a creating local choice formula column.":::
105
107
1. Select **Save**.
106
108
107
109
### Guidelines for working with choices in formula columns
108
-
1. Local choices of related table's simple choice column cannot be used as result type in formula columns.
109
-
2. Options from same option set should be used for all result arguments in choice formula columns.
110
-
3. A choice used by a formula column cannot be updated.
111
-
4. Options of a choice cannot be passed as an argument to string functions. Value function can be used to return numeric value of an option.
112
-
5. Formula column's dependent local choice column or global choice cannot be deleted.
110
+
111
+
- Local choices of related table's simple choice column can't be used as a result type in formula columns.
112
+
- Options from the same option set should be used for all result arguments in choice formula columns.
113
+
- A choice used by a formula column can't be updated.
114
+
- Options of a choice can't be passed as an argument to string functions. Value function can be used to return the numeric value of an option.
115
+
- Formula column's dependent local choice column or global choice can't be deleted.
0 commit comments