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/canvas-apps/functions/function-clear-collect-clearcollect.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ In these examples, you'll erase and add to a collection that's named **IceCream*
83
83
84
84
| Formula | Description | Result |
85
85
| --- | --- | --- |
86
-
|**ClearCollect( IceCream, { Flavor: "Strawberry", Quantity: 300 } )**|Clears all data from the **IceCream** collection and then adds a record that includes a quantity of strawberry ice cream. |<style> img { max-width: none } </style><br><br>The **IceCream** collection has also been modified. |
86
+
|**ClearCollect( IceCream, { Flavor: "Strawberry", Quantity: 300 } )**|Clears all data from the **IceCream** collection and then adds a record that includes a quantity of strawberry ice cream. |<br><br>The **IceCream** collection has also been modified. |
87
87
|**Collect( IceCream, { Flavor: "Pistachio", Quantity: 40 }, { Flavor: "Orange", Quantity: 200 } )**|Adds two records to the **IceCream** collection that includes a quantity of pistachio and orange ice cream. |<br><br>The **IceCream** collection has also been modified. |
88
88
|**Clear( IceCream )**|Removes all records from the **IceCream** collection. |<br><br>The **IceCream** collection has also been modified. |
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-filter-lookup.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ The following examples use the **IceCream** [data source](../working-with-data-s
63
63
64
64
| Formula | Description | Result |
65
65
| --- | --- | --- |
66
-
|**Filter( IceCream, OnOrder > 0 )**|Returns records where **OnOrder** is greater than zero. |<style> img { max-width: none; } </style>|
66
+
|**Filter( IceCream, OnOrder > 0 )**|Returns records where **OnOrder** is greater than zero. ||
67
67
|**Filter( IceCream, Quantity + OnOrder > 225 )**|Returns records where the sum of **Quantity** and **OnOrder** columns is greater than 225. ||
68
68
|**Filter( IceCream, "chocolate" in Lower( Flavor ) )**|Returns records where the word "chocolate" appears in the **Flavor** name, independent of uppercase or lowercase letters. ||
69
69
|**Filter( IceCream, Quantity < 10 && OnOrder < 20 )**|Returns records where the **Quantity** is less than 10 and **OnOrder** is less than 20. No records match these criteria, so an empty table is returned. ||
@@ -97,15 +97,15 @@ To filter based on the **Name** column, set the **Items** property of the galler
97
97
98
98
| Formula | Description | Result |
99
99
| --- | --- | --- |
100
-
|**Filter( Customers, StartsWith( Name, SearchInput.Text ) )**|Filters the **Customers** data source for records in which the search string appears at the start of the **Name** column. The test is case insensitive. If the user types **co** in the search box, the gallery shows **Colleen Jones** and **Cole Miller**. The gallery doesn't show **Mike Collins** because the **Name** column for that record doesn't start with the search string. |<style> img { max-width: none } </style>|
101
-
|**Filter( Customers, SearchInput.Text in Name )**|Filters the **Customers** data source for records in which the search string appears anywhere in the **Name** column. The test is case insensitive. If the user types **co** in the search box, the gallery shows **Colleen Jones,****Cole Miller,** and **Mike Collins** because the search string appears somewhere in the **Name** column of all of those records. |<style> img { max-width: none } </style>|
102
-
|**Search( Customers, SearchInput.Text, "Name" )**|Similar to using the **in** operator, the **Search** function searches for a match anywhere within the **Name** column of each record. Note that you must enclose the column name in double quotation marks. |<style> img { max-width: none } </style>|
100
+
|**Filter( Customers, StartsWith( Name, SearchInput.Text ) )**|Filters the **Customers** data source for records in which the search string appears at the start of the **Name** column. The test is case insensitive. If the user types **co** in the search box, the gallery shows **Colleen Jones** and **Cole Miller**. The gallery doesn't show **Mike Collins** because the **Name** column for that record doesn't start with the search string. ||
101
+
|**Filter( Customers, SearchInput.Text in Name )**|Filters the **Customers** data source for records in which the search string appears anywhere in the **Name** column. The test is case insensitive. If the user types **co** in the search box, the gallery shows **Colleen Jones,****Cole Miller,** and **Mike Collins** because the search string appears somewhere in the **Name** column of all of those records. ||
102
+
|**Search( Customers, SearchInput.Text, "Name" )**|Similar to using the **in** operator, the **Search** function searches for a match anywhere within the **Name** column of each record. Note that you must enclose the column name in double quotation marks. ||
103
103
104
104
You can expand your search to include the **Company** column as well as the **Name** column:
105
105
106
106
| Formula | Description | Result |
107
107
| --- | --- | --- |
108
-
|**Filter( Customers, StartsWith( Name, SearchInput.Text ) || StartsWith( Company, SearchInput.Text ) )**|Filters the **Customers** data source for records in which either the **Name** column or the **Company** column starts with the search string (for example, **co**). The [**||** operator](operators.md) is *true* if either **StartsWith** function is *true*. |<style> img { max-width: none } </style>|
109
-
|**Filter( Customers, SearchInput.Text in Name || SearchInput.Text in Company )**|Filters the **Customers** data source for records in which either the **Name** column or the **Company** column contains the search string (for example, **co**) anywhere within it. |<style> img { max-width: none } </style>|
110
-
|**Search( Customers, SearchInput.Text, "Name", "Company" )**|Similar to using the **in** operator, the **Search** function searches the **Customers** data source for records in which either the **Name** column or the **Company** column contains the search string (for example, **co**) anywhere within it. The **Search** function is easier to read and write than **Filter** if you want to specify multiple columns and multiple **in** operators. Note that you must enclose the names of the columns in double quotation marks. |<style> img { max-width: none } </style>|
108
+
|**Filter( Customers, StartsWith( Name, SearchInput.Text ) || StartsWith( Company, SearchInput.Text ) )**|Filters the **Customers** data source for records in which either the **Name** column or the **Company** column starts with the search string (for example, **co**). The [**||** operator](operators.md) is *true* if either **StartsWith** function is *true*. ||
109
+
|**Filter( Customers, SearchInput.Text in Name || SearchInput.Text in Company )**|Filters the **Customers** data source for records in which either the **Name** column or the **Company** column contains the search string (for example, **co**) anywhere within it. ||
110
+
|**Search( Customers, SearchInput.Text, "Name", "Company" )**|Similar to using the **in** operator, the **Search** function searches the **Customers** data source for records in which either the **Name** column or the **Company** column contains the search string (for example, **co**) anywhere within it. The **Search** function is easier to read and write than **Filter** if you want to specify multiple columns and multiple **in** operators. Note that you must enclose the names of the columns in double quotation marks. ||
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-forall.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,8 +62,8 @@ To create this data source as a collection, set the **OnSelect** property of a *
62
62
63
63
| Formula | Description | Result |
64
64
| --- | --- | --- |
65
-
|**ForAll( Squares, Sqrt( Value ) )**<br><br>**Sqrt( Squares )**|For all the records of the input table, calculates the square root of the **Value** column. The **Sqrt** function can also be used with a single-column table, making it possible perform this example without using **ForAll**. |<style> img { max-width: none } </style>|
66
-
|**ForAll( Squares, Power( Value, 3 ) )**|For all the records of the input table, raises the **Value** column to the third power. The **Power** function does not support single-column tables. Therefore, **ForAll** must be used in this case. |<style> img { max-width: none } </style>|
65
+
|**ForAll( Squares, Sqrt( Value ) )**<br><br>**Sqrt( Squares )**|For all the records of the input table, calculates the square root of the **Value** column. The **Sqrt** function can also be used with a single-column table, making it possible perform this example without using **ForAll**. ||
66
+
|**ForAll( Squares, Power( Value, 3 ) )**|For all the records of the input table, raises the **Value** column to the third power. The **Power** function does not support single-column tables. Therefore, **ForAll** must be used in this case. ||
67
67
68
68
### Using a connection
69
69
The following examples use the **Expressions**[data source](../working-with-data-sources.md):
@@ -78,8 +78,8 @@ This example also uses a [Microsoft Translator](../connections/connection-micros
78
78
79
79
| Formula | Description | Result |
80
80
| --- | --- | --- |
81
-
|**ForAll( Expressions, MicrosoftTranslator.Translate( Value, "es" ) )**|For all the records in the Expressions table, translate the contents of the **Value** column into Spanish (abbreviated "es"). |<style> img { max-width: none } </style>|
82
-
|**ForAll( Expressions, MicrosoftTranslator.Translate( Value, "fr" ) )**|For all the records in the Expressions table, translate the contents of the **Value** column into French (abbreviated "fr"). |<style> img { max-width: none } </style>|
81
+
|**ForAll( Expressions, MicrosoftTranslator.Translate( Value, "es" ) )**|For all the records in the Expressions table, translate the contents of the **Value** column into Spanish (abbreviated "es"). ||
82
+
|**ForAll( Expressions, MicrosoftTranslator.Translate( Value, "fr" ) )**|For all the records in the Expressions table, translate the contents of the **Value** column into French (abbreviated "fr"). ||
83
83
84
84
### Copying a table
85
85
Sometimes you need to filter, shape, sort, and manipulate data. Power Apps provides a number of functions for doing this, such as **Filter**, **AddColumns**, and **Sort**. Power Apps treats each table as a value, allowing it to flow through formulas and be consumed easily.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-ismatch.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,9 +205,9 @@ Set( pangram, "The quick brown fox jumps over the lazy dog." )
205
205
| Formula | Description | Result |
206
206
|---------|-------------|--------|
207
207
|`Match( pangram, "THE", IgnoreCase )`| Find all matches of "THE" in the text string that the **pangram** variable contains. The string contains two matches, but only the first is returned because you're using **Match** and not **MatchAll**. The SubMatches column is empty because no sub-matches were defined. | {<br>FullMatch: "The",<br>SubMatches: [ ],<br>StartMatch: 32<br>} |
208
-
|`MatchAll( pangram, "the" )`| Find all matches of "the" in the text string that the **pangram** variable contains. The test is case sensitive, so only the second instance of "the" is found. The SubMatches column is empty because no sub-matches were defined. |<style> img { max-width: none } </style>|
209
-
|`MatchAll( pangram, "the", IgnoreCase )`| Find all matches of "the" in the text string that the **pangram** variable contains. In this case, the test is case insensitive, so both instances of the word are found. The SubMatches column is empty because no sub-matches were defined. |<style> img { max-width: none } </style>|
210
-
|`MatchAll( pangram, "\b\wo\w\b" )`| Finds all three-letter words with an "o" in the middle. Note that "brown" is excluded because it's not a three-letter word and, therefore, fails to match "\b" (word boundary). |<style> img { max-width: none } </style>|
208
+
|`MatchAll( pangram, "the" )`| Find all matches of "the" in the text string that the **pangram** variable contains. The test is case sensitive, so only the second instance of "the" is found. The SubMatches column is empty because no sub-matches were defined. ||
209
+
|`MatchAll( pangram, "the", IgnoreCase )`| Find all matches of "the" in the text string that the **pangram** variable contains. In this case, the test is case insensitive, so both instances of the word are found. The SubMatches column is empty because no sub-matches were defined. ||
210
+
|`MatchAll( pangram, "\b\wo\w\b" )`| Finds all three-letter words with an "o" in the middle. Note that "brown" is excluded because it's not a three-letter word and, therefore, fails to match "\b" (word boundary). ||
211
211
|`Match( pangram, "\b\wo\w\b\s\*(?<between>\w.+\w)\s\*\b\wo\w\b" )`| Matches all the characters between "fox" and "dog". | {<br>between: "jumps over the lazy",<br>FullMatch: "fox jumps over the lazy dog",<br>SubMatches: [ "jumps over the lazy" ],<br>StartMatch: 17<br> } |
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-left-mid-right.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ If the starting position is negative or beyond the end of the string, **Mid** re
33
33
34
34
**String* - Required. The string to from which to extract the result.
35
35
**StartingPosition* - Required (**Mid** only). The starting position. The first character of the string is position 1.
36
-
**NumberOfCharacters* - Required (**Left** and **Right** only). The number of characters to return. If omitted for the **Mid** function, the function returns the portion from the starting position until the end of the string.
36
+
**NumberOfCharacters* - Required (**Left** and **Right** only). The number of characters to return. If omitted for the **Mid** function, the function returns the portion from the starting position until the end of the string.
@@ -59,7 +59,7 @@ Each example in this section extracts strings from the **Address** [column](../w
59
59
60
60
| Formula | Description | Result |
61
61
| --- | --- | --- |
62
-
|**Left( ShowColumns( People, "Address" ), 8 )**|Extracts the first eight characters of each string. |<style> img { max-width: none } </style>|
62
+
|**Left( ShowColumns( People, "Address" ), 8 )**|Extracts the first eight characters of each string. ||
63
63
|**Mid( ShowColumns( People, "Address" ), 5, 7 )**|Extracts the middle seven characters of each string, starting with the fifth character. ||
64
64
|**Right( ShowColumns( People, "Address" ), 7 )**|Extracts the last seven characters of each string. ||
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-len.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,6 @@ For the first example in this section, the data source is named **People** and c
47
47
48
48
| Formula | Description | Result |
49
49
| --- | --- | --- |
50
-
|**Len( ShowColumns( People, "Address" ) )**|In the **Address**[column](../working-with-tables.md#columns) of the **People** table:<br><ul><li>Measures the length of each string.</li><li>Returns a single-column table that contains the length of each string.</li> |<style> img { max-width: none } </style>|
50
+
|**Len( ShowColumns( People, "Address" ) )**|In the **Address**[column](../working-with-tables.md#columns) of the **People** table:<br><ul><li>Measures the length of each string.</li><li>Returns a single-column table that contains the length of each string.</li> ||
51
51
|**Len( [ "Hello", "to the", "World", "" ] )**|In the **[Value](function-value.md)** column of the inline table:<br><ul><li>Measures the length of each string.</li><li>Returns a single-column table that contains the length of each string.</li> ||
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-lower-upper-proper.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Each formula returns a single-column table that contains the converted strings.
56
56
57
57
| Formula | Description | Result |
58
58
| --- | --- | --- |
59
-
|**Lower( ShowColumns( People, "Address" ) )**|Converts any letter that's lowercase to uppercase. |<style> img { max-width:none; } </style>|
59
+
|**Lower( ShowColumns( People, "Address" ) )**|Converts any letter that's lowercase to uppercase. ||
60
60
|**Upper( ShowColumns( People, "Address" ) )**|Converts any letter that's lowercase to uppercase. ||
61
61
|**Proper( ShowColumns( People, "Address" ) )**|Converts any first letter of a word that's lowercase to uppercase, and converts any other letter that's uppercase to lowercase. ||
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-numericals.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,9 @@ The examples in this section use a [data source](../working-with-data-sources.md
64
64
65
65
| Formula | Description | Result |
66
66
| --- | --- | --- |
67
-
|**Abs( ValueTable )**|Returns the absolute value of each number in the table. |<style> img { max-width: none } </style>|
68
-
|**Exp( ValueTable )**|Returns *e* raised to the power of each number in the table. |<style> img { max-width: none } </style>|
69
-
|**Ln( ValueTable )**|Returns the natural logarithm of each number in the table. |<style> img { max-width: none } </style>|
67
+
|**Abs( ValueTable )**|Returns the absolute value of each number in the table. ||
68
+
|**Exp( ValueTable )**|Returns *e* raised to the power of each number in the table. ||
69
+
|**Ln( ValueTable )**|Returns the natural logarithm of each number in the table. ||
70
70
|**Sqrt( ValueTable )**|Returns the square root of each number in the table ||
0 commit comments