Knowledge Drop

How do I put line breaks for a long URL or other string in LookML without interrupting the string?

  • 6 April 2021
  • 0 replies
  • 481 views

Userlevel 5

Last tested: Sep 6, 2019
 

Use the {% comment %} tag:

dimension: test_link {

sql: '1' ;;

link: {

label: "test google with line break"

url:

"https://google{% comment %}

{% endcomment %}.{% comment %}

{% endcomment %}com"

}

}

Note that line breaks just add %20 into the URL so this would only be necessary if that will cause a problem in the link.

 

This content is subject to limited support.                

 

 


0 replies

Be the first to reply!

Reply