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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

searching text for " symbol

I'm trying to write a dax formula that searches a product description text for the " symbol which indicates inches. My formula below doesn't work because powerbi is confused because " is used to call out text. Any ideas? Thanks!

Has " in text = if(find(""",<within_text>,1,0)>0,TRUE,FALSE)

1 ACCEPTED SOLUTION

Hey @Anonymous ,

 

Any of the Dax function for string matching wont work for this special character " ,you have two options either do it in the query editor by adding a conditional column or replace the special character " with

 

If your problem is solved then please accept this as a solution

 

Thank you

View solution in original post

10 REPLIES 10
cheekysveta
New Member

Just use """"

Anonymous
Not applicable

@Anonymous 

Agree with @Ajinkya369 , the easiest way is just replace " with other symbols. 

 


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

Anonymous
Not applicable

Hi @Anonymous

 

Chekc this below link

https://www.youtube.com/watch?v=9sKeZbfzBTk

Ajinkya369
Resolver III
Resolver III

Hi @Anonymous ,

 

Please provide sample data.

 

Thank you

Anonymous
Not applicable

Here is a table to show for example. I want a formula to calculate the colum "Has " Symbol" ... Thanks!

Part DescriptionHas " Symbol
Part A 3"TRUE
Part BFALSE
Part C FALSE
Part D 2.5"TRUE

Hi @Anonymous 

you can do it with Power Query like this:

 

 

// Table
let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCkgsKlFwVDCOUVLSUQoJCnVVitWBijoBRdwcfYKRhJwVMMVcFIz0TJG0xwIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Part Description" = _t, #"Has "" Symbol" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Part Description", type text}, {"Has "" Symbol", type logical}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"Has "" Symbol"}),
    #"Duplicated Column" = Table.DuplicateColumn(#"Removed Columns", "Part Description", "Part Description - Copy"),
    #"Replaced Value" = Table.ReplaceValue(#"Duplicated Column","""","",Replacer.ReplaceText,{"Part Description - Copy"}),
    #"Added Custom" = Table.AddColumn(#"Replaced Value", "Has # Symbol", each if Text.Length([Part Description]) <> Text.Length([#"Part Description - Copy"]) then true else false),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"Has # Symbol", type logical}})
in
    #"Changed Type1"

 

 

18-08-_2020_22-39-50.png

 

Regards FrankAT

Hey @Anonymous ,

 

Any of the Dax function for string matching wont work for this special character " ,you have two options either do it in the query editor by adding a conditional column or replace the special character " with

 

If your problem is solved then please accept this as a solution

 

Thank you

@JHouse123

You can do this in Power Query by adding a conditional column (Conditional Column😞

Power Query.JPG

to get:

Power Query 1.JPG





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

@Anonymous 

You can try using the CONTAINSTRING function to identify the " 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Sorry, that gives the same issue

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.