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! Request now

Reply
murrayb8
Helper I
Helper I

How to search for a string containing a question mark?

Hi Im using a search formula in Dax in the desktop tool and it seems that if I include a question mark in the string to search for the question mark is ignored and acts like a wildcard. I know with quotations you can escape them by adding an extra set of quotations around the quotation, is there a way to escape the question mark symbol inside a string? Also is there a list somewhere of these special characters and how to escape them? I couldnt find anything listed anywhere. Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@murrayb8,

If you want to find an actual question mark, type a tilde (~) before the character. There is an example for your reference.
1.PNG

In addition, I haven't found any list stating that how to escape special characters in SEARCH function. 

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

Regards,

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@murrayb8,

If you want to find an actual question mark, type a tilde (~) before the character. There is an example for your reference.
1.PNG

In addition, I haven't found any list stating that how to escape special characters in SEARCH function. 

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

Regards,

cs_skit
Resolver IV
Resolver IV

Does UNICHAR(63) work for you instead of "?"?

Strange though because when I use FIND() function in DAX "?" works as find string

 

Or do you mean inside a search slicer in the resulting report??? 

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
Top Kudoed Authors
Users online (5,680)