Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added examples to Find function #2207

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions power-platform/power-fx/reference/function-find.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,13 @@ The **Find** function looks for a string within another string and is case sensi
- _WithinString_ - Required. The string to search within.
- _StartingPosition_ - Optional. The starting position to start searching. Position 1 is the first character.

## Examples

| Formula | Description | Result |
| ------------------------------------------------ | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
| **Find("World", "Hello World")** | Returns the starting position of **"World"**. | 7 |
| **Find("World", "Hello World, Hello World", 10)** | Returns the starting position of the first occurence of **"World"** after the 10th character. | 20 |
| **Find("Mars", "Hello World")** | Returns blank since the FindString is not in the WithinString | Blank() |


[!INCLUDE[footer-include](../../includes/footer-banner.md)]