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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
v-yuezhe-msft
Employee
Employee

@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,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@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,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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