Forum Discussion
Filter Names
- 7 years ago
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"))
Another option may be to create a new table with only the names as a reference table.
Maria
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
- MariaP7 years agoSolution 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"))
Another option may be to create a new table with only the names as a reference table.
Maria
- cham7 years agoPost Patron
This would work. Thank you so much.