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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
JenM
Advocate II
Advocate II

What is the escape character for filters?

I am using a column of data in a slicer , and the column contains a few garbage records that consist only of the ? character (a single ?).

 

I've had no luck trying to figure out what, if any, character will allow me to escape the wildcard meaning of ?, and literally search for (well, filter out) strings containing '?'.

 

Perhaps an escape character hasn't even been defined, but I can't find any documentation on the subject.

2 ACCEPTED SOLUTIONS
Sean
Community Champion
Community Champion

If you want to find an actual question mark or asterisk, type a tilde (~) before the character.

 

https://msdn.microsoft.com/en-us/library/ee634235.aspx

View solution in original post

If you want to filter out non printable characters, in the query editor, select your column, then in the Transform tab, select Format/Clean in the Text Column area, then if you want to then remove blank columns, you can apply a filter

Not sure if this is what you are looking for

View solution in original post

4 REPLIES 4
Sean
Community Champion
Community Champion

If you want to find an actual question mark or asterisk, type a tilde (~) before the character.

 

https://msdn.microsoft.com/en-us/library/ee634235.aspx

@Sean Fabulous, thank you! That does the trick exactly!

 

(OK, I'm embarrased, I didn't think to search actual  Microsoft documentation...)

If you want to filter out non printable characters, in the query editor, select your column, then in the Transform tab, select Format/Clean in the Text Column area, then if you want to then remove blank columns, you can apply a filter

Not sure if this is what you are looking for

@blopez11 Actually, this is what I originally wanted, but had forgotten/given up on, as I am using SSAS Tabular, via Visual Studio... I'd completely forgotten that I could filter data there, in the processing stage.

 

Then I had to remember that filtering data in the grid view (not sure of the proper name) was purely cosmetic, and wouldn't impact the deployed SSAS cube... So I had to work upstream, and apply the filter in the Edit Table Properties dialog.

 

Problem solved!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors