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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Text filtering

I am a novice to PowerBI and DAX.

I have a dataset (dataset1) with a description of medical conditions of  patients written in long text.

I have a second dataset (dataset2) with a list of medical conditions I am interested in analysing.

How do I filter dataset1 to show me only patients  with medical conditions listed in dataset2?

Appreciate any help.

Xwix

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Since you have two tables, you could also explore fuzzy merging in power query.

 

https://www.poweredsolutions.co/2019/03/26/fuzzy-matching-in-power-bi-power-query/

 

If you happen to have Power BI premium, you could also explore AI text analytics.

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-ai-insights

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

You can search the table 1 by keywords, however you need to define them.

Some examples can help with that.



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

Proud to be a Super User!



Greg_Deckler
Super User
Super User

Difficult to answer with the information provided. Please share sample de-identified data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

I developed this Quick Measure for a similar reason but no idea if it would fit your data:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Patient-Cohort-AND-Slicer/m-p/391883#M130



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.