One possible setup is by having 3 views:
- The main view where you plan to display or not the graph.
- A view containing only the graph.
- An empty view.
Then, you can add the embedded view component in the main view and customize it with the logic you mention regarding the value of the variable to display the view containing the graph or the empty one.
Hi Alice, to help you a bit burther, could you provide your current code / setup of your chart?
In your case, as a simple start, The CASE WHEN statement is the way to go. It would look something like this:
CASE WHEN <%=Variable_name%> = 'Your Specific Value' THEN 1 ELSE NULL END
Let me know if this worked or if you need further help :)
One possible setup is by having 3 views:
- The main view where you plan to display or not the graph.
- A view containing only the graph.
- An empty view.
Then, you can add the embedded view component in the main view and customize it with the logic you mention regarding the value of the variable to display the view containing the graph or the empty one.
Thank you very much Marc! I've solved my problem!😍
Hi Alice, to help you a bit burther, could you provide your current code / setup of your chart?
In your case, as a simple start, The CASE WHEN statement is the way to go. It would look something like this:
CASE WHEN <%=Variable_name%> = 'Your Specific Value' THEN 1 ELSE NULL END
Let me know if this worked or if you need further help :)
Thank you Sverre for your idea, I've managed to solve my problem in the way Marc suggested me
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.