Beginner's help regarding LookML with link dimensions

Hello! 

I am trying to add a clickable link dimension into a LookML .view, and from https://cloud.google.com/looker/docs/reference/param-field-link I could roughly understand how to create dimensions that results in clickable links. 

However, I am using tables already exists as url in the rows themselves, the table contents are basically:

MY_WEBSITES
www.abc.com/11
www.abc.com/22
www.abc.com/33
...

Am I correct to assume that I could simply use the same liquid variable for both "label" and "url"? I just need to display the table results as the url themselves, which are clickable. Eg:

grimmjowj_0-1720108725086.png

^For some reason it doesn't let me post if I include the curly brackets in the code, so attaching as image. 

Haven't been able to find any other articles or documentation that fits my situation, thanks in advance!

 

Solved Solved
0 4 715
1 ACCEPTED SOLUTION

Ah re-reading a bit more of your post, yes I think the only thing you would need is: url: "(( value ))" since it is already a URL from your database!

*please replace the parentheses with curly brackets - I had the same issue with posting!

View solution in original post

4 REPLIES 4

Hi there! You are certainly on the right track with using liquid. The label is just a user friendly alias which can be hardcoded or liquid then for the URL, if the ID is the only field that changes, you can use a setup like this:
https://cloud.google.com/looker/docs/reference/param-field-link 

Screenshot 2024-07-08 at 11.53.48 AM.png

 Let me know if that gets you what you need! 

Ah re-reading a bit more of your post, yes I think the only thing you would need is: url: "(( value ))" since it is already a URL from your database!

*please replace the parentheses with curly brackets - I had the same issue with posting!

Awesome! thank you Amanda 

Hey @Amanda-Google, what if I am creating a URL using liquid? Is it possible for display name to just read as the URL?

Top Labels in this Space