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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AmazingRandom
Helper I
Helper I

Filtering a name from a row of names

I am doing some training and learning in my PBI skills and I am stuck in this next step where I am trying to create a filter for a sequence of names. 

Here is how the column looks like:

Appearance
Owen, Tia, Stu, Matt, Arthur, Andy, James, David, ODY, Shane, Sid
Owen, Stu, Matt, Arthurt, Andy, James,Brendan, ODY, Shane
Owen, Stu, Matt, Arthurt, Andy, Brendan, ODY, Jody, Doug
Owen, Stu, Matt, Andy, James, Brendan, ODY, Shane, Jody, Doug
Owen, Matt, Arthur, Andy, James, Brendan, ODY, Shane, Jody, Doug
Owen, Stu, Matt, Arthur, Andy, Brendan, Shane, Doug, Brano, Jake
Owen, Stu, Matt, Andy, ODY, Shane, Doug, Will, Jake
Owen, Stu, Matt, Arthur, ODY, Shane, Doug, Will, Jake

 

How can I create a filter where I can select for example all rows where James attended? I know to us it sounds easy logically but I am struggling to find a way to create a measure for this

3 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@AmazingRandom , One is you can use text filter.

Second Split the column, using split by delimiter into rows and rhen you can filter.

Thrid is same but you split dimension not in table

 

Text Filter Slicer and how to search on Multiple columns: https://youtu.be/RbeZRJ3uAZE

 

Power Query Split Column , Split Column By Delimiter: https://youtu.be/FyO9Vmhcfag

 

Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c
https://medium.com/@amitchandak/power-bi-search-text-parts-in-text-ad2f9783ffa2

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

HamedM1125
Advocate III
Advocate III

@AmazingRandom  

If your dataset is not complex then you can achieve this manually by the following method, else go by split column by delimeter method. 
Manual effort:
1. Create a separate column for each name to search the text:

Owen = IF(SEARCH("Owen",Tablee[Appearance],1,BLANK()) <> BLANK(),"Yes","No")
2. Create a final column If a name is available then mark it as Yes else No.
All availability = IF(Tablee[Owen] = "Yes" && Tablee[Arthur] = "Yes" && Tablee[James] = "Yes","Yes", "No")
3.  You can add the All availability column in a slicer and filter "Yes" if you need to find someone's presence in all the  rows.  
HamedM1125_0-1730783171940.png

 


 

View solution in original post

ThxAlot
Super User
Super User

If this question comes from your entry-level tutorial, you can now save your time by dumping away. Either the person who prepares the tutorial doesn't know what DAX is for, or it's used for learners who have already quite a bit of knowledge of PBI.

ThxAlot_0-1730798997907.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

4 REPLIES 4
v-stephen-msft
Community Support
Community Support

Hi @AmazingRandom ,

 

Did the users above help you? I agree with ThxAlot‘s solution.

If so, accept the reply as a solution. This will make it easier for the future people to find the answer quickly.

If not, please provide a more detailed description, preferably some virtual sample data, and the expected results.

 

Best Regards,

Stephen Tao

 

ThxAlot
Super User
Super User

If this question comes from your entry-level tutorial, you can now save your time by dumping away. Either the person who prepares the tutorial doesn't know what DAX is for, or it's used for learners who have already quite a bit of knowledge of PBI.

ThxAlot_0-1730798997907.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



HamedM1125
Advocate III
Advocate III

@AmazingRandom  

If your dataset is not complex then you can achieve this manually by the following method, else go by split column by delimeter method. 
Manual effort:
1. Create a separate column for each name to search the text:

Owen = IF(SEARCH("Owen",Tablee[Appearance],1,BLANK()) <> BLANK(),"Yes","No")
2. Create a final column If a name is available then mark it as Yes else No.
All availability = IF(Tablee[Owen] = "Yes" && Tablee[Arthur] = "Yes" && Tablee[James] = "Yes","Yes", "No")
3.  You can add the All availability column in a slicer and filter "Yes" if you need to find someone's presence in all the  rows.  
HamedM1125_0-1730783171940.png

 


 

amitchandak
Super User
Super User

@AmazingRandom , One is you can use text filter.

Second Split the column, using split by delimiter into rows and rhen you can filter.

Thrid is same but you split dimension not in table

 

Text Filter Slicer and how to search on Multiple columns: https://youtu.be/RbeZRJ3uAZE

 

Power Query Split Column , Split Column By Delimiter: https://youtu.be/FyO9Vmhcfag

 

Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c
https://medium.com/@amitchandak/power-bi-search-text-parts-in-text-ad2f9783ffa2

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.