Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sundayDriver
Microsoft Employee
Microsoft Employee

Let Text.PositionOfAny accept a list of strings than characters

8 REPLIES 8
v-zhenbw-msft
Community Support
Community Support

Hi @sundayDriver ,

 

Do you want to find the position of one column in the other? Like the following screenshot.

 

L1.jpg

 

Maybe you can use the Text.PositionOf to get the position, or you can use DAX function, like SEARCH, FIND.

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-zhenbw-msft ,

Here's an example of what I meant:

Sentence = "Today is great and the weather is warm. Yesterday was good but tomorrow will be better."

Ideally it would be Text.PositionOfAny(Sentence, {"tod", "tomor", "yester"})

I second this request. It is inconsisent for Text.PositionOf to allow strings but for Text.PositionOfAny to only accept characters.

MFelix
Super User
Super User

Hi @sundayDriver ,

 

What is the question in this post? Can you elaborate a little more?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix 

I think I cannot find a clickable URL other than power BI portugal? Am I missing something?

See the example that I posted as an answer to @v-zhenbw-msft comment.

Hi @sundayDriver ,

 

Check the blog post below can give you a good alternative.

http://www.girlswithpowertools.com/2018/06/search-text-using-list-of-keywords/

 

I have made a pbi using this techique check if this is what you need.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @sundayDriver ,

 

Do you want to get the position of each word in this sentence?

We suggest you to create three custom columns to show the result.

 

let1.jpg

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

BTW, pbix as attached.

Hi @sundayDriver ,

 

I did not post any URL, the link you get is from my signature. I will check the example and get back to you.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.