Forum Discussion
Report filter support for wildcard or regex
Hi everyone,
is there any method to use special characters in searches filter? For example, I would like to look for an item in a grid that presents the letter "a" in position 4 (character) followed by a number, or even filter all those elements that have two digits in the second and third places followed by something else, such as something like regex, i think. In other tools you can use like '?' or '.'for certain research needs.
I saw that there are Basic, Advanced or Top N filters. In the advanced filters I have seen that something can be done with contains or start with functionalities but it does not fully reflect my need. Is there such a thing or is it expected to come out in future releases?
Thank you
- Anonymous6 years ago
Hi Anonymous,
Power bi does not support regex expression so it is impossible to use it in filters.
For wildcard filter, you can refer to the following link to know more about how to use Dax string comparison functions to achieve fuzzy filter:
From SQL to DAX: String Comparison
Some of the filter effects you can write measure formulas and use it on 'visual level filter' to achieve your requirement.
Applying a measure filter in Power BI
Regards,
Xiaoxin Sheng
2 Replies
- AnonymousNot applicable
Hi Anonymous,
Power bi does not support regex expression so it is impossible to use it in filters.
For wildcard filter, you can refer to the following link to know more about how to use Dax string comparison functions to achieve fuzzy filter:
From SQL to DAX: String Comparison
Some of the filter effects you can write measure formulas and use it on 'visual level filter' to achieve your requirement.
Applying a measure filter in Power BI
Regards,
Xiaoxin Sheng
- lbendlinSuper User
Sounds like a great idea, you could submit that on the ideas subsite.