I’ve been trying to run a look using the API, edit the values of existing filters, and return a png graph that I can use. No matter how I try, I can’t seem to run the look with the changes to the filters applied. Is there a specific way this is supposed to be done?
Already have an account? Login
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
In order to change the filter values on a look via the API, you can
Get the query for that query id
Create a new query in Looker
Update the look with that new query
Here is some example Ruby code written by our very own
@brecht that goes through this process:
Once the look is updated, you can follow the steps in this discourse post to render that Look as an image. If you have any questions about this, let me know!
I’m doing it in python currently.
My issue with creating a new query is that it seems to ruin the visualization options. Not sure why, but it produces errors if you try to run visualizations after updating through the API, even in the web version.
@Tim_Pansino, could you please visit help.looker.com and provide some more info? For example, the changes you are making to the query and the visualization options that are affected? Thanks!