Skip to content

Instantly share code, notes, and snippets.

@jbl0ndie
Last active August 12, 2025 06:36
Show Gist options
  • Select an option

  • Save jbl0ndie/bd2cfb22bfdde141116d71c742bd203c to your computer and use it in GitHub Desktop.

Select an option

Save jbl0ndie/bd2cfb22bfdde141116d71c742bd203c to your computer and use it in GitHub Desktop.
Escape commas in Looker filters
# Looker splits query strings with commas
# To filter for a string containing a comma you need to escape the comma or Looker splits the string at the comma
# The documentation is poor in this area
# Example
Plumbers, heating engineers and technicians
# Is split to
Plumbers
heating engineers and technicians
# instead use "" and \ to escape the comma
"Plumbers\, heating engineers and technicians"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment