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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cham
Post Patron
Post Patron

Filter Names

Hi,

I want to filter specific names in my filter. How I can do that?

 

I am having following data set. In my slicer I want to show only names that mentioned in that column (Ex:Peter, Jack, Mary) Only those data I want to show in my slicer. I dont want to show other data. How I can do that?

caller id.PNG

1 ACCEPTED SOLUTION
MariaP
Solution Supplier
Solution Supplier

Hi @cham ,

 

It's best to supply sample of your data so community can better help. It depends on how consistant the content of the rows you want to exclude  is.

You can try the same as idea as mentioned but this time use the excluding option for the fields you do not want if you know they will always be the same. It is not an exact match so Driver or Customer is enough to exclude :

#"Filtered Rows" = Table.SelectRows(#"Changed Type", each not Text.Contains([Column1], "Driver:Land") and not Text.Contains([Column1], "Customer Service"))

 DriverLandFilter.PNG

 

 

Another option may be to create a new table with only the names as a reference table.

 

Maria

View solution in original post

4 REPLIES 4
MariaP
Solution Supplier
Solution Supplier

HI @cham ,

 

If your names are alway the same format Peter(3726) etc... 

Use Edit Queries and copy the Name column and create a new table called NameFilter and keep only names by using the query editor function "Filter Rows" and then add contains "("

 

#"Filtered Rows" = Table.SelectRows(#"Changed Type", each Text.Contains([Column1], "("))

 

You can then use that table as your filter and create a relationship to your original Name table.

 

It all depends on your data structure though and what you are trying to achieve overall.

 

Maria

Hi Maria,

 

No it contains other numbers with "(". Like below,

 

Drivers - Land: (8043489384)

 

Is theer any other way to capture that details?

 

Thanks,

cham

MariaP
Solution Supplier
Solution Supplier

Hi @cham ,

 

It's best to supply sample of your data so community can better help. It depends on how consistant the content of the rows you want to exclude  is.

You can try the same as idea as mentioned but this time use the excluding option for the fields you do not want if you know they will always be the same. It is not an exact match so Driver or Customer is enough to exclude :

#"Filtered Rows" = Table.SelectRows(#"Changed Type", each not Text.Contains([Column1], "Driver:Land") and not Text.Contains([Column1], "Customer Service"))

 DriverLandFilter.PNG

 

 

Another option may be to create a new table with only the names as a reference table.

 

Maria

This would work. Thank you so much.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors