Solved

Pass Dashboard filters from one to another dashboard using link

  • 23 June 2021
  • 1 reply
  • 42 views

Userlevel 1

Hi,

I am trying to pass my dashboard filters from parent to child and I am not sure what i am doing wrong but i cant get the filters right

 

Here is the link I am using

link: {

label: “Drill Dashboard” 

url: ‘’/dasboards-next/100?Name={{Value}}&AsofDate={{ _filters[‘Date.AsofDate’] | url_encode }}&AccountName={{ _filters[‘Account.AccountName’] | url_encode }}

 

Here As of Date and AccountName are my parent dashboard filters . Whenever i am trying to do this the AsofDate doesnt work and it shows up empty in the child dashboard url and when i am including account name the lookml code says expected value to be a field name and I am not sure what it means . I tried checking the explore and model if the view and field has been used elsewhere and i donot find any. 

 

 

icon

Best answer by sri75 23 June 2021, 21:59

I figured it out but its very weird since its different syntax from what i see in looker docs , so i am not sure how it worked but the solution is to remove _filters, my url now looks like this

url: ‘’/dasboards-next/100?Name={{Value}}&AsofDate={{ [‘Date.AsofDate’] | url_encode }}&AccountName={{ [‘Account.AccountName’] | url_encode }}

 

Once i did this it worked like a charm

View original

This topic has been closed for comments

1 reply

Userlevel 1

I figured it out but its very weird since its different syntax from what i see in looker docs , so i am not sure how it worked but the solution is to remove _filters, my url now looks like this

url: ‘’/dasboards-next/100?Name={{Value}}&AsofDate={{ [‘Date.AsofDate’] | url_encode }}&AccountName={{ [‘Account.AccountName’] | url_encode }}

 

Once i did this it worked like a charm