I’ve followed this link https://docs.looker.com/reference/field-params/link on how to add a link to a dimension.
So I was following this formula:
dimension: artist_name {
link: {
label: "Google"
url: "http://www.google.com/search?q={{ value }}"
icon_url: "http://google.com/favicon.ico"
}
}
BUT, I need two different values in that URL link. For example, I need to add Lead ID and Client ID to that URL. And it only seems to work when you add one value.
Solved! Go to Solution.
Yes, it should work. Below is an example.
dimension: product_brand {
type: string
sql: ${TABLE}.product_brand ;;
link: {
label: "Google"
url: "http://www.google.com/search?q={{ value | url_encode }} + {{ inventory_items.product_department._value | url_encode }}"
icon_url: "http://google.com/favicon.ico"
}